Re: [RFC PATCH v2] mm: Add nodes= arg to memory.reclaim
From: Mina Almasry
Date: Wed Nov 30 2022 - 14:45:51 EST
On Wed, Nov 30, 2022 at 12:44 AM Bagas Sanjaya <bagasdotme@xxxxxxxxx> wrote:
>
> On 11/30/22 09:03, Mina Almasry wrote:
> > - This file accepts a single key, the number of bytes to reclaim.
> > - No nested keys are currently supported.
> > + This file accepts a string which contains the number of bytes to
> > + reclaim.
> >
> Amount of memory to reclaim?
>
I want to have the word 'byte' in there somewhere to make that clear.
I guess maybe 'the amount of memory to reclaim in bytes'. Although as
written it seems more concise.
> > + This file also allows the user to specify the nodes to reclaim from,
> > + via the 'nodes=' key, example::
> > +
>
> "..., for example"
>
Will do in the next version. Thanks for taking a look, Bagas.
> > + echo "1G nodes=0,1" > memory.reclaim
> > +
> > + The above instructs the kernel to reclaim memory from nodes 0,1.
> > +
>
> Thanks.
>
> --
> An old man doll... just what I always wanted! - Clara
>