2

Optimizing the page cache space for less memory utilization in some system where systems don't have swap space and external flash drive or hard disk. Is there any possibility that if we can remove or optimize the page cache size in kernel data structure?

2
  • Have you observed a particular instance where the page cache size is inefficient, that you could add into your question detail ?
    – steve
    Sep 29, 2015 at 10:35
  • kernel running on devices like routers, switches not having swap space and kernel running on small devices not having any flash drive or hard disk can be some example. Sep 29, 2015 at 10:58

1 Answer 1

-1

Yes. Tuning vm.dirty_background_ratio and vm.dirty_ratio will effectively reduce the page cache size.

More info at Better Linux Disk Caching & Performance with vm.dirty_ratio & vm.dirty_background_ratio

2
  • 3
    No; those cause the kernel to write dirty pages to disk more frequently, but not to remove clean ones from the cache. You want vm.swappiness set to zero.
    – psusi
    Sep 29, 2015 at 14:37
  • 1
    I have already tried this stuff but even after doing this and dropping the cache i.e. echo 3 >> /proc/sys/vm/drop_caches still in cache there remain around 180 MB is there any way to reduce the cache size further? Sep 30, 2015 at 9:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .