Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9834355imu; Wed, 5 Dec 2018 11:03:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UqXZOdsfqPf6yLfdZy6Uuhh22xRJwor69PbBJzoEyp3BimS74OdoPAFfQZSFr7qShIloKA X-Received: by 2002:a17:902:1745:: with SMTP id i63mr24759513pli.145.1544036609396; Wed, 05 Dec 2018 11:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544036609; cv=none; d=google.com; s=arc-20160816; b=HO43bEi84iNPYlDdXOfPmLDGVWYk5PCc9v6vuKaGnWV8Nw460aerHALKfet17JmQ0v p3u0LJDeFlvb2ixmxV5JPh3CUI+83NSHzcOXvHYCCT7wb+c3rtWTFCqdPDrd5ErpFXf6 cjixvWCpufOJVlWOykVr5beB9FhZIWg+Cv7aDC4SxsxbhdRoYTfjoG9a+y8TvW0WcgqH vSvvnRkbNLN6A+26SHRyoONRkgVexjmbmQfaOGKGOTqePcXZQyoeWNw23Bcx/T/0ay4Y O+44AnzUPZRY7ntPy8+VNCuMOwXoJ/rQ39wTOwFe6adxi5bahDmQklsjeh7LKhg0Hldu imhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wsnQOTkUnx8CL9Z5KKvss9h3kVd/jnVBhTMb767fQbw=; b=Tvr4nlvTrU2y8o57Z+yDl6iKzf/3Yr9GUSiQF8DxE1Jo0WGr/cp56sQViQGPOonlLs Q/0xrcQl5PEWsDJpO/gUYs024QeF4ywHktSYtsxLrrTBRKMT8WqNPIvgHMlrtdJYcyLw RS31LPQJPlAivB+XW7xmSXZSQc0LS5Z+uAnUtUBOyAMyXsZ4AbCF3JXD61iwyfSExoY3 c7Ul0uA5iV8g9Inezr7NBvnUFHGeaNv3tDNOBRGQjOVmjZdu+QvQbSK8fsB0PUxHIXo3 H7eP7BXSHjatM7DzkKeUr2dRbEslYhKKfuDRZz7HHW5PohxQPVtxM7KbiPLJ1g5tJpcd TEjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=g+ECFszL; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y123si20899101pfy.18.2018.12.05.11.03.14; Wed, 05 Dec 2018 11:03:29 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=g+ECFszL; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727832AbeLETAW (ORCPT + 99 others); Wed, 5 Dec 2018 14:00:22 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42175 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbeLETAW (ORCPT ); Wed, 5 Dec 2018 14:00:22 -0500 Received: by mail-pg1-f193.google.com with SMTP id d72so9429860pga.9 for ; Wed, 05 Dec 2018 11:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=wsnQOTkUnx8CL9Z5KKvss9h3kVd/jnVBhTMb767fQbw=; b=g+ECFszLYuOCu8VNcBp+VwxRMqjonff3N+NbRSSMk3wjlEoR5TBOPQFBGc36r2aijQ /Bn6bmCly/YFqDNvTjVwbnworLIyAQHECYHW4EmbRXB3i54Atrs1abfMaUTDfrSw41mS gY2lcExOQlPfzlXcVoEhmqdIj5Ea/7YQKZ4EP/m4RRAppkUwdYU2eg41cRZa1awnGBTD 71y58jGSikbss7rggBoGJsyxt6RYVXqBVmdU4QpFPWBtrj4Wg3l+zgjpRzj7VgiQ/kyF OIKVDnlPT4nVKEut6UKsAUBOeOFhqHWn555guhYMpH8MokD8Kwidagti6CXLyNzdg9va 1FFw== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=wsnQOTkUnx8CL9Z5KKvss9h3kVd/jnVBhTMb767fQbw=; b=WoSjJpsHqg7pJv5nxvSRfZAnT8hTBFlkAh1/v/sHHWoIXQDrfUp7+IZ3Yd9Q+x5QnL 7Ua+hlpDNmINvYo3K8YIhNP9ib0rFzJ05gHyo7ps31JfGwF04Xl5bSVlNtsrNxciP2XK kR1Lz0WVZijnz7CooNzJswPdyJlRzovDBDv7PO2dMeq7xCDr2BGoinL2nYYX3E/cbV/t UolraAfDCYdjX1Ju59lIyv5z6/5V1gvUHCQwE1g2CyEJpSaZFGDiXTLuYyvOwYmD1erC a26m1+Bwy/6/UTDKuM2zH2wkHLEXJVmKPJ3XqrHEDQAnzlUgelFM2jx8ZWKhtaxLLWtA YtiA== X-Gm-Message-State: AA+aEWYoV7Er67zl1enITtiiIWKOttg3ZvX+bXLytwcmgl3FYValPTdt 3DuZVILmf/jcPTRQTNk1w/lBGQ== X-Received: by 2002:a62:ca9c:: with SMTP id y28mr25359270pfk.236.1544036421224; Wed, 05 Dec 2018 11:00:21 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id g28sm38393114pfd.100.2018.12.05.11.00.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 11:00:20 -0800 (PST) Date: Wed, 5 Dec 2018 11:00:19 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Pingfan Liu cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline In-Reply-To: Message-ID: References: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Dec 2018, Pingfan Liu wrote: > > > And rather than using first_online_node, would next_online_node() work? > > > > > What is the gain? Is it for memory pressure on node0? > > > Maybe I got your point now. Do you try to give a cheap assumption on > nearest neigh of this node? > It's likely better than first_online_node, but probably going to be the same based on the node ids that you have reported since the nodemask will simply wrap around back to the first node.