From: Luigi Semenzato <semenzato@google.com>
To: Michal Hocko <mhocko@kernel.org>, Minchan Kim <minchan@kernel.org>
Cc: Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: OOM kills with lots of free swap
Date: Tue, 27 Jun 2017 08:21:07 -0700 [thread overview]
Message-ID: <CAA25o9T1q9gWzb0BeXY3mvLOth-ow=yjVuwD9ct5f1giBWo=XQ@mail.gmail.com> (raw)
In-Reply-To: <20170627071104.GB28078@dhcp22.suse.cz>
[-- Attachment #1: Type: text/plain, Size: 1563 bytes --]
(copying Minchan because I just asked him the same question.)
Thank you, I can try this on ToT, although I think that the problem is not
with the OOM killer itself but earlier---i.e. invoking the OOM killer seems
unnecessary and wrong. Here's the question.
The general strategy for page allocation seems to be (please correct me as
needed):
1. look in the free lists
2. if that did not succeed, try to reclaim, then try again to allocate
3. keep trying as long as progress is made (i.e. something was reclaimed)
4. if no progress was made and no pages were found, invoke the OOM killer.
I'd like to know if that "progress is made" notion is possibly buggy.
Specifically, does it mean "progress is made by this task"? Is it possible
that resource contention creates a situation where most tasks in most cases
can reclaim and allocate, but one task randomly fails to make progress?
On Tue, Jun 27, 2017 at 12:11 AM, Michal Hocko <mhocko@kernel.org> wrote:
> On Fri 23-06-17 16:29:39, Luigi Semenzato wrote:
> > It is fairly easy to trigger OOM-kills with almost empty swap, by
> > running several fast-allocating processes in parallel. I can
> > reproduce this on many 3.x kernels (I think I tried also on 4.4 but am
> > not sure). I am hoping this is a known problem.
>
> The oom detection code has been reworked considerably in 4.7 so I would
> like to see whether your problem is still presenet with more up-to-date
> kernels. Also an OOM report is really necessary to get any clue what
> might have been going on.
>
> --
> Michal Hocko
> SUSE Labs
>
[-- Attachment #2: Type: text/html, Size: 2162 bytes --]
next prev parent reply other threads:[~2017-06-27 15:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-23 23:29 Luigi Semenzato
2017-06-27 6:50 ` Vlastimil Babka
2017-06-27 7:11 ` Michal Hocko
2017-06-27 15:21 ` Luigi Semenzato [this message]
2017-06-27 15:22 ` Luigi Semenzato
2017-06-27 15:50 ` Michal Hocko
2017-06-29 17:46 ` Luigi Semenzato
2017-06-29 18:02 ` Luigi Semenzato
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='CAA25o9T1q9gWzb0BeXY3mvLOth-ow=yjVuwD9ct5f1giBWo=XQ@mail.gmail.com' \
--to=semenzato@google.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=minchan@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox