lkml.org 
[lkml]   [2013]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code
    From
    Date


    Tejun Heo <tj@kernel.org> wrote:

    >Hello, Johannes.
    >
    >On Fri, May 17, 2013 at 12:02:47PM -0400, Johannes Weiner wrote:
    >> There are setups with thousands of groups that do not even use soft
    >> limits. Having them pointlessly iterate over all of them for every
    >> couple of pages reclaimed is just not acceptable.
    >
    >Hmmm... if the iteration is the problem, it shouldn't be difficult to
    >build list of children which should be iterated. Would that make it
    >acceptable?

    You mean, a separate structure that tracks which groups are in excess of the limit? Like the current tree? :)

    Kidding aside, yes, that would be better, and an unsorted list would probably be enough for the global case.

    To support target reclaim soft limits later on, we could maybe propagate tags upwards the cgroup tree when a group is in excess so that reclaim can be smarter about which subtrees to test for soft limits and which to skip during the soft limit pass. The no-softlimit-set-anywhere case is then only a single tag test in the root cgroup.

    But starting with the list would be simple enough, delete a bunch of code, come with the same performance improvements etc.
    --
    Sent from my Android phone with K-9 Mail. Please excuse my brevity.


    \
     
     \ /
      Last update: 2013-05-17 20:21    [W:3.663 / U:0.408 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site