Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp319176ybh; Wed, 11 Mar 2020 01:38:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTclM6chRiy6LEPn6tEKFf1wL6L9xv49XI6oX6kMgQfTTehEpVFy1itPSP2a+/DzWokgrk X-Received: by 2002:a9d:21f5:: with SMTP id s108mr1354294otb.227.1583915881234; Wed, 11 Mar 2020 01:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583915881; cv=none; d=google.com; s=arc-20160816; b=mHrtnt/nH6CBW0ZxbUOscz7HsKZDO/+Kvu/VpJveaiVxwZtXx6FpBc/1wDYrjm47BA +nS8ThiFoBwHmOoLmaNGZ2laJrxW9E0uXVhKRs9LTdNYEWK2dL881zJBLyd1iRR4teU0 dWyc3Xrm9UpS2tXxaDzAO7IMEKnFB4m4lIxLnGBewYGRl8DS76I+eW8znRQKNvS2TuDJ bItEoZiDjbw2i593wT9cyQ4X3vCdcRxG98lhtntD/1UgJhHpCNravTCD70GC1HIdIBUr H2vwOqn5ws4QitWmNZMXU/b+LN9p64Vh1/MFDRgn+GN5mZVDOnvbV5/+NcntzWn63jJA d5xw== 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=PrLRJuPbYIK7nmotXnXODJV5Yg8CVdNS7eXeA+2dkkE=; b=RPCwmlJCpiPDHT6YVNAdb5DlAatAEihGBmimnF8BHl96nRBcEQeioj8t8Kb6BdkseZ 6ZauD8BCe7PDeVf//JHVPX90T/BeajIh+KTuafPJGSlk4UUqz7UhmToYhGUDcglVfmSP S4nKblY7h4ltNRJ+F3gqV2FWKy829qHeKgFy26tmOqVoqAk7AYQD/5uzhCuZnKmy3CdU w9XRbkvHr5zbHD0RJu2rSjEDBl0QjTsZd6CndTnuPbDA1d1iYVYFWEOYm//nidmE+7pX CWQw6itC4F4tjAU1V/2zTy1ugBY/ngZLDKPqqTjo4eEqFZoEmFzvDO0r0KUN335qZeEc VhMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si775107otr.94.2020.03.11.01.37.48; Wed, 11 Mar 2020 01:38:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728901AbgCKIgm (ORCPT + 99 others); Wed, 11 Mar 2020 04:36:42 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:40457 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728889AbgCKIgl (ORCPT ); Wed, 11 Mar 2020 04:36:41 -0400 Received: by mail-wr1-f44.google.com with SMTP id p2so1408625wrw.7 for ; Wed, 11 Mar 2020 01:36:41 -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=PrLRJuPbYIK7nmotXnXODJV5Yg8CVdNS7eXeA+2dkkE=; b=AhRKRh+p8J1KLZ/RUBmaQLcBZS113c0LiiN2RrF6bB2JotwZJdf5YV6l3UaY2x2BUn eQas+TiJ1JoSRFubIfkSbi0+mjd23MhAsiMjAgKq1+0izWQpDWYvC7w9gCeWn6p/lKX4 joPBAsVVcJFbtRihM+xG8593Srr6/dd+7a8wyb5NZeXhrJWmJqlx/VT0YJWLuvDMtKlM 28EUEZX0vLdo8UVhRB3AaZ9CMKf8bgMIxlpZZTpjNcYrj5GLqBRV5h9S8YzxfUl1yOLD gaGRLFG1Kg68ifF+DFhw2Bd+sLcDRzS1SUZdV8sDcY8XMVQJif7e2FSal167PHPaqLtE Sbxg== X-Gm-Message-State: ANhLgQ1P7iMTzqXFvGcCLM+5Iofh1MbM61NAO/uW0LbPE2yf7UO0EvWx JjgekRMOWfHlR+KvbIo22HU= X-Received: by 2002:adf:f047:: with SMTP id t7mr3277675wro.371.1583915800854; Wed, 11 Mar 2020 01:36:40 -0700 (PDT) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id m11sm22952260wrn.92.2020.03.11.01.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 01:36:40 -0700 (PDT) Date: Wed, 11 Mar 2020 09:36:39 +0100 From: Michal Hocko To: Andrew Morton Cc: David Rientjes , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch] mm, oom: prevent soft lockup on memcg oom for UP systems Message-ID: <20200311083639.GB23944@dhcp22.suse.cz> References: <20200310171802.128129f6817ef3f77d230ccd@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310171802.128129f6817ef3f77d230ccd@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 10-03-20 17:18:02, Andrew Morton wrote: [...] > (And why is shrink_node_memcgs compiled in when CONFIG_MEMCG=n?) Because there won't be anything memcg specific with the config disabled. mem_cgroup_iter will expand to NULL memcg, mem_cgroup_protected switch compiled out, mem_cgroup_lruvec will return the lruvec abstraction which resolves to pgdat and the rest is not memcg dependent. We could have split up the reclaim protection or the loop out of the line but I believe it is better to be clearly visible. -- Michal Hocko SUSE Labs