numa01.sh: unset default cpuset awareness before verify physcpubind
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.
Signed-off-by Shizhao Chen <[email protected]>
Reviewed-by Li Wang <[email protected]>
--- testcases/kernel/numa/numa01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/numa/numa01.sh +1 -1
@@ -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
Patch applied, thanks!
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp