Best Answer: How Do I Limit Cache Memory in Linux?
Contents

If you want an absolute limit, you should look up cgroups . Place the Ceph OSD server within a cgroup and limit the maximum memory it can use by setting the memory. limit_in_bytes parameter for the cgroup. memory.

How do I disable cache memory in Linux?

How to Clear Cache in Linux?

  1. Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.
  2. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.
  3. Clear pagecache, dentries, and inodes.

How do I reduce cache usage?

Lowering Memory Usage

  1. Use a smaller memory cache. Memory cache can be adjusted using the CACHESIZE environment variable. …
  2. Enable disk cache. …
  3. Avoid mounting multiple filesystems on a small machine. …
  4. Enable compaction. …
  5. Enable swap space on the local SSD. …
  6. Enable mboost for larger filesystems. …
  7. For read-only servers. …
  8. Other options.
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest