Re: [PATCH 10/28] hazptrtorture: Add 128- and 256-CPU configs

From: Paul E. McKenney

Date: Tue Nov 10 2026 - 16:37:02 EST


On Thu, Nov 05, 2026 at 12:54:28AM +0800, Kunwu Chan wrote:
> Add CPU128 and CPU256 configs for hazptr-stack torture testing.
> These configs exercise the shared-scan path at larger CPU counts.
>
> Signed-off-by: Kunwu Chan <kunwu.chan@xxxxxxxxx>

For these, why not instead add '--kconfig "CONFIG_NR_CPUS=128"' to a
run in torture.sh? Ditto for 256 CPUs. These will override the values
given in the hazptr Kconfig files.

Thanx, Paul

> Acked-by: Bradley Morgan <brads@xxxxxxxxxxxxxx>
> ---
> .../selftests/rcutorture/configs/hazptr/CPU128 | 16 ++++++++++++++++
> .../rcutorture/configs/hazptr/CPU128.boot | 1 +
> .../selftests/rcutorture/configs/hazptr/CPU256 | 16 ++++++++++++++++
> .../rcutorture/configs/hazptr/CPU256.boot | 1 +
> 4 files changed, 34 insertions(+)
> create mode 100644 tools/testing/selftests/rcutorture/configs/hazptr/CPU128
> create mode 100644 tools/testing/selftests/rcutorture/configs/hazptr/CPU128.boot
> create mode 100644 tools/testing/selftests/rcutorture/configs/hazptr/CPU256
> create mode 100644 tools/testing/selftests/rcutorture/configs/hazptr/CPU256.boot
>
> diff --git a/tools/testing/selftests/rcutorture/configs/hazptr/CPU128 b/tools/testing/selftests/rcutorture/configs/hazptr/CPU128
> new file mode 100644
> index 000000000000..079b463607e8
> --- /dev/null
> +++ b/tools/testing/selftests/rcutorture/configs/hazptr/CPU128
> @@ -0,0 +1,16 @@
> +CONFIG_SMP=y
> +CONFIG_NR_CPUS=128
> +CONFIG_PREEMPT_NONE=n
> +CONFIG_PREEMPT_VOLUNTARY=n
> +CONFIG_PREEMPT=y
> +CONFIG_HZ_PERIODIC=n
> +CONFIG_NO_HZ_IDLE=y
> +CONFIG_NO_HZ_FULL=n
> +CONFIG_HOTPLUG_CPU=y
> +CONFIG_SUSPEND=n
> +CONFIG_HIBERNATION=n
> +CONFIG_DEBUG_LOCK_ALLOC=n
> +CONFIG_PROVE_LOCKING=n
> +CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
> +CONFIG_DEBUG_KERNEL=y
> +CONFIG_HAZPTR_DEBUG=y
> diff --git a/tools/testing/selftests/rcutorture/configs/hazptr/CPU128.boot b/tools/testing/selftests/rcutorture/configs/hazptr/CPU128.boot
> new file mode 100644
> index 000000000000..1d09a6446080
> --- /dev/null
> +++ b/tools/testing/selftests/rcutorture/configs/hazptr/CPU128.boot
> @@ -0,0 +1 @@
> +hazptrtorture.torture_type=hazptr-stack
> diff --git a/tools/testing/selftests/rcutorture/configs/hazptr/CPU256 b/tools/testing/selftests/rcutorture/configs/hazptr/CPU256
> new file mode 100644
> index 000000000000..b00a984977f3
> --- /dev/null
> +++ b/tools/testing/selftests/rcutorture/configs/hazptr/CPU256
> @@ -0,0 +1,16 @@
> +CONFIG_SMP=y
> +CONFIG_NR_CPUS=256
> +CONFIG_PREEMPT_NONE=n
> +CONFIG_PREEMPT_VOLUNTARY=n
> +CONFIG_PREEMPT=y
> +CONFIG_HZ_PERIODIC=n
> +CONFIG_NO_HZ_IDLE=y
> +CONFIG_NO_HZ_FULL=n
> +CONFIG_HOTPLUG_CPU=y
> +CONFIG_SUSPEND=n
> +CONFIG_HIBERNATION=n
> +CONFIG_DEBUG_LOCK_ALLOC=n
> +CONFIG_PROVE_LOCKING=n
> +CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
> +CONFIG_DEBUG_KERNEL=y
> +CONFIG_HAZPTR_DEBUG=y
> diff --git a/tools/testing/selftests/rcutorture/configs/hazptr/CPU256.boot b/tools/testing/selftests/rcutorture/configs/hazptr/CPU256.boot
> new file mode 100644
> index 000000000000..1d09a6446080
> --- /dev/null
> +++ b/tools/testing/selftests/rcutorture/configs/hazptr/CPU256.boot
> @@ -0,0 +1 @@
> +hazptrtorture.torture_type=hazptr-stack
> --
> 2.43.0
>