On 4/10/2025 10:31 AM, Paul E. McKenney wrote:
> On Thu, Apr 10, 2025 at 09:59:07AM -0400, Joel Fernandes wrote:
>> Hello,
>> Currently with my ARM machine of 288 CPUs, I am only seeing 56 of them used 
>> at a
>> time. Any ideas if this is a bug or I am doing something wrong?
> 
> I regularly run with 80 CPUs, but perhaps the script's check for the
> number of CPUs is broken on ARM?  It currently relies on this:
> 
>       getconf _NPROCESSORS_ONLN
> 
> (See identify_qemu_vcpus() in functions.sh.)
> 
> What should it be doing instead on ARM?

I am guessing nothing different because it still gives 288:

$ getconf _NPROCESSORS_ONLN
288

> 
> Huh.  56 does not go evenly into 288, either.  Search me!
I think its failing because its only running the first SRCU-P for me and failing
for the rest in the batch because:

I see this for the rest of the runs: "Initial build failed, not running KVM":

I think its because this line is failing for ARM because it does not have a
bzImage (it instead has Image):

if test "$base_resdir" != "$resdir" && test -f $base_resdir/bzImage && test -f
$base_resdir/vmlinux

I'll try this and see if it works (sorry my thunderbird is wrapping the diff..):

diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
index ad79784e552d..957800c9ffba 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
@@ -73,7 +73,7 @@ config_override_param "$config_dir/CFcommon.$(uname -m)" 
KcList \
 cp $T/KcList $resdir/ConfigFragment

 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
-if test "$base_resdir" != "$resdir" && test -f $base_resdir/bzImage && test -f
$base_resdir/vmlinux
+if test "$base_resdir" != "$resdir" && (test -f $base_resdir/bzImage || test -f
$base_resdir/Image) && test -f $base_resdir/vmlinux
 then
        # Rerunning previous test, so use that test's kernel.
        QEMU="`identify_qemu $base_resdir/vmlinux`"

Thanks.



Reply via email to