Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3352276ybz; Mon, 4 May 2020 01:05:21 -0700 (PDT) X-Google-Smtp-Source: APiQypJid4cgMcmALa43cYapjtn5j6pjuFGI0nwqY2rPIzb8vUzPoGqRaimsIGTJefG0Y26Nu47A X-Received: by 2002:a17:906:8152:: with SMTP id z18mr13398200ejw.4.1588579520829; Mon, 04 May 2020 01:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588579520; cv=none; d=google.com; s=arc-20160816; b=KzSSiCTr4tVBcD8EAlJ39WOXpM753swJHQrzArz6CVWVXSYPvtsmFLOsK+wEPQhUd6 iZiDPx6MQp7U4WuZqXUzib+Dg/s8s6QvJQEKUpmXMGmhuksnXddusgtoV43tOb9P+u7l yur1YCBPEm3o9u1ikG7DOImUtMZFLRi/oSSmK8vsxtC37ma2aPdPI4VRbXWQT/UsAq+h daBOqkQBvdjN6yM3khxvlsorj+322PoehGbN4K8UbdI/mvI395sc2UX6l/dJgsxaaJXm IruLbX6O+ND6rx7NnQUvzB6zxA/sgzuLWzP3LjQLFEab1QW5EfaHaOr/hrdh2oKi/ddj T6sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/dle8w9T/9fZDXiBv7O2x4fp68bt2R/VvMXMsCmw1pE=; b=OCrOPivVNRN5fCRJs7WY17PL59GO3eixDVCew7AHDFIVp9jtrjTA+1e3yYpkDv27qR DzmB3EGf+xJEc78Dozutxs1wWYNujvSl1g7TN0yUvw5FNbwyG1tFiJMho0yOMbsq1yn1 ywMRXwZc7UpDIDE8rxKtdn7afbE4aoK8+d/baaanow1/YCLoxEe+C9qSasjF62boRh3X nr0D+IqYE89gvST99kSSTWaJqtE35dyTnVYvx+TP96laDg8x78hO7G/kH8VisILhSu3L aooCC9gkRquARsCfzFSV2n3hvF684PNVOiAkuRMsVrcHWXlSD3kBm1g40CmsJ4L6wTIS LU7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si6304657edv.573.2020.05.04.01.04.54; Mon, 04 May 2020 01:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728049AbgEDIDN (ORCPT + 99 others); Mon, 4 May 2020 04:03:13 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40831 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgEDIDN (ORCPT ); Mon, 4 May 2020 04:03:13 -0400 Received: by mail-wr1-f66.google.com with SMTP id e16so14623682wra.7; Mon, 04 May 2020 01:03:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/dle8w9T/9fZDXiBv7O2x4fp68bt2R/VvMXMsCmw1pE=; b=mrd6kTFB+WjVAUnCqoaxN6kSyAfmShjurd/as1bJan51An2esasyt9EunGhlqNd/w6 RCMNpTPimcj15FTHrrLvLwrQP3+DPd9A8HqUhKOUJLoC7bpgXVuQh3WuIYoqhEaciZUc V0B51MiKhb8l88xbDAGVQB312OstY2yhYby+udHNgMMZ4vqa4TUfeGVNo3JnJ0xYDQNB guXIBzNmKcrWCgVRZAiV+C9r6v22dxV5w1s3hM7mSqS5JVMe9vIIPuEcez9WN1T3WqAn 5hu0m8aMKUCQFWyoUDNgzMBfUDKlPTjwl6RnN5+XYcMOj1aOQB2zIRSwMkE/WxFKmqns 2yXg== X-Gm-Message-State: AGi0PuajxtVLtggKv4qGdWveo28Ghl3iQ9b81V2EHaou0rx8ugAFGmsz 8jWNofIL+vA4u/SsB6HcZdU= X-Received: by 2002:adf:9564:: with SMTP id 91mr18305719wrs.246.1588579389756; Mon, 04 May 2020 01:03:09 -0700 (PDT) Received: from localhost (ip-37-188-183-9.eurotel.cz. [37.188.183.9]) by smtp.gmail.com with ESMTPSA id d143sm12147653wmd.16.2020.05.04.01.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 01:03:09 -0700 (PDT) Date: Mon, 4 May 2020 10:03:08 +0200 From: Michal Hocko To: Yafang Shao Cc: Shakeel Butt , Johannes Weiner , Roman Gushchin , Greg Thelen , Andrew Morton , Linux MM , Cgroups , LKML Subject: Re: [PATCH] memcg: oom: ignore oom warnings from memory.max Message-ID: <20200504080308.GI22838@dhcp22.suse.cz> References: <20200430182712.237526-1-shakeelb@google.com> <20200504070301.GC22838@dhcp22.suse.cz> <20200504073549.GE22838@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 04-05-20 15:40:18, Yafang Shao wrote: > On Mon, May 4, 2020 at 3:35 PM Michal Hocko wrote: > > > > On Mon 04-05-20 15:26:52, Yafang Shao wrote: [...] > > > As explianed above, no eligible task is different from no task. > > > If there are some candidates but no one is eligible, the system will panic. > > > While if there's no task, it is definitely no OOM, because that's an > > > improssible thing for the system. > > > > This is very much possible situation when all eligible tasks have been > > already killed but they didn't really help to resolve the oom situation > > - e.g. in kernel memory leak or unbounded shmem consumption etc... > > > > That's still an impossible thing, because many tasks are invisible to > the oom killer. > See oom_unkillable_task(). I do not follow, really. oom_unkillable_task only says that global init cannot be killed and that it doesn't make any sense to kill kernel threads as they do not own any mm normally. -- Michal Hocko SUSE Labs