Bug 1926578
| Summary: | [RHEL8.3rt] oslat test doesn't report any recorded Samples with CPU list | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pradipta Kumar Sahoo <psahoo> | ||||||||||
| Component: | rt-tests | Assignee: | John Kacur <jkacur> | ||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Mike Stowell <mstowell> | ||||||||||
| Severity: | urgent | Docs Contact: | |||||||||||
| Priority: | urgent | ||||||||||||
| Version: | 8.4 | CC: | bhu, chwhite, jkacur, kcarcia, lcapitulino, lgoncalv, mstowell, peterx, pezhang, qzhao, rt-maint, williams | ||||||||||
| Target Milestone: | rc | Keywords: | Triaged | ||||||||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||||||||
| Hardware: | x86_64 | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | rt-tests-1.10-3.el8 | Doc Type: | If docs needed, set a value | ||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2021-05-18 15:50:38 UTC | Type: | Bug | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Bug Depends On: | |||||||||||||
| Bug Blocks: | 1883636, 1898189 | ||||||||||||
| Attachments: |
|
||||||||||||
++Correction: Actual results: No cores and samples reported in oslat test. The test has executed with "realtime-virtual-guest" tuned profile inside the guest and the rt-kvm host enabled with "realtime-virtual-host" tuned profile. I feel like oslat is broken even upstream. xz-x1:rt-tests [master]$ git ls src/oslat 85b0763 oslat: Use parse_cpumask() from rt-numa.h e7f2510 oslat: Use string parser utilies e3d9389 rt-tests: oslat: Close trace fds e411219 oslat: Streamline usage output and man page 165b597 rt-tests: oslat: Allow build for not supported archs 8dad377 rt-tests: oslat: Proper reformat of code c86dec5 rt-tests: oslat: Init commit It seems 85b0763 broke it. I also noticed that even "oslat -v" is broken upstream... now it dumps nothing. The lastest commit I used is 165b597 which is still good... so I suspect the string parser change also break something else. CC John too. (In reply to Pradipta Kumar Sahoo from comment #0) > # make > cc -O2 -Wall -c -o main.o main.c > In file included from main.c:26: > rt-utils.h:21:10: fatal error: numa.h: No such file or directory > #include <numa.h> > ^~~~~~~~ > compilation terminated. > make: *** [<builtin>: main.o] Error 1 Just FYI: you'd need "sudo dnf install libnuma-devel" to compile. PS: I also reported the breakage upstream to the author of the patches. (In reply to Pradipta Kumar Sahoo from comment #0) > 5. Ran the oslat test isolated cores with rtprio value 1. > # oslat --cpu-list 2-13 --rtprio 1 --duration 60s > Total runtime: 60 seconds > Thread priority: SCHED_FIFO:1 > CPU list: 2-13 > CPU for main thread: 0 > Workload: no > Workload mem: 0 (KiB) > Preheat cores: 0 This is odd. There's indeed a bug in oslat, but I cannot reproduce the same issue as you on my host... virtlab602:~ $ rpm -q numactl numactl-2.0.12-9.el8.x86_64 virtlab602:~ $ rpm -q rt-tests rt-tests-1.10-1.el8.x86_64 virtlab602:~ $ sudo oslat --cpu-list 2-13 --rtprio 1 --duration 60s Total runtime: 60 seconds Thread priority: SCHED_FIFO:1 CPU list: 2-13 CPU for main thread: 0 Workload: no Workload mem: 0 (KiB) Preheat cores: 10 <--------------------------- here it's 10 not 0 So it should be 12 rather than 10. But in your test environment, it's 0. It seems there're more than one bug. Pradipta, could you share the version of numactl on your host (rpm -q numactl)? Also, could you try another tool of rt-tests to see whether numa parsing is correct? For example, what's the output of below command on your side? # cyclictest -a 2-13 -t 12 -D 1 Thanks, Peter Sorry, you should look for numactl-libs rather than numactl itself. Here I have: virtlab602:~ $ rpm -q numactl-libs numactl-libs-2.0.12-11.el8.x86_64 (In reply to Peter Xu from comment #8) > Sorry, you should look for numactl-libs rather than numactl itself. Here I > have: > > virtlab602:~ $ rpm -q numactl-libs > numactl-libs-2.0.12-11.el8.x86_64 BuildRequires: numactl-devel (In reply to John Kacur from comment #9) > (In reply to Peter Xu from comment #8) > > Sorry, you should look for numactl-libs rather than numactl itself. Here I > > have: > > > > virtlab602:~ $ rpm -q numactl-libs > > numactl-libs-2.0.12-11.el8.x86_64 > > BuildRequires: numactl-devel Thanks John. I meant the .so rather than the building issue. :) Since I feel like parse_cpumask() returned 0 on Pradipta's host, I'm wondering whether it would be a numactl-libs library difference, because I should be using the same rt-tests-1.10-1.el8.x86_64 package too here, but I got different error where I only got the last cpu missing. Hi Peter, Please find the below output information as per requested in comment #7. I think "numactl-devel" rpm is not available in our nfv repo. Kindly suggest if there any alternative repo I can use to install in RHEL8.3. # rpm -qa *numactl* numactl-libs-2.0.12-11.el8.x86_64 numactl-2.0.12-11.el8.x86_64 # rpm -q rt-tests rt-tests-1.10-1.el8.x86_64 # oslat --cpu-list 2-13 --rtprio 1 --duration 60s Total runtime: 60 seconds Thread priority: SCHED_FIFO:1 CPU list: 2-13 CPU for main thread: 0 Workload: no Workload mem: 0 (KiB) Preheat cores: 0 # cyclictest -a 2-13 -t 12 -D 1 # /dev/cpu_dma_latency set to 0us policy: other/other: loadavg: 0.47 0.26 0.15 1/338 135259 T: 0 (135248) P: 0 I:1000 C: 997 Min: 12 Act: 56 Avg: 36 Max: 92 T: 1 (135249) P: 0 I:1500 C: 665 Min: 14 Act: 55 Avg: 52 Max: 94 T: 2 (135250) P: 0 I:2000 C: 498 Min: 14 Act: 14 Avg: 40 Max: 94 T: 3 (135251) P: 0 I:2500 C: 399 Min: 13 Act: 13 Avg: 48 Max: 94 T: 4 (135252) P: 0 I:3000 C: 332 Min: 14 Act: 56 Avg: 53 Max: 94 T: 5 (135253) P: 0 I:3500 C: 285 Min: 13 Act: 55 Avg: 51 Max: 96 T: 6 (135254) P: 0 I:4000 C: 249 Min: 56 Act: 56 Avg: 56 Max: 98 T: 7 (135255) P: 0 I:4500 C: 221 Min: 33 Act: 56 Avg: 53 Max: 92 T: 8 (135256) P: 0 I:5000 C: 199 Min: 11 Act: 56 Avg: 44 Max: 96 T: 9 (135257) P: 0 I:5500 C: 181 Min: 12 Act: 54 Avg: 50 Max: 58 T:10 (135258) P: 0 I:6000 C: 166 Min: 14 Act: 56 Avg: 52 Max: 91 T:11 (135259) P: 0 I:6500 C: 153 Min: 12 Act: 55 Avg: 51 Max: 92 Thanks, Pradipta Hi Peter, Installed numactl-devel successfully. # rpm -qa numactl-devel numactl-devel-2.0.12-11.el8.x86_64 - I can able to compile and run the test with upstream oslat. # git clone https://github.com/xzpeter/oslat # git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master # make cc -O2 -Wall -c -o main.o main.c cc -O2 -Wall -c -o rt-utils.o rt-utils.c cc -O2 -Wall -c -o error.o error.c cc -O2 -Wall -c -o trace.o trace.c cc -o oslat -lpthread -lnuma -lm main.o rt-utils.o error.o trace.o # ./oslat --cpu-list 3-13 --rtprio 1 --runtime 60s Version: v0.1.7 Total runtime: 60 seconds Thread priority: SCHED_FIFO:1 CPU list: 3-13 CPU for main thread: 0 Workload: no Workload mem: 0 (KiB) Preheat cores: 11 Pre-heat for 1 seconds... Test starts... Test completed. Core: 3 4 5 6 7 8 9 10 11 12 13 CPU Freq: 3096 3096 3096 3096 3096 3096 3096 3096 3096 3096 3095 (Mhz) 001 (us): 1982345287 1982749074 1983163800 1981564498 1982468102 1984406148 1983997578 1982653690 1983228888 1981747548 1983323132 002 (us): 20 20 21 21 20 20 19 19 21 21 19 003 (us): 9 8 8 8 9 8 9 7 8 9 10 004 (us): 1 5 4 4 4 5 5 6 4 3 4 005 (us): 3 0 0 0 0 0 0 0 0 0 0 <..trim..> 032 (us): 0 0 0 0 0 0 0 0 0 0 0 (including overflows) Minimum: 1 1 1 1 1 1 1 1 1 1 1 (us) Average: 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 (us) Maximum: 5 4 4 4 4 4 4 4 4 4 4 (us) Max-Min: 4 3 3 3 3 3 3 3 3 3 3 (us) Duration: 59.932 59.932 59.932 59.932 59.932 59.932 59.932 59.932 59.932 59.932 59.951 (sec) - But the downstream oslat(rt-test) don't have any luck here. # oslat --cpu-list 3-13 --rtprio 1 --duration 60s Total runtime: 60 seconds Thread priority: SCHED_FIFO:1 CPU list: 3-13 CPU for main thread: 0 Workload: no Workload mem: 0 (KiB) Preheat cores: 0 Pre-heat for 1 seconds... Test starts... Test completed. Core: CPU Freq: (Mhz) 001 (us): ..trim.. Pradipta, Thanks for the feedback. At least it proved numactl-libs is the same as mine and there's no problem in the .so. Would you please try the upstream rt-tests repo again? # git clone git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git # cd rt-tests # git checkout origin/unstable/devel/latest # make -j20 # ./oslat --cpu-list 3-13 --rtprio 1 --duration 60s Now upstream has a bug that could only dump a subset of the specified cores, however it should not be nothing dumped. Hi Peter,
No luck for upstream rt-tests. Please find the below results
# git clone git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
# git branch
* (HEAD detached at origin/unstable/devel/latest)
master
# make -j20
gcc -D VERSION=1.10 -c src/cyclictest/cyclictest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/cyclictest.o
gcc -D VERSION=1.10 -c src/lib/error.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/error.o
gcc -D VERSION=1.10 -c src/lib/rt-get_cpu.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-get_cpu.o
gcc -D VERSION=1.10 -c src/lib/rt-sched.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-sched.o
gcc -D VERSION=1.10 -c src/lib/rt-utils.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-utils.o
gcc -D VERSION=1.10 -c src/lib/rt-numa.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-numa.o
gcc -D VERSION=1.10 -c src/hackbench/hackbench.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/hackbench.o
gcc -D VERSION=1.10 -c src/pi_tests/pip_stress.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/pip_stress.o
gcc -D VERSION=1.10 -c src/pi_tests/pi_stress.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/pi_stress.o
gcc -D VERSION=1.10 -c src/pmqtest/pmqtest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/pmqtest.o
gcc -D VERSION=1.10 -c src/ptsematest/ptsematest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/ptsematest.o
gcc -D VERSION=1.10 -c src/rt-migrate-test/rt-migrate-test.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-migrate-test.o
gcc -D VERSION=1.10 -c src/signaltest/signaltest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/signaltest.o
gcc -D VERSION=1.10 -c src/sigwaittest/sigwaittest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/sigwaittest.o
gcc -D VERSION=1.10 -c src/svsematest/svsematest.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/svsematest.o
gcc -D VERSION=1.10 -c src/sched_deadline/cyclicdeadline.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/cyclicdeadline.o
gcc -D VERSION=1.10 -c src/sched_deadline/deadline_test.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/deadline_test.o
gcc -D VERSION=1.10 -c src/queuelat/queuelat.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/queuelat.o
gcc -D VERSION=1.10 -c src/ssdd/ssdd.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/ssdd.o
gcc -D VERSION=1.10 -c src/oslat/oslat.c -Wall -Wno-nonnull -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/oslat.o
chmod +x src/hwlatdetect/hwlatdetect.py
chmod +x src/cyclictest/get_cyclictest_snapshot.py
ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect
ln -s src/cyclictest/get_cyclictest_snapshot.py get_cyclictest_snapshot
ar rcs bld/librttest.a bld/error.o bld/rt-get_cpu.o bld/rt-sched.o bld/rt-utils.o
gcc -Wall -Wno-nonnull -O2 -g -o pip_stress bld/pip_stress.o -lrt -lpthread -lrttest -Lbld
ar rcs bld/librttestnuma.a bld/rt-numa.o
gcc -Wall -Wno-nonnull -O2 -g -o signaltest bld/signaltest.o -lrt -lpthread -lrttest -Lbld -lrttestnuma -lnuma
gcc -Wall -Wno-nonnull -O2 -g -o queuelat bld/queuelat.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o pi_stress bld/pi_stress.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o ssdd bld/ssdd.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o hackbench bld/hackbench.o -lrt -lpthread
gcc -Wall -Wno-nonnull -O2 -g -o ptsematest bld/ptsematest.o -lrt -lpthread -lrttest -Lbld -ldl
gcc -Wall -Wno-nonnull -O2 -g -o rt-migrate-test bld/rt-migrate-test.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o svsematest bld/svsematest.o -lrt -lpthread -lrttest -Lbld -ldl
gcc -Wall -Wno-nonnull -O2 -g -o pmqtest bld/pmqtest.o -lrt -lpthread -lrttest -Lbld -ldl
gcc -Wall -Wno-nonnull -O2 -g -o cyclicdeadline bld/cyclicdeadline.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o sigwaittest bld/sigwaittest.o -lrt -lpthread -lrttest -Lbld -ldl
gcc -Wall -Wno-nonnull -O2 -g -o oslat bld/oslat.o -lrt -lpthread -lrttest -Lbld -lrttestnuma -lnuma
gcc -Wall -Wno-nonnull -O2 -g -o deadline_test bld/deadline_test.o -lrt -lpthread -lrttest -Lbld
gcc -Wall -Wno-nonnull -O2 -g -o cyclictest bld/cyclictest.o -lrt -lpthread -lrttest -Lbld -lrttestnuma -lnuma
# ./oslat --cpu-list 3-13 --rtprio 1 --duration 60s
Total runtime: 60 seconds
Thread priority: SCHED_FIFO:1
CPU list: 3-13
CPU for main thread: 0
Workload: no
Workload mem: 0 (KiB)
Preheat cores: 0
Pre-heat for 1 seconds...
Test starts...
Test completed.
Core:
CPU Freq: (Mhz)
001 (us):
Created attachment 1756401 [details]
fix printing of version
Created attachment 1756402 [details]
Fix loop
There're only a few commit difference between the rt-tests upstream and the old oslat repo of mine. 85b0763 oslat: Use parse_cpumask() from rt-numa.h e7f2510 oslat: Use string parser utilies e3d9389 rt-tests: oslat: Close trace fds e411219 oslat: Streamline usage output and man page 165b597 rt-tests: oslat: Allow build for not supported archs 8dad377 rt-tests: oslat: Proper reformat of code c86dec5 rt-tests: oslat: Init commit Pradipta, since you've went that far - could you try to bisect above commits? Sorry I can't do it for you since I cannot reproduce your result locally. I can see another bug, but not as yours. Or feel free to share me with your host privately. I can take a look. Created attachment 1756673 [details]
allocate memory for cpu_set
@Pradipta Kumar Sahoo I pushed the 3 oslat fixed in git in the branch unstable/devel/latest Could you please test that version on your machine, since Peter and me could not reproduce the problem? (That doesn't meant that there isn't a problem) Thanks One extra patch posted upstream: https://lore.kernel.org/linux-rt-users/20210218192729.116427-1-peterx@redhat.com Created attachment 1758223 [details]
all scheduling on all possible cores
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (rt-tests bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:1854 |
Description of problem: During oslat test in RHEL8.3 rt-kernel(VM/Guest), there no cores and samples are recorded. Version-Release number of selected component (if applicable): # cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) # cat /etc/rhosp-release Red Hat OpenStack Platform release 16.2.0 Beta (Train) # uname -r 4.18.0-240.14.1.rt7.68.el8_3.x86_64 @testpmd ~]# rpm -qa | egrep "kernel-rt|micro|tuned|rt-test" kernel-rt-modules-4.18.0-240.14.1.rt7.68.el8_3.x86_64 kernel-rt-modules-extra-4.18.0-240.14.1.rt7.68.el8_3.x86_64 tuned-profiles-realtime-2.14.0-3.el8.noarch kernel-rt-core-4.18.0-240.rt7.54.el8.x86_64 kernel-rt-core-4.18.0-240.14.1.rt7.68.el8_3.x86_64 kernel-rt-modules-4.18.0-240.rt7.54.el8.x86_64 tuned-profiles-nfv-host-2.14.0-3.el8.noarch kernel-rt-modules-internal-4.18.0-240.14.1.rt7.68.el8_3.x86_64 kernel-rt-4.18.0-240.14.1.rt7.68.el8_3.x86_64 tuned-2.14.0-3.el8.noarch microcode_ctl-20200609-2.el8.x86_64 rt-tests-1.10-1.el8.x86_64 tuned-profiles-nfv-guest-2.14.0-3.el8.noarch kernel-rt-selftests-internal-4.18.0-240.14.1.rt7.68.el8_3.x86_64 kernel-rt-devel-4.18.0-240.14.1.rt7.68.el8_3.x86_64 tuned-profiles-nfv-host-bin-0-0.1.20180302git1edfa966.el8.x86_64 How reproducible: 100% reproduced in nfv perf lab Steps to Reproduce: Dumpxml data for CPU pinning reference: <memory unit='KiB'>20971520</memory> <currentMemory unit='KiB'>20971520</currentMemory> <memoryBacking> <hugepages> <page size='1048576' unit='KiB' nodeset='0'/> </hugepages> <nosharepages/> <locked/> </memoryBacking> <vcpu placement='static'>14</vcpu> <cputune> <shares>14336</shares> <vcpupin vcpu='0' cpuset='26'/> <vcpupin vcpu='1' cpuset='32'/> <vcpupin vcpu='2' cpuset='22'/> <vcpupin vcpu='3' cpuset='28'/> <vcpupin vcpu='4' cpuset='34'/> <vcpupin vcpu='5' cpuset='8'/> <vcpupin vcpu='6' cpuset='30'/> <vcpupin vcpu='7' cpuset='10'/> <vcpupin vcpu='8' cpuset='16'/> <vcpupin vcpu='9' cpuset='6'/> <vcpupin vcpu='10' cpuset='12'/> <vcpupin vcpu='11' cpuset='18'/> <vcpupin vcpu='12' cpuset='24'/> <vcpupin vcpu='13' cpuset='14'/> <emulatorpin cpuset='20'/> <vcpusched vcpus='2' scheduler='fifo' priority='1'/> <vcpusched vcpus='3' scheduler='fifo' priority='1'/> <vcpusched vcpus='4' scheduler='fifo' priority='1'/> <vcpusched vcpus='5' scheduler='fifo' priority='1'/> <vcpusched vcpus='6' scheduler='fifo' priority='1'/> <vcpusched vcpus='7' scheduler='fifo' priority='1'/> <vcpusched vcpus='8' scheduler='fifo' priority='1'/> <vcpusched vcpus='9' scheduler='fifo' priority='1'/> <vcpusched vcpus='10' scheduler='fifo' priority='1'/> <vcpusched vcpus='11' scheduler='fifo' priority='1'/> <vcpusched vcpus='12' scheduler='fifo' priority='1'/> <vcpusched vcpus='13' scheduler='fifo' priority='1'/> </cputune> 1. CPU details of rt-kvm host: # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 14 On-line CPU(s) list: 0-13 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 14 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz Stepping: 7 CPU MHz: 3092.734 BogoMIPS: 6185.46 Virtualization: VT-x Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 4096K L3 cache: 16384K NUMA node0 CPU(s): 0-13 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat umip pku ospke avx512_vnni md_clear arch_capabilities 2. Tuned profiles configuration: # grep ^[^#] /etc/tuned/realtime-virtual-guest-variables.conf isolate_managed_irq=Y isolated_cores=3-13 # tuned-adm active Current active profile: realtime-virtual-guest 3. Kernel boot Parameter # cat /proc/cmdline BOOT_IMAGE=(hd0,gpt3)/boot/vmlinuz-4.18.0-240.14.1.rt7.68.el8_3.x86_64 root=UUID=b88b88c0-1fc2-4683-958e-b7e756c7fe39 ro console=ttyS0 console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=auto skew_tick=1 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=3-13 rcu_nocbs=3-13 default_hugepagesz=1GB hugepagesz=1G hugepages=10 iommu=pt intel_iommu=on isolcpus=3-13 mitigations=off ipv6.disable=1 skew_tick=1 isolcpus=managed_irq,domain,3-13 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=3-13 rcu_nocbs=3-13 4. Rebooted the host after above configuration changes. 5. Ran the oslat test isolated cores with rtprio value 1. # oslat --cpu-list 2-13 --rtprio 1 --duration 60s Total runtime: 60 seconds Thread priority: SCHED_FIFO:1 CPU list: 2-13 CPU for main thread: 0 Workload: no Workload mem: 0 (KiB) Preheat cores: 0 Pre-heat for 1 seconds... Test starts... Test completed. Core: CPU Freq: (Mhz) 001 (us): 002 (us): 003 (us): 004 (us): 005 (us): 006 (us): 007 (us): 008 (us): 009 (us): 010 (us): 011 (us): 012 (us): 013 (us): 014 (us): 015 (us): 016 (us): 017 (us): 018 (us): 019 (us): 020 (us): 021 (us): 022 (us): 023 (us): 024 (us): 025 (us): 026 (us): 027 (us): 028 (us): 029 (us): 030 (us): 031 (us): 032 (us): (including overflows) Minimum: (us) Average: (us) Maximum: (us) Max-Min: (us) Duration: (sec) 6. Error trace /var/log/tuned/tuned.log 2021-02-08 11:29:34,582 INFO tuned.profiles.loader: loading profile: realtime-virtual-guest ... 2021-02-08 11:40:30,774 INFO tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime/script.sh' with arguments '['verify']' 2021-02-08 11:40:30,897 INFO tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime-virtual-guest/script.sh' with arguments '['verify']' 2021-02-08 11:40:30,909 INFO tuned.plugins.plugin_script: verify: passed: '['/usr/lib/tuned/realtime/script.sh', '/usr/lib/tuned/realtime-virtual-guest/script.sh']' 2021-02-08 11:40:30,911 INFO tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 1' = '[1]' 2021-02-08 11:40:30,911 INFO tuned.plugins.plugin_scheduler: verify: passed: 'SMP affinity of IRQ 4' = '[0]' ... 2021-02-08 11:40:30,911 ERROR tuned.plugins.plugin_scheduler: verify: failed: 'SMP affinity of IRQ 25' = '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]', expected '[0, 1, 2]' ... 2021-02-09 04:36:19,002 ERROR tuned.plugins.plugin_sysctl: Failed to set sysctl parameter 'kernel.nmi_watchdog' to '0': [Errno 524] Unknown error 524 ... 2021-02-09 05:35:14,548 INFO tuned.profiles.loader: loading profile: realtime-virtual-guest 2021-02-09 05:35:14,564 INFO tuned.daemon.controller: starting controller 2021-02-09 05:35:14,564 INFO tuned.daemon.daemon: starting tuning 2021-02-09 05:35:14,585 INFO tuned.plugins.base: instance cpu: assigning devices cpu5, cpu9, cpu6, cpu8, cpu10, cpu7, cpu3, cpu2, cpu11, cpu1, cpu13, cpu4, cpu12, cpu0 2021-02-09 05:35:14,588 INFO tuned.plugins.plugin_cpu: We are running on an x86 GenuineIntel platform 2021-02-09 05:35:14,601 WARNING tuned.plugins.plugin_cpu: your CPU doesn't support MSR_IA32_ENERGY_PERF_BIAS, ignoring CPU energy performance bias 2021-02-09 05:35:14,617 INFO tuned.plugins.plugin_cpu: setting new cpu latency 3 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'net.core.busy_read', the parameter does not exist 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: sysctl option net.core.busy_read will not be set, failed to read the original value. 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'net.core.busy_poll', the parameter does not exist 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: sysctl option net.core.busy_poll will not be set, failed to read the original value. 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'kernel.numa_balancing', the parameter does not exist 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: sysctl option kernel.numa_balancing will not be set, failed to read the original value. 2021-02-09 05:35:14,618 ERROR tuned.plugins.plugin_sysctl: Failed to set sysctl parameter 'kernel.nmi_watchdog' to '0': [Errno 524] Unknown error 524 2021-02-09 05:35:14,618 INFO tuned.plugins.plugin_sysctl: reapplying system sysctl 7. Tried the upstream version of oslat. # git clone https://github.com/xzpeter/oslat Cloning into 'oslat'... remote: Enumerating objects: 142, done. remote: Counting objects: 100% (142/142), done. remote: Compressing objects: 100% (84/84), done. remote: Total 142 (delta 88), reused 110 (delta 57), pack-reused 0 Receiving objects: 100% (142/142), 35.17 KiB | 2.51 MiB/s, done. Resolving deltas: 100% (88/88), done. oslat]# ls changelog Dockerfile error.c error.h main.c Makefile README.md rt-utils.c rt-utils.h trace.c # make cc -O2 -Wall -c -o main.o main.c In file included from main.c:26: rt-utils.h:21:10: fatal error: numa.h: No such file or directory #include <numa.h> ^~~~~~~~ compilation terminated. make: *** [<builtin>: main.o] Error 1 Actual results: No cores and samples reported in oslat test. We tried the test with following tuned profiles: realtime-virtual-host and realtime Expected results: Should get the recorded samples with cores Additional info: Note: on this system (Dell R740xd with Intel Xeon Gold 6254), the below tunings are in place in the BIOS/UEFI interface. Logical Processor: Disabled CPU Interconnect Speed: Maximum Data Rate Dell Controlled Turbo: Disabled Microcode: 0x500002C Turbo Boost: Disabled C1E: Disabled C States: Disabled Memory Refresh Rate: 1x Uncore Frequency: Maximum Energy Efficient Policy: Performance Monitor/Mwait: Enabled CPU Interconnect Bus Link Power Management: Disabled