How to clean caches used by the Linux kernel

后端 未结 3 1113
野性不改
野性不改 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:03

    The contents of /proc/meminfo tell you what the kernel uses RAM for.

    You can use /proc/sys/vm/vfs_cache_pressure to force the kernel to reclaim memory that is used for filesystem-related caches more lazily or eagerly.

    Note that your application may only benefit from tuning this parameter if it does little or no disk I/O.

提交回复
热议问题