Skip to contentSkip to conversation

numa01.sh: unset default cpuset awareness before verify physcpubind

PATCH In review Shizhao Chen 2 participants 2 messages Sep 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 numa01.sh: unset default cpuset awareness before verify physcpubind

On systems with cpu isolation configured (a very common technique used in the real time kernel), $run_on_cpu may happen to be an isolated core and hence unaccessible to numactl.

Unset default cpuset awareness with --all, so numactl can use all possible CPUs/nodes for following physcpubind settings.

---
 testcases/kernel/numa/numa01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/numa/numa01.sh +1 -1
index 367813ce9..0181cd8f5 100755
@@ -183,7 +183,7 @@ test4()
 	no_of_cpus=$(tst_ncpus)
 	# not sure whether cpu's can't be in odd number
 	run_on_cpu=$(($((no_of_cpus+1))/2))
-	numactl --physcpubind=$run_on_cpu support_numa pause & #just waits for sigint
+	numactl --all --physcpubind=$run_on_cpu support_numa pause & #just waits for sigint
 	pid=$!
 	var=`awk '{ print $2 }' /proc/$pid/stat`
 	while [ $var = '(numactl)' ]; do
Signature · 5 lines
2.41.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Patch applied, thanks!

Signature · 5 lines
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp