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


Groups > linux.kernel > #1355824

Re: [PATCH] mm, proc: make clear_refs killable

From Vlastimil Babka <vbabka@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH] mm, proc: make clear_refs killable
Date 2016-03-11 12:10 +0100
Message-ID <rbt7c-5b2-15@gated-at.bofh.it> (permalink)
References <r7w3E-3yu-9@gated-at.bofh.it> <r7AqC-6t8-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02/29/2016 06:56 PM, Michal Hocko wrote:
> From: Michal Hocko <mhocko@suse.com>
>
> CLEAR_REFS_MM_HIWATER_RSS and CLEAR_REFS_SOFT_DIRTY are relying on
> mmap_sem for write. If the waiting task gets killed by the oom killer
> and it would operate on the current's mm it would block oom_reaper from
> asynchronous address space reclaim and reduce the chances of timely OOM
> resolving. Wait for the lock in the killable mode and return with EINTR
> if the task got killed while waiting. This will also expedite the return
> to the userspace and do_exit even if the mm is remote.
>
> Cc: Oleg Nesterov <oleg@redhat.com>
> Cc: Petr Cermak <petrcermak@chromium.org>
> Signed-off-by: Michal Hocko <mhocko@suse.com>

Acked-by: Vlastimil Babka <vbabka@suse.cz>

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


Thread

Re: [PATCH] mm, proc: make clear_refs killable Vlastimil Babka <vbabka@suse.cz> - 2016-03-11 12:10 +0100

csiph-web