From: Leonid Moiseichuk <lmoiseichuk@xxxxxxxxxxxxx> Small tweak to populate vmpressure parameters to userspace without any built-in logic change. The vmpressure is used actively (e.g. on Android) to track mm stress. vmpressure parameters selected empiricaly quite long time ago and not always suitable for modern memory configurations. Modern 8 GB devices starts triggering medium threshold when about 3 GB memory not used, and situation with 12 and 16 GB devices even worse. Testing performed: * Build kernel for x86-64 and aarch64 (Tegra X2 SoC) * Booted and checked that all properties published * Tuned settings and observed adequate response * sysbench and memory bubble application (memsize from lmbench) used to verify reactions Change Log: v1: => updated commit with 8 GB numbers per Michal Hocko request v0: => initial implementation => tested on x86-64 and aarch64 Leonid Moiseichuk (2): memcg, vmpressure: expose vmpressure controls memcg, vmpressure: expose vmpressure controls .../admin-guide/cgroup-v1/memory.rst | 12 +- include/linux/vmpressure.h | 35 ++++++ mm/memcontrol.c | 113 ++++++++++++++++++ mm/vmpressure.c | 101 +++++++--------- 4 files changed, 200 insertions(+), 61 deletions(-) -- 2.17.1