Re: [RFC PATCH v2 08/23] sched/topology: Introduce a per-CPU tasks NUMA preferred counter
From: Peter Zijlstra
Date: Mon Aug 31 2026 - 09:44:23 EST
On Thu, Aug 27, 2026 at 08:28:01PM +0800, Jianyong Wu wrote:
> Like the existed task LLC preferred counter, sd->llc_counts, introduce
> sd->numa_counts to denotes the task number that prefer each NUMA node in
> a certain rq.
>
> Signed-off-by: Jianyong Wu <wujianyong@xxxxxxxx>
> ---
> include/linux/sched/topology.h | 1 +
> kernel/sched/topology.c | 33 +++++++++++++++++++++++++++------
> 2 files changed, 28 insertions(+), 6 deletions(-)
>
> diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
> index b5d9d7c2b8ad..b31d2cf16592 100644
> --- a/include/linux/sched/topology.h
> +++ b/include/linux/sched/topology.h
> @@ -121,6 +121,7 @@ struct sched_domain {
> unsigned int llc_max;
> unsigned int *llc_counts __counted_by_ptr(llc_max);
> unsigned long llc_bytes;
> + unsigned int *numa_counts;
This is missing a __counted_by_ptr() annotation ?