Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5076675imm; Tue, 21 Aug 2018 06:01:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxGp1inaRPVndvsCuPOvcx1fiikF8IWxoRMt7BCUuKnZwjysl7IYNb0T3/K4/XDYQkfXf38 X-Received: by 2002:a62:a649:: with SMTP id t70-v6mr53029968pfe.149.1534856487684; Tue, 21 Aug 2018 06:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534856487; cv=none; d=google.com; s=arc-20160816; b=ze/rBZYjTkUacL2oP4EI1GNsASoNaHeGSorhQV5T4S/i7drdb6z/zSdnEqYEhOwWDo Uf6RDyyF8ZnonFSzyvEmYPFiu/n3C+XWTLdAsR/TgZ47v9MzbZ3mZ+UHJvj5cIKpPVAi JEhoOWQN9lLfqNsufn5hzgdSXDQ7p7PQIWqyO3IY7SluDC09LKUlpGgVYOz9CT1uMwwB UufjZ45rbYpSzsOrhwZTuuuu2+4kUXFME8Mz6/YBvd6PpP+CtW4F4xLj2dk0x6CCbOsx ynEiOqZFMoXF3F7FQysTgRpZ2YC+1rBJ4rM6dXGqxCEgbJIGpzJ7ypJRMG2JeyNBkByR v/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=oJeTZCFZ6Vc724C5uEYbt7sNJqz7l1QoeZkwSeK1ZDQ=; b=LxcZob0yOssf4iQj0rnQNrXfwtv1OAaqy+q9baxByOjxqlof6hOjIQTqLePfChfcIu 4A+G45ftVwjFx+dRrKGODuql1m0nusMaNOqZO75F6Wpy3hOBhgHfmXuAiKDs+H2hZmNz eyfo7AxtOXgm0kt5SZTtE4Nr7dId92SwVrc+XhsLIRYt2xd1S8ruEQJD8zL58QUkFiUD QBtqzxM4Dz2lPNHTVE6Zs4AWankp+mMwtaCJWnACk+9sCBoRT1SnZtr/Y9n0CNdxzRKt ylVJVEkv/sXWWAW18buYGAAlSBWir4wmZakxRcjl4kNejjEpbm7JsKKdusmDjF+tC/Bt HusA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si12215563pga.188.2018.08.21.06.01.11; Tue, 21 Aug 2018 06:01:27 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbeHUQSw (ORCPT + 99 others); Tue, 21 Aug 2018 12:18:52 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40052 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbeHUQSw (ORCPT ); Tue, 21 Aug 2018 12:18:52 -0400 Received: by mail-wr1-f65.google.com with SMTP id n2-v6so5306569wrw.7 for ; Tue, 21 Aug 2018 05:58:48 -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:user-agent; bh=oJeTZCFZ6Vc724C5uEYbt7sNJqz7l1QoeZkwSeK1ZDQ=; b=LbvUfxAOOkCoKSEeZjh8oKWCQXjU3PDUif1LqXQdk3fHSXFci5YR/B1hR+KpCk9nsG NelIwREKfBCcjLdaTExCeHYjn10PvKUyZyk+3XZEVXwI9p72Ic76YUf+IXv24goeK+ev rp86UFUtqJBdc3snL6oycCQOuvo7i+YLL3WjEJ6jJwlSFE3H+MjbyjvDybWes1AmBls7 LqjeXXM/UUQocPND61CEvFwyqkrcOqVG/39ywkiLS4CPq4mKsTyl/O0iW4gdBORUWNJv GJfuVDX03ttyA2pN/EeM6EvNMCN6viuT6/XaVtcflQ0jwCDOC2i3uAQQlIrQXHHTrgdN BceQ== X-Gm-Message-State: APzg51BZrwALorWFiVWvx85nMms2GkxIdvQe7XzjsMP6MpmpueV0Evfb gDAev0qVAWPEIk2DFNe/frA= X-Received: by 2002:adf:a11c:: with SMTP id o28-v6mr11236890wro.169.1534856328037; Tue, 21 Aug 2018 05:58:48 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id g6-v6sm2370606wmf.16.2018.08.21.05.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 05:58:47 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id BBA911249C5; Tue, 21 Aug 2018 14:58:46 +0200 (CEST) Date: Tue, 21 Aug 2018 14:58:46 +0200 From: Oscar Salvador To: Michal Hocko Cc: Andrew Morton , tglx@linutronix.de, joe@perches.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: Re: [PATCH] mm: Fix comment for NODEMASK_ALLOC Message-ID: <20180821125846.GB9489@techadventures.net> References: <20180820085516.9687-1-osalvador@techadventures.net> <20180820142440.1f9ccbebefc5d617c881b41e@linux-foundation.org> <20180821121734.GA29735@dhcp22.suse.cz> <20180821123024.GA9489@techadventures.net> <20180821125156.GB29735@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180821125156.GB29735@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2018 at 02:51:56PM +0200, Michal Hocko wrote: > On Tue 21-08-18 14:30:24, Oscar Salvador wrote: > > On Tue, Aug 21, 2018 at 02:17:34PM +0200, Michal Hocko wrote: > > > We do have CONFIG_NODES_SHIFT=10 in our SLES kernels for quite some > > > time (around SLE11-SP3 AFAICS). > > > > > > Anyway, isn't NODES_ALLOC over engineered a bit? Does actually even do > > > larger than 1024 NUMA nodes? This would be 128B and from a quick glance > > > it seems that none of those functions are called in deep stacks. I > > > haven't gone through all of them but a patch which checks them all and > > > removes NODES_ALLOC would be quite nice IMHO. > > > > No, maximum we can get is 1024 NUMA nodes. > > I checked this when writing another patch [1], and since having gone > > through all archs Kconfigs, CONFIG_NODES_SHIFT=10 is the limit. > > > > NODEMASK_ALLOC gets only called from: > > > > - unregister_mem_sect_under_nodes() (not anymore after [1]) > > - __nr_hugepages_store_common (This does not seem to have a deep stack, we could use a normal nodemask_t) > > > > But is also used for NODEMASK_SCRATCH (mainly used for mempolicy): > > mempolicy code should be a shallow stack as well. Mostly the syscall > entry. Ok, then I could give it a try and see if we can get rid of NODEMASK_ALLOC in there as well. -- Oscar Salvador SUSE L3