How to clean caches used by the Linux kernel

后端 未结 3 1108
野性不改
野性不改 2021-01-30 02:44

I want to force the Linux kernel to allocate more memory to applications after the cache starts taking up too much memory (as can be seen by the output of \'free\').

I\'

3条回答
  •  别那么骄傲
    2021-01-30 03:14

    You might find John Nilsson's answer to my Question useful for purging the cache in order to test whether that is related to your problem:

    sync && echo 1 > /proc/sys/vm/drop_caches

    Though I'm guessing the only real difference is 1 vs 3

提交回复
热议问题