Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301819

Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killer under OOM livelock

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killer under OOM livelock
Date 2016-01-05 19:10 +0100
Message-ID <qNEdu-6sw-67@gated-at.bofh.it> (permalink)
References <qLiAq-303-1@gated-at.bofh.it> <qNCEG-5ih-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 05-01-16 17:22:46, Michal Hocko wrote:
> On Wed 30-12-15 15:33:47, Tetsuo Handa wrote:
[...]
> > I wish for a kernel thread that does OOM-kill operation.
> > Maybe we can change the OOM reaper kernel thread to do it.
> > What do you think?
> 
> I do no think a separate kernel thread would help much if the
> allocations have to keep looping in the allocator. oom_reaper is a
> separate kernel thread only due to locking required for the exit_mmap
> path.

Let me clarify what I've meant here. What you actually want is to do
select_bad_process and oom_kill_process (including oom_reap_vmas) in
the kernel thread context, right? That should be doable because we do
not depend on the allocation context there. That would certainly save
1 kernel thread for the sysrq+f part but it would make the regular
case more complicated AFAICS. We would have to handle queuing of the
oom requests because multiple oom killers might be active in different
allocation domains (cpusets, memcgs) so I am not so sure this would be a
great win in the end. But I haven't tried to do it so I might be wrong
and it will turn up being much more easier than I expect.

-- 
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killer  under OOM livelock Michal Hocko <mhocko@kernel.org> - 2016-01-05 17:30 +0100
  Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killer  under OOM livelock Michal Hocko <mhocko@kernel.org> - 2016-01-05 18:40 +0100
  Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killer  under OOM livelock Michal Hocko <mhocko@kernel.org> - 2016-01-05 19:10 +0100
    Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killerunder OOM livelock Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> - 2016-01-06 13:00 +0100
      Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM  killerunder OOM livelock Michal Hocko <mhocko@kernel.org> - 2016-01-06 14:20 +0100

csiph-web