Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp928758ybv; Wed, 19 Feb 2020 12:08:46 -0800 (PST) X-Google-Smtp-Source: APXvYqy0t0hwcCrRrxXm1MSa4D9TKarGLuzQO3d5V19Qqw2oRwrhv4g/wYicb/rAml76hE6bshSC X-Received: by 2002:a9d:7511:: with SMTP id r17mr19701916otk.154.1582142925793; Wed, 19 Feb 2020 12:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582142925; cv=none; d=google.com; s=arc-20160816; b=nwHkiNmAnUxG9ySj3GtxScNhpY3aS9EXLXjs8X5zSxq1AWk/Slg8v3LHjIWB9pWQ1J icqXmytWLg148oto9bOgUW8a09I+pSpwVMpln8qyvq78huYfXtvvjqcdFngmhx4J1sE1 sDKkbre7FPoire+aazqwXtk8EdS+RcYxQo2KYAq/9Q873WrztqzGQdp7i3kKRVJyzl9z AFmsYkz+pTKSD//KqJ1Q/pnxzxrIiEJ64VpjfPjJQB5nsJGMIjrSsE9IXkC0iflaI3zg C1n0BDhHzFBh2YlitaeF02PsODMrIDg0dwzi5gLFB3bRsnyEtGWKgWFa3jqVh2/AcIex g8RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7b9BzaeqN/0EPPXXoMNYrjwpSCFI18MeRKSxh6WZlQc=; b=FmcGDlA8CZjb3gF1kNXqgEoaA5/yv4jOftp+VMEnBHIFEaQo71KxVsHIpN8AYXOdTK 6KBP+yD+CVz6bMCb1aaW5SyZV50aLr7ZVqQ3Ob2i7vQSVxFtSQCiuOw67Z5GjLV+DiQP uE64gE/AhhQrJAd+Y49mJkZj9WK2D8sbz0pwkavioORvQLJJoJqmg7EZ3rwd8GtgEHad rwI5cuT+apmZyl+daggKEdT8oZcZwFQC0Lces812ouDBR7JKu8rV4AWsqG/QJar/g9lk XfId8r39+5kbl7lM7MgwOgcyAWi2yU3g+volm4Kp/pZMikFd732qbRMY966rfa7Bran4 2img== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U4t0+1H9; 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 t127si10442323oih.45.2020.02.19.12.08.33; Wed, 19 Feb 2020 12:08:45 -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=@kernel.org header.s=default header.b=U4t0+1H9; 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 S1726750AbgBSUIN (ORCPT + 99 others); Wed, 19 Feb 2020 15:08:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:46344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgBSUIN (ORCPT ); Wed, 19 Feb 2020 15:08:13 -0500 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 842F32176D; Wed, 19 Feb 2020 20:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582142891; bh=K/D5JbPk2+EBYp2gmQA0q9ditYqXaZ6u/jNNJaQQNeU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=U4t0+1H9+T91595fwF5FJlrfN5hAP7b2OvyDrCSy3zwLJrvS07mTsYuEM5DXHnFGp 4qFSz1jxRax7qvwJ19FfAf+jYHr05omtkY3xWKa9Bat7iEgGBVKKyg8tHE6D0KUotm JV5ctKrnTkl+82JgBHttCq5MEna+P72IO2uvUTbE= Date: Wed, 19 Feb 2020 12:08:10 -0800 From: Andrew Morton To: Wei Yang Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, rientjes@google.com, mhocko@kernel.org Subject: Re: [Patch v4] mm/vmscan.c: remove cpu online notification for now Message-Id: <20200219120810.c7677fa58594f5423549f59d@linux-foundation.org> In-Reply-To: <20200218224422.3407-1-richardw.yang@linux.intel.com> References: <20200218224422.3407-1-richardw.yang@linux.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Feb 2020 06:44:22 +0800 Wei Yang wrote: > kswapd kernel thread starts either with a CPU affinity set to the full > cpu mask of its target node or without any affinity at all if the node > is CPUless. There is a cpu hotplug callback (kswapd_cpu_online) that > implements an elaborate way to update this mask when a cpu is onlined. > > It is not really clear whether there is any actual benefit from this > scheme. Completely CPU-less NUMA nodes rarely gain a new CPU during > runtime. This is the case across all platforms, all architectures, all users for the next N years? I'm surprised that we know this with sufficient confidence. Can you explain how you came to make this assertion? > Drop the code for that reason. If there is a real usecase then > we can resurrect and simplify the code.