Hi
All,
For a while I was
thinking I have a memory leak some where in my system. I was typing "free"
command and observing the free memory was decreasing
gradualy.
I start playing
around with the Virtual Memory parameters.
I increased one
of the Virtual Memory parameters' value, "min_free_kbytes". Then I typed "free",
all the sudden my system had all the free memory that I thought it leaked
before.
I start reading
about the concept of this parameters, here is the definition of this parameters
I found out:
"The min_free_kbytes parameter specifies
the size of the memory pool that can be used for urgent allocations such as
those initiated by the interrupt handler. On larger systems, this parameter
impacts the ratio of memory available to interrupt-time as opposed to runtime
allocations. On smaller memory systems, the parameter is kept small to avoid
allocation failures. The general consensus is that the low watermark parameter
is used to determine when to reject user space allocations and to initiate page
replacement scenarios."
I do not understand
from above definition why by increasing the "min_free_kbytes" I got all the
memory back.
Many thanks in
advance,
Bizhan