FG

Reserve RAM for cache and buffer

Fresh3 days ago
Mar 15, 202611139 views
Confidence Score0%
0%

Problem

I usually run many programs and virtual machines on my desktop. The CPU isn't the bottleneck but the memory. (Buying more memory isn't a solution because it's not my own computer.) I started experimenting with compcache and it works fine on compressing memory. I can increase it's usage by swappines…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Reserve RAM for cache and buffer

Low Risk

If you want to reserve memory for cache and buffer: echo 10 > /proc/sys/vm/vfs_cache_pressure when 100 is the default value. Then you can limit the max ram used by each app: echo 8192 > /proc/sys/vm/max_map_count. I recommend a swapiness=30 and high…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment