All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] lib: memutils: don't pollute entire system memory to avoid OoM
Date: Wed, 8 Sep 2021 16:19:08 +0200	[thread overview]
Message-ID: <CA+Eumj53j-AucdNdJ91-wHO6CN=jNg=kpNpxNwnRwqvbxsWMkw@mail.gmail.com> (raw)
Message-ID: <20210908141908.gsL0di-KGJBtpncwJBA0X2bO985IchTzmBCgtMy8utw@z> (raw)
In-Reply-To: <YTjGCeaaA0Nv56hn@yuki>

On Wed, 8 Sept 2021 at 16:17, Cyril Hrubis <chrubis@suse.cz> wrote:
>
> Hi!
> > > I guess that this is another bug that should be fixed before the
> > > release. I still think that the memory pollution is a best effort
> > > operation and that we should be more conservative with the reserve. I
> > > would go for a few percents of the free memory just to be extra sure
> > > that we do not cause memory pressure.
> > >
> > > If we go for 2% we will add following;
> > >
> > > safety = MAX(safety, info.freeram / 50);
> > >
> > > Also it looks like info.freeram is the same as MemFree: from
> > > /proc/meminfo, I guess that this is not wrong, since memory that have
> > > been used in buffers is dirty enough for our case.
> >
> > I'd recommend dividing by a power of 2 (either 32 or 64) but other than
> > that, I completely agree.
>
> Sounds good.
>
> Krzysztof unless you disagree I will push your patch but change the
> division factor from 200 to 64.


Sounds good. In such case please also update the % mentioned at the
end of commit msg (0.5% -> 1.5%).

Best regards,
Krzysztof

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2021-09-08 14:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 13:22 [LTP] [PATCH] lib: memutils: don't pollute entire system memory to avoid OoM Krzysztof Kozlowski
2021-06-24 13:33 ` Martin Doucha
2021-06-24 14:00   ` Li Wang
2021-06-24 14:13     ` Martin Doucha
2021-06-24 15:07   ` Krzysztof Kozlowski
2021-06-24 15:34     ` Krzysztof Kozlowski
2021-06-24 15:46       ` Krzysztof Kozlowski
2021-09-08 13:37 ` Cyril Hrubis
2021-09-08 13:37   ` Cyril Hrubis
2021-09-08 13:54     ` Martin Doucha
2021-09-08 13:54       ` Martin Doucha
2021-09-08 14:17         ` Cyril Hrubis
2021-09-08 14:17           ` Cyril Hrubis
2021-09-08 14:19             ` Krzysztof Kozlowski [this message]
2021-09-08 14:19               ` Krzysztof Kozlowski
2021-09-08 14:32                 ` Cyril Hrubis
2021-09-08 14:32                   ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+Eumj53j-AucdNdJ91-wHO6CN=jNg=kpNpxNwnRwqvbxsWMkw@mail.gmail.com' \
    --to=krzysztof.kozlowski@canonical.com \
    --cc=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.