From: Michal Hocko <mhocko@kernel.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: Andrew Morton <akpm@osdl.org>,
airlied@linux.ie, x86@kernel.org,
kernel list <linux-kernel@vger.kernel.org>,
dri-devel@lists.freedesktop.org, mingo@redhat.com, bp@alien8.de,
hpa@zytor.com, tglx@linutronix.de
Subject: Re: next-20200515: Xorg killed due to "OOM"
Date: Thu, 28 May 2020 14:07:50 +0200 [thread overview]
Message-ID: <20200528120750.GC27484@dhcp22.suse.cz> (raw)
In-Reply-To: <20200528120354.GB22054@duo.ucw.cz>
On Thu 28-05-20 14:03:54, Pavel Machek wrote:
> On Thu 2020-05-28 11:05:17, Michal Hocko wrote:
> > On Tue 26-05-20 11:10:54, Pavel Machek wrote:
> > [...]
> > > [38617.276517] oom_reaper: reaped process 31769 (chromium), now anon-rss:0kB, file-rss:0kB, shmem-rss:7968kB
> > > [38617.277232] Xorg invoked oom-killer: gfp_mask=0x0(), order=0, oom_score_adj=0
> > > [38617.277247] CPU: 0 PID: 2978 Comm: Xorg Not tainted 5.7.0-rc5-next-20200515+ #117
> > > [38617.277256] Hardware name: LENOVO 17097HU/17097HU, BIOS 7BETD8WW (2.19 ) 03/31/2011
> > > [38617.277266] Call Trace:
> > > [38617.277286] dump_stack+0x54/0x6e
> > > [38617.277300] dump_header+0x45/0x321
> > > [38617.277313] oom_kill_process.cold+0x9/0xe
> > > [38617.277324] ? out_of_memory+0x167/0x420
> > > [38617.277336] out_of_memory+0x1f2/0x420
> > > [38617.277348] pagefault_out_of_memory+0x34/0x56
> > > [38617.277361] mm_fault_error+0x4a/0x130
> > > [38617.277372] do_page_fault+0x3ce/0x416
> >
> > The reason the OOM killer has been invoked is that the page fault
> > handler has returned VM_FAULT_OOM. So this is not a result of the page
> > allocator struggling to allocate a memory. It would be interesting to
> > check which code path has returned this.
>
> Should the core WARN_ON if that happens and there's enough memory, or
> something like that?
I wish it would simply go away. There shouldn't be really any reason for
VM_FAULT_OOM to exist. The real low on memory situation is already
handled in the page allocator.
--
Michal Hocko
SUSE Labs
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-05-28 12:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 9:10 next-20200515: Xorg killed due to "OOM" Pavel Machek
2020-05-28 9:05 ` Michal Hocko
2020-05-28 12:03 ` Pavel Machek
2020-05-28 12:07 ` Michal Hocko [this message]
2020-05-31 12:16 ` Pavel Machek
2020-06-01 9:31 ` Michal Hocko
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=20200528120750.GC27484@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=airlied@linux.ie \
--cc=akpm@osdl.org \
--cc=bp@alien8.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
--cc=x86@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;
as well as URLs for NNTP newsgroup(s).