Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1175973pxp; Wed, 9 Mar 2022 23:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM8UEZIeZanZ3evRp/qZAHU5P7/9SIHHU6xZ5/QhAghHNQT1gVnhId2RBXR8yVeOhUfBr8 X-Received: by 2002:a17:902:a9cb:b0:151:f21c:2432 with SMTP id b11-20020a170902a9cb00b00151f21c2432mr3859287plr.158.1646897608906; Wed, 09 Mar 2022 23:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646897608; cv=none; d=google.com; s=arc-20160816; b=pVMexNjwpfHAWuUecIUoNNo8bBBDXCeAU3W/XG1Vgp3JXUzjBjj0Al4hyS8JGLt5Gl IAXa7P8Da5NNm2yUFdrqaVwVAF/iavbuXEzIvtm8fzcjbvaDieYIECQnIvD3ivBrSsDd pfxk7/hFuQVNxn4AMlX6n2E75ZMJR+u455TSOS3bHXZNkCD2lP+b19a+HiGnogqvIFIn KiyCAGCiY8PivDdFGMGJKwUyQQm39Ct79DEt6y4r/CTzH1HPc43PgNewhdACk8BNPjug DZFVYigBWuQMkHjJkrkrdhnVxOdc7dofJ2V20Aa1F9VlIeT6fdpymzMltQgLRk60HTAW 8S/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=hzxTsvvzhK5KVT7xuWAwpPmOQv+KiG4w64eraMyiq1M=; b=FQfgOQX36PphpOUXOZ6CWGUr8m+61HvvSszd5mcu198Z7XmgRYCaidtGP9Y/Wh6FIb b4/v4Hg0frWRHRt1iOn2ij1F5QBLAlt246Qz0bZymmE6p60/2VBRcO5av8OfdMU7WfAq Hky4vZtihQxLy2ieHmb8G/cReM+CLq1e3bEx9AEmlU1shdyOafoej/qYHTtAkHJzZSq0 Jb1/DW72sTA1dl45aPxuE6nrOkegdmLvRdqc+bkzlX6o6K4IvyCGGJBBfnJcTV6GRHSe Hhbhtshup9dvxjRY/lboQPVhGBJTovgWaxahJgR7YaHQyPN8KRS2txL+8IcaxbCf67C0 RVrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Jl9lihcE; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f71-20020a636a4a000000b00380dcee6d8csi1063886pgc.169.2022.03.09.23.33.10; Wed, 09 Mar 2022 23:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Jl9lihcE; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238106AbiCJFtq (ORCPT + 99 others); Thu, 10 Mar 2022 00:49:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239755AbiCJFta (ORCPT ); Thu, 10 Mar 2022 00:49:30 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819FEAE67 for ; Wed, 9 Mar 2022 21:48:25 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D7356210F3; Thu, 10 Mar 2022 05:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646891303; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hzxTsvvzhK5KVT7xuWAwpPmOQv+KiG4w64eraMyiq1M=; b=Jl9lihcEIuiCASQMBi+6z96c+PhquyjWojHJ7ThcmaL668ZSQQZ0qRvPuTH7FcG6ogJ253 lElJQVY2kHYr3KcEIr0WMAWwqMtPegYQU646cw8W5W5mQIH0H6xG1V6YdeFpXMA8qGIbEM bB/4kRlQgUUSUVylyXsrZ9BXMjcEjRA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646891303; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hzxTsvvzhK5KVT7xuWAwpPmOQv+KiG4w64eraMyiq1M=; b=DM+1Jv2UiUlEYLfpd6h8B+62AcnHcfJv2kVVEvHhVkNCKqefTvtFHZgaE5t/mnCBf2LV4Z tA1B5Kq2YlQTHfAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 07DBC13D07; Thu, 10 Mar 2022 05:48:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id z+L2OSaRKWLbfAAAMHmgww (envelope-from ); Thu, 10 Mar 2022 05:48:22 +0000 Date: Thu, 10 Mar 2022 06:48:21 +0100 From: Oscar Salvador To: "Huang, Ying" Cc: Andrew Morton , Dave Hansen , Abhishek Goel , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: Only re-generate demotion targets when a numa node changes its N_CPU state Message-ID: References: <20220309144644.4278-1-osalvador@suse.de> <87bkyefxnq.fsf@yhuang6-desk2.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bkyefxnq.fsf@yhuang6-desk2.ccr.corp.intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2022 at 08:39:53AM +0800, Huang, Ying wrote: > We need to call set_migration_target_nodes() during system boot > somewhere, either here or in init_mm_internals(). Hi Huang Ying, vmstat_cpu_online() already gets called during boot: static struct cpuhp_step cpuhp_hp_states[] = { ... #ifdef CONFIG_SMP [CPUHP_CREATE_THREADS]= { .name = "threads:prepare", .startup.single = smpboot_create_threads, .teardown.single = NULL, .cant_stop = true, }, ... smpboot_create_threads __smpboot_create_thread smpboot_thread_fn ht->thread_fn() cpuhp_thread_fun cpuhp_invoke_callback vmstat_cpu_online That for every CPU that is brought up during boot. So unless I am missing something, I would say we are already covered there, right? -- Oscar Salvador SUSE Labs