From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Hocko Subject: Re: [PATCH v3 2/4] mm/oom: handle remote ooms Date: Fri, 12 Nov 2021 08:51:56 +0100 Message-ID: References: <20211111234203.1824138-1-almasrymina@google.com> <20211111234203.1824138-3-almasrymina@google.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1636703518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4eMX7TMvJ0ihc860r22e2HZ4Cwsqms8Yzpn9g90MXM8=; b=hSJz3FWqJKqbxal213cJIhQ2EpexvzZhCOOoO2UAULCqwvPn+HVt0mloZUoDAM3ZtXTVkh FVH3ALfn1CD/pqHOVUP9Uj5Otd1xMm4/dWQWWq1tZ3kFLVJoyiOQ4DLpZ8XX5r+ZWClKdz PaHW9BZI7aywr1kzXIRDCXK4+ZX3fSQ= Content-Disposition: inline In-Reply-To: <20211111234203.1824138-3-almasrymina-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mina Almasry Cc: Theodore Ts'o , Greg Thelen , Shakeel Butt , Andrew Morton , Hugh Dickins , Roman Gushchin , Johannes Weiner , Tejun Heo , Vladimir Davydov , Muchun Song , riel-ebMLmSuQjDVBDgjK7y7TUQ@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu 11-11-21 15:42:01, Mina Almasry wrote: > On remote ooms (OOMs due to remote charging), the oom-killer will attempt > to find a task to kill in the memcg under oom, if the oom-killer > is unable to find one, the oom-killer should simply return ENOMEM to the > allocating process. This really begs for some justification. > If we're in pagefault path and we're unable to return ENOMEM to the > allocating process, we instead kill the allocating process. Why do you handle those differently? > Signed-off-by: Mina Almasry > > Cc: Michal Hocko > Cc: Theodore Ts'o > Cc: Greg Thelen > Cc: Shakeel Butt > Cc: Andrew Morton > Cc: Hugh Dickins > CC: Roman Gushchin > Cc: Johannes Weiner > Cc: Hugh Dickins > Cc: Tejun Heo > Cc: Vladimir Davydov > Cc: Muchun Song > Cc: riel-ebMLmSuQjDVBDgjK7y7TUQ@public.gmane.org > Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org > Cc: linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org -- Michal Hocko SUSE Labs