I want to limit page cache in linux. Some documents say increase vm.vfs_cache_pressure to control the kernel reclaim memory. I try, but not work.
Linux/Documentation/sysctl/vm.txt say "Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches."
Just dentry and inode caches!
I understand Linux kernel parameter vm.vfs_cache_pressure is only by adjusting the allocation of dentry and inode cache of slab memory, there is no relation to the release of the page cache ( buffer cache of file I/O). kswapd reclaim don't care this parameter.
Is this right?
As long as I lookup the source of the kernel with
grep vfs_cache_pressure, I got results such as meta-information and dcache in the filesystems, but there is no result in mm subtree.