[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YimRJS9XFE8nswkd@localhost.localdomain>
Date: Thu, 10 Mar 2022 06:48:21 +0100
From: Oscar Salvador <osalvador@...e.de>
To: "Huang, Ying" <ying.huang@...el.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Abhishek Goel <huntbag@...ux.vnet.ibm.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: Only re-generate demotion targets when a numa node
changes its N_CPU state
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
Powered by blists - more mailing lists