Increasing swap memory for S32G2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Increasing swap memory for S32G2

Jump to solution
1,699 Views
Vishnu3
Contributor III

Hello all,

I have loaded the A53 with the fsl-base-image. I checked the RAM utilisation and it shows that the allocated space for swap memory is 0 bytes. How can I increase this? Do I have to make any configuration changes in the Yocto files?

Please let me know.

Best,

Vishnu 

Tags (2)
0 Kudos
Reply
1 Solution
1,673 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Vishnu3 

SWAP memory is by default disabled in kernel configurations, from my experiece, the swap is not very commonly used in embedded systems, since there is not usually a large size HD attached.

If you do have RAM limitation issue and need the feature, then you may enable it from kernel configuration, but it is not tested from BSP perspective.

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
3 Replies
1,659 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Vishnu3

Thanks for the reply.

Sorry that I do not find related information from BSP document, from my experience, you may have to firstly rebuild the kernel with CONFIG_SWAP=Y, once booting the system, the following link could be used for your reference.

https://docs.oracle.com/cd/E24457_01/html/E21988/giprn.html

 

BR

Chenyin

 

0 Kudos
Reply
1,674 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Vishnu3 

SWAP memory is by default disabled in kernel configurations, from my experiece, the swap is not very commonly used in embedded systems, since there is not usually a large size HD attached.

If you do have RAM limitation issue and need the feature, then you may enable it from kernel configuration, but it is not tested from BSP perspective.

 

BR

Chenyin

0 Kudos
Reply
1,669 Views
Vishnu3
Contributor III

Hi @chenyin_h ,

 

Thanks for the response. We are running cmake to build a library and that's consuming the RAM. This is a one time thing but we need it.

 

Do you have any resources which I can use to configure the kernel to include the swap feature?

 

Best,

Vishnu 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1982437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIncreasing%20swap%20memory%20for%20S32G2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1982437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3EI%20have%20loaded%20the%20A53%20with%20the%20fsl-base-image.%20I%20checked%20the%20RAM%20utilisation%20and%20it%20shows%20that%20the%20allocated%20space%20for%20swap%20memory%20is%200%20bytes.%20How%20can%20I%20increase%20this%3F%20Do%20I%20have%20to%20make%20any%20configuration%20changes%20in%20the%20Yocto%20files%3F%3C%2FP%3E%3CP%3EPlease%20let%20me%20know.%3C%2FP%3E%3CP%3EBest%2C%3C%2FP%3E%3CP%3EVishnu%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983660%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Increasing%20swap%20memory%20for%20S32G2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983660%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F225130%22%20target%3D%22_blank%22%3E%40Vishnu3%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20reply.%3C%2FP%3E%0A%3CP%3ESorry%20that%20I%20do%20not%20find%20related%20information%20from%20BSP%20document%2C%20from%20my%20experience%2C%20you%20may%20have%20to%20firstly%20rebuild%20the%20kernel%20with%20CONFIG_SWAP%3DY%2C%20once%20booting%20the%20system%2C%20the%20following%20link%20could%20be%20used%20for%20your%20reference.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.oracle.com%2Fcd%2FE24457_01%2Fhtml%2FE21988%2Fgiprn.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.oracle.com%2Fcd%2FE24457_01%2Fhtml%2FE21988%2Fgiprn.html%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Increasing%20swap%20memory%20for%20S32G2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24163%22%20target%3D%22_blank%22%3E%40chenyin_h%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20for%20the%20response.%20We%20are%20running%20cmake%20to%20build%20a%20library%20and%20that's%20consuming%20the%20RAM.%20This%20is%20a%20one%20time%20thing%20but%20we%20need%20it.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EDo%20you%20have%20any%20resources%20which%20I%20can%20use%20to%20configure%20the%20kernel%20to%20include%20the%20swap%20feature%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%2C%3C%2FP%3E%3CP%3EVishnu%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983475%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Increasing%20swap%20memory%20for%20S32G2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983475%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F225130%22%20target%3D%22_blank%22%3E%40Vishnu3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESWAP%20memory%20is%20by%20default%20disabled%20in%20kernel%20configurations%2C%20from%20my%20experiece%2C%20the%20swap%20is%20not%20very%20commonly%20used%20in%20embedded%20systems%2C%20since%20there%20is%20not%20usually%20a%20large%20size%20HD%20attached.%3C%2FP%3E%0A%3CP%3EIf%20you%20do%20have%20RAM%20limitation%20issue%20and%20need%20the%20feature%2C%20then%20you%20may%20enable%20it%20from%20kernel%20configuration%2C%20but%20it%20is%20not%20tested%20from%20BSP%20perspective.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E