t/one-core-peak: Reporting BLK_CGROUP
authorErwan Velu <erwanaliasr1@gmail.com>
Wed, 6 Oct 2021 20:19:30 +0000 (22:19 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Wed, 6 Oct 2021 20:19:30 +0000 (22:19 +0200)
When BLK_CGROUP is enabled, it induces some rdtsc calls which reduce the
overall performance.

Let's report if this option is enabled.

The tool was reporting BLK_CGROUP_IOCOST which wasn't the right one.

Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
t/one-core-peak.sh

index d0649d2e764c6dd166d72276fe54b74c04e7fa3e..54b40668075de64f7e7a1dc0f28d6269376d7038 100755 (executable)
@@ -238,7 +238,7 @@ show_system() {
   info "system" "CPU: ${CPU_MODEL}"
   info "system" "MEMORY: ${MEMORY_SPEED}"
   info "system" "KERNEL: ${KERNEL}"
-  for config_item in BLK_CGROUP_IOCOST HZ; do
+  for config_item in BLK_CGROUP HZ; do
     info "system" "KERNEL: $(show_kernel_config_item ${config_item})"
   done
   tsc=$(journalctl -k | grep 'tsc: Refined TSC clocksource calibration:' | awk '{print $11}')