linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Marc Lehmann <schmorp@schmorp.de>
Cc: linux-mm@kvack.org
Subject: Re: post linux 4.4 vm oom kill, lockup and thrashing woes
Date: Mon, 23 Jul 2018 14:55:54 +0200	[thread overview]
Message-ID: <20180723125554.GE31229@dhcp22.suse.cz> (raw)
In-Reply-To: <20180722233437.34e5ckq5pp24gsod@schmorp.de>

On Mon 23-07-18 01:34:37, Marc Lehmann wrote:
> On Wed, Jul 18, 2018 at 10:38:08AM +0200, Michal Hocko <mhocko@kernel.org> wrote:
> > > http://data.plan9.de/kvm_oom.txt
> > 
> > That is something to bring up with kvm guys. Order-6 pages are
> > considered costly and success of the allocation is by no means
> > guaranteed. Unike for orders smaller than 4 they do not trigger the oom
> > killer though.
> 
> So 4 is the magic barrier, good to know.

Yeah, scientifically proven. Or something along those lines.

> In any case, as I said, it's just
> an example of various allocations that fail unexpectedly after 4.4, and it's
> by no means just nvidia.

Large allocation failures shouldn't be directly related to the OOM
changes at the time. There were many compaction fixes/enhancements
introduced at the time and later which should help those though.

Having more examples should help us to work with specific subsystems
on a more appropriate fix. Depending on large order allocations has
always been suboptimal if not outright wrong.

> 
> > vmalloc fallback would be a good alternative. Unfortunatelly I am not
> > able to find which allocation is that. What does faddr2line kvm_dev_ioctl_create_vm+0x40
> > say?
> 
> I suspect I can't run this for an installed kernel without sources/object
> files? In this case a precompiled kernel from ubuntu mainline-ppa.
> Running faddr2line kvm.ko ... just gives me:
> 
>    kvm_dev_ioctl_create_vm+0x40/0x5d1:
>    kvm_dev_ioctl_create_vm at ??:?

You need a vmlinux with debuginfo compiled IIRC.
-- 
Michal Hocko
SUSE Labs

  reply	other threads:[~2018-07-23 12:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-10 12:07 Marc Lehmann
2018-07-10 12:32 ` Michal Hocko
2018-07-17 23:45   ` Marc Lehmann
2018-07-18  8:38     ` Michal Hocko
2018-07-22 23:34       ` Marc Lehmann
2018-07-23 12:55         ` Michal Hocko [this message]
2018-07-31  3:45           ` Marc Lehmann
2018-07-31  7:28             ` 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=20180723125554.GE31229@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=schmorp@schmorp.de \
    /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