Skip to content
Commit 8a13be24 authored by Rapherion Rollerscaperers's avatar Rapherion Rollerscaperers Committed by Your Name
Browse files

mm/compaction: Disable compaction of unevictable pages



Compaction of running memory is a good thing. It's also required to
properly allocate memory for large applications, like new processes in
Chrome or make room for a large virtual machine. Unfortunately, the
default configuration of Linux allows all memory to be compacted.

This is a good thing for servers. An application running server side
can tolerate micro stalls since the latency impact is almost not
measurable (depending on the application, of course). But on a desktop
configuration with X, Wayland, Gnome, KDE, etc, the dropped frames and
lost input are very obvious.

Lets prevent these applications from having their memory moved during
compaction. Although compaction will take longer and new processes will
take longer to spawn under high memory pressure / external memory
fragmentation, the actual experience of the system will feel more
responsive and consistent under these adverse conditions.

This commit adapted from zen-kernel/zen-kernel@394ae0c

Signed-off-by: default avatarRapherion Rollerscaperers <rapherion@raphielgang.org>
Signed-off-by: default avatarLau <laststandrighthere@gmail.com>
parent 17210552
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment