hyperthreading in ubuntu_ltp_stable failed on J-ibm with node onibi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
This failure was hinted without a proper bug report. It seems this is specific to node onibi.
Test log:
Failed test cases : smt_smp_affinity smt_smp_enabled
startup='Tue Feb 21 01:51:52 2023'
smt_smp_enabled 0 TINFO : Begin: SMT/SMP Enabled
smt_smp_enabled 1 TCONF : ltpapicmd.c:188: Enable:
smt_smp_enabled 0 TINFO : End: SMT/SMP Enabled
tag=smt_
startup='Tue Feb 21 01:51:52 2023'
smt_smp_affinity 0 TINFO : Begin: SMT/SMP Affinity
smt_smp_affinity 1 TCONF : ltpapicmd.c:188: cpuX:offline
smt_smp_affinity 0 TINFO : End: SMT/SMP Affinity
tag=smt_
Nothing interesting in dmesg:
[104477.578371] LTP: starting smt_smp_enabled (smt_smp_
[104477.588795] LTP: starting smt_smp_affinity (smt_smp_
With "set -x" added to test test script (smt_smp_
smt_smp_enabled test (smt_smp_
<<<test_start>>>
tag=smt_smp_enabled stime=1682415438
cmdline=
contacts=""
analysis=exit
<<<test_output>>>
+ tst_resm TINFO Begin: SMT/SMP Enabled
smt_smp_enabled 0 TINFO : Begin: SMT/SMP Enabled
+ [ -f ./ht_enabled ]
+ ./ht_enabled
+ ret_value=0
+ [ 0 -ne 0 ]
+ tst_ncpus
+ no_of_processor=4
+ tst_ncpus_conf
+ no_of_cpu=32
+ [ 4 -lt 32 ]
+ test_op=
+ tst_resm TCONF Enable:
smt_smp_enabled 1 TCONF : ltpapicmd.c:188: Enable:
+ tst_resm TINFO End: SMT/SMP Enabled
smt_smp_enabled 0 TINFO : End: SMT/SMP Enabled
+ TFAILCNT=1
+ exit 1
smt_smp_affinity test (smt_smp_
<<<test_output>>>
incrementing stop
smt_smp_affinity 0 TINFO : Begin: SMT/SMP Affinity
+ [ -f ./ht_enabled ]
+ ./ht_enabled
+ ret_value=0
+ [ 0 -ne 0 ]
+ tst_ncpus
+ no_of_processor=4
+ tst_ncpus_conf
+ no_of_cpu=32
+ [ 4 -lt 32 ]
+ tst_resm TCONF cpuX:offline
smt_smp_affinity 1 TCONF : ltpapicmd.c:188: cpuX:offline
+ tst_resm TINFO End: SMT/SMP Affinity
smt_smp_affinity 0 TINFO : End: SMT/SMP Affinity
+ TFAILCNT=1
+ exit 1
The failure is because no_of_processor < no_of_cpu.
This issue still exists with the latest LTP upstream.
description: | updated |
With more investigation on this node, it seems the hyper-threading is probably not enabled in BIOS. system/ cpu/smt/ active
ubuntu@onibi:~/ltp$ cat /sys/devices/
0
ubuntu@onibi:~/ltp$ sudo dmidecode -t processor | grep Count
Core Count: 4
Thread Count: 4
And the console is not properly configured, I was unable to check this fact in BIOS with ipmi commands.