linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: vdavydov@virtuozzo.com, hannes@cmpxchg.org, rientjes@google.com,
	linux-mm@kvack.org
Subject: Re: oom: Bogus "sysrq: OOM request ignored because killer is disabled" message
Date: Mon, 3 Apr 2017 10:38:01 +0200	[thread overview]
Message-ID: <20170403083800.GF24661@dhcp22.suse.cz> (raw)
In-Reply-To: <201704021252.GIF21549.QFFOFOMVJtHSLO@I-love.SAKURA.ne.jp>

On Sun 02-04-17 12:52:55, Tetsuo Handa wrote:
> I noticed that SysRq-f prints
> 
>   "sysrq: OOM request ignored because killer is disabled"
> 
> when no process was selected (rather than when oom killer was disabled).
> This message was not printed until Linux 4.8 because commit 7c5f64f84483bd13
> ("mm: oom: deduplicate victim selection code for memcg and global oom") changed
>  from "return true;" to "return !!oc->chosen;" when is_sysrq_oom(oc) is true.
> 
> Is this what we meant?
> 
> [  713.805315] sysrq: SysRq : Manual OOM execution
> [  713.808920] Out of memory: Kill process 4468 ((agetty)) score 0 or sacrifice child
> [  713.814913] Killed process 4468 ((agetty)) total-vm:43704kB, anon-rss:1760kB, file-rss:0kB, shmem-rss:0kB
> [  714.004805] sysrq: SysRq : Manual OOM execution
> [  714.005936] Out of memory: Kill process 4469 (systemd-cgroups) score 0 or sacrifice child
> [  714.008117] Killed process 4469 (systemd-cgroups) total-vm:10704kB, anon-rss:120kB, file-rss:0kB, shmem-rss:0kB
> [  714.189310] sysrq: SysRq : Manual OOM execution
> [  714.193425] sysrq: OOM request ignored because killer is disabled
> [  714.381313] sysrq: SysRq : Manual OOM execution
> [  714.385158] sysrq: OOM request ignored because killer is disabled
> [  714.573320] sysrq: SysRq : Manual OOM execution
> [  714.576988] sysrq: OOM request ignored because killer is disabled

So, what about this?
---

  reply	other threads:[~2017-04-03  8:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-02  3:52 Tetsuo Handa
2017-04-03  8:38 ` Michal Hocko [this message]
2017-04-03  9:11   ` Michal Hocko
2017-04-03 10:10     ` Tetsuo Handa
2017-04-03 10:10     ` Vladimir Davydov
2017-04-03 10:20       ` Michal Hocko
2017-04-04 13:23         ` Michal Hocko
2017-04-04 13:36           ` Vladimir Davydov

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=20170403083800.GF24661@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    --cc=rientjes@google.com \
    --cc=vdavydov@virtuozzo.com \
    /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