On Fri, May 20, 2011 at 08:30:19PM -0400, Josef Bacik wrote:
On 05/20/2011 05:31 PM, Andi Kleen wrote:
quoted
quoted
Putting them at the end of the cache LRU instead of the head would allow them to be dropped quickly under memory pressure.
This still would fill up your memory for find /, potentially pushing
out other stuff.
-Andi
So these things are just hashed on dput, so they don't have any
references to them and they are automatically put on the LRU list, so if
we get under memory pressure they will be easily discarded, especially
if nobody is actually stating them. Thanks,
They are allocated. The allocation will push out other things too.
There's no mechanism to only push dentries when allocating other dentries,
or limit the total consumption from the dcache.
-Andi