> MemAvailable is a bad heuristic, it does *not* represent "free"
> memory.

MemAvailable is a good  heuristic, it does represent available memory.

вт, 14 июл. 2020 г. в 00:49, Benjamin Berg <bb...@redhat.com>:

> On Mon, 2020-07-13 at 08:21 -0700, John M. Harris Jr wrote:
> > On Monday, July 13, 2020 1:58:30 AM MST Benjamin Berg wrote:
> > > But, I also think that the people proposing this have done quite a lot
> > > of testing to find reasonable values for various scenarios. If they
> > > have done their job correctly, then EarlyOOM will *not* prevent you
> > > from fully utilizing your system memory in most scenarios.
> >
> > By the very nature of the configuration, that's not the case. For
> example, on
> > my system, for example, it will start sending SIGTERM where I have over
> 600
> > MiB free, and will begin to simply kill software when I have over a
> quarter of
> > a gigabyte left.
>
> You keep saying these numbers, yet I don't see how your claim adds up.
>
>  1. 600MiB assumes 10% of main memory.
>     However, Fedora uses 4% (capped at 400MiB)
>     (see /etc/default/earlyoom, which contains "-m 4 -M 409600")
>
>  2. So EarlyOOM uses this calculation on Fedora:
>       `MemAvailable < min(MemTotal * 4%, 400MiB)`
>     (values come from /proc/meminfo)
>
>  3. MemAvailable is a bad heuristic, it does *not* represent "free"
>     memory.
>
> Benjamin
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to