Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Glauber Costa <glommer-GEFAQzZX7r8dnm+yROfE0A <at> public.gmane.org>
Subject: [PATCH 0/2] reuse vmpressure for in-kernel events
Newsgroups: gmane.linux.kernel.cgroups
Date: Tuesday 23rd April 2013 08:22:07 UTC (over 4 years ago)
During the past weeks, it became clear to us that the shrinker interface we
have right now works very well for some particular types of users, but not
that
well for others. The later are usually people interested in one-shot
notifications, that were forced to adapt themselves to the count+scan
behavior
of shrinkers. To do so, they had no choice than to greatly abuse the
shrinker
interface producing little monsters all over.

During LSF/MM, one of the proposals that popped out during our session was
to
reuse Anton Voronstsov's vmpressure for this. They are designed for
userspace
consumption, but also provide a well-stablished, cgroup-aware entry point
for
notifications.

I am demonstrating this interface by registering a memcg event that tries
to
get rid of all dead caches in the system. We never used a shrinker for that
because it didn't feel too natural. The new interface integrates quite
nicely,
though.

Please note that due to my lack of understanding of each shrinker user, I
will
stay away from converting the actual users, you are all welcome to do so.

Glauber Costa (2):
  vmpressure: in-kernel notifications
  memcg: reap dead memcgs under pressure

 include/linux/vmpressure.h |  6 ++++
 mm/memcontrol.c            | 81
++++++++++++++++++++++++++++++++++++++++++++--
 mm/vmpressure.c            | 48 ++++++++++++++++++++++++---
 3 files changed, 128 insertions(+), 7 deletions(-)

-- 
1.8.1.4
 
CD: 3ms