Re: [PATCH 00/11] nodemask: switch to runtime nr_node_ids

From: Gregory Price (Meta)

Date: Fri Dec 04 2026 - 12:53:15 EST


On 2026-12-01 13:52 -0500, Yury Norov wrote:
>
> set_mempolicy(MPOL_BIND) is 5% faster with this series for MAXSMP.
>

just for additional context, you're saying calling the set_mempolicy()
syscall is 5% faster, or some other operation associated with the bind
after it's put in place?

if so, calling set_mempolicy() is not particularly hot-path behavior so
this isn't really useful data.

> Performance: MAXSMP vs 1 cpu x 1 node
>
> Baseline:
> - cpumasks basic ops are 3-10x slower;
> - nodemask basic ops are 10-32x slower;
>
> This series:
>
> - cpumasks basic ops are 3-10x slower;
> - nodemasks basic ops are 3-10x slower;
>
> Before/after:
> - cpumasks: no significant change;
> - nodemasks: 70-75% faster;

This data is confusing.

Baseline vs This Series are both slower? slower than what?

How can the baseline be slower?

Before/after what? The series?

Please help me understand.

--
~Gregory