lkml.org 
[lkml]   [2022]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 1/4] memcg: introduce per-memcg reclaim interface
    On Fri 08-04-22 10:55:56, Dan Schatzberg wrote:
    > On Fri, Apr 08, 2022 at 04:11:05PM +0200, Michal Hocko wrote:
    > > Regarding "max" as a possible input. I am not really sure to be honest.
    > > I can imagine that it could be legit to simply reclaim all the charges
    > > (e.g. before removing the memcg) which should be achieveable by
    > > reclaiming the reported consumption. Or what exactly should be the
    > > semantic?
    >
    > Yeah, it just allows you to avoid reading memory.current to just
    > reclaim everything if you can specify "max"

    The same could be achieved by requesting a really high number (-1Ul)

    > - you're still protected
    > by nretries to eventually bail out.

    The number of retries is an implementation detail and nobody should
    really rely on that. Bail out on signal can be still used so yeah
    getting a large input or whatever alias of that should be just fine.

    > Mostly, though I just feel like
    > supporting "max" makes memory.reclaim semetric with a lot of the
    > cgroup memory control files which tend to support "max".

    max is used for limits now and this doesn't have a semantic of one.
    But I have to say I do not really feel strongly about this.

    --
    Michal Hocko
    SUSE Labs

    \
     
     \ /
      Last update: 2022-04-11 09:21    [W:3.111 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site