linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] memcg, vmpressure: expose vmpressure controls
@ 2020-04-14 17:18 svc_lmoiseichuk
  2020-04-14 17:18 ` [PATCH v1 1/2] " svc_lmoiseichuk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: svc_lmoiseichuk @ 2020-04-14 17:18 UTC (permalink / raw)
  To: hannes, mhocko, vdavydov.dev, tj, lizefan, cgroups
  Cc: akpm, rientjes, minchan, vinmenon, andriy.shevchenko, penberg,
	linux-mm, Leonid Moiseichuk

From: Leonid Moiseichuk <lmoiseichuk@magicleap.com>

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-14 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 17:18 [PATCH v1 0/2] memcg, vmpressure: expose vmpressure controls svc_lmoiseichuk
2020-04-14 17:18 ` [PATCH v1 1/2] " svc_lmoiseichuk
2020-04-14 17:18 ` [PATCH v1 2/2] " svc_lmoiseichuk
2020-04-14 18:35 ` [PATCH v1 0/2] " Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).