iMX6 Linux " /proc/sys/vm/min_free_kbytes"

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

iMX6 Linux " /proc/sys/vm/min_free_kbytes"

1,914 Views
tetsuomaeda
Contributor III

Hi,

Our engineers are facing a problem of the shared memory.
There is a line " echo 30000 > /proc/sys/vm/min_free_kbytes" in FreeScale BSP.
This line seems to use quite large shared memory and to cause memory problem.

Does any one know the purpose of this line and what would happen if we delete it?

As far as we are testing, we don't find problems.

Regards,

Tetsuo Maeda

0 Kudos
2 Replies

919 Views
xinyu_chen
NXP Employee
NXP Employee

Hi Tetsuo

You can definitely remove this configure line, as kernel would have a initial value like: 4 x sqrt(lowmem_kbytes). It is used to calculate kernel VM each zones watermark, when free memory size is below the watermark, the kswapd kernel thread would be wakeup to recliam the page cache, slab dcache, etc. This would make sure we have more free memory other than cache for new allocation. Increase this value, we would avoid OOM (out of memory) mostly. If you have not met any OOM issue, then default value is ok for you.

Thanks.

BR

Xinyu Chen

919 Views
tetsuomaeda
Contributor III

Hi Eric-san,

Thank you for your response, and very sorry for my late reply because of the business trip.
I'll pass your advice to my colleague.

Thanks again for your help.

Regards,

Tetsuo Maeda

0 Kudos