Quantcast
Channel: How to keep executable code in memory even under memory pressure ? in Linux - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by user11509478 for How to keep executable code in memory even under...

To answer the question, here's a simple/preliminary patch to not evict Active(file)(as seen in /proc/meminfo) if it's less than 256 MiB, that seems to work ok (no disk thrashing) with linux-stable...

View Article


Answer by Vladimir Nikishkin for How to keep executable code in memory even...

The memory.min parameter in the cgroups-v2 memory controller should help.Namely, let me quote:"Hard memory protection. If the memory usage of a cgroup is within its effective min boundary, the cgroup’s...

View Article

Answer by user10239615 for How to keep executable code in memory even under...

WARNING: Do not use this patch if you have swap enabled, because two users reported worse effects. I've only tested this patch with swap disabled in kernel! (ie. CONFIG_SWAP is not set)Until further...

View Article

How to keep executable code in memory even under memory pressure ? in Linux

The goal here is to keep every running process' executable code in memory during memory pressure, in Linux.In Linux, I am able to instantly (1 sec) cause high memory pressure and trigger the OOM-killer...

View Article
Browsing latest articles
Browse All 4 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>