[PATCH v7 00/12] Multigenerational LRU Framework

Alexey Avramov hakavlad0 at seznam.cz
Fri Feb 11 12:12:19 PST 2022


Aggressive swapping even with vm.swappiness=1 with MGLRU
========================================================

Reading a large mmapped file leads to a super agressive swapping.
Reducing vm.swappiness even to 1 does not have effect.

Demo: https://www.youtube.com/watch?v=J81kwJeuW58

Linux 5.17-rc3, Multigenerational LRU v7, 
vm.swappiness=1, MemTotal: 11.5 GiB.

$ cache-bench -r 35000 -m1 -b1 -p1 -f test20000
Reading mmapped file (file size: 20000 MiB)
cache-bench v0.2.0: https://github.com/hakavlad/cache-bench

Swapping started with MemAvailable=71%.
At the end 33 GiB was swapped out when MemAvailable=60%.

Is it OK?



More information about the linux-arm-kernel mailing list