Skip to content

Instantly share code, notes, and snippets.

View jianzzha's full-sized avatar

Jianzhu Zhang jianzzha

  • Red Hat
  • Raleigh, North Carolina
  • 19:28 (UTC -04:00)
View GitHub Profile
@jianzzha
jianzzha / gist:30fb7b128a43a772f199147fe44213b0
Created July 12, 2019 13:23
non-rt kernel, no profile, BIOS turbo enabled
1 CPU stressed, 3610 MHz
[root@compute-0 ~]# taskset -c 1 stress-ng --cpu 1 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 75.19| 0.00| 0.00|| 0.79| 99.21| 1564|| 0.00| 0.00| 4.24| 95.04
0| 1| 4| 0.00| 99.65| 0.00| 0.00|| 0.01| 99.99| 995|| 0.00| 0.00| 0.00| 99.99
0| 2| 8| 0.00| 99.66| 0.00| 0.00|| 0.01| 99.99| 1173|| 0.00| 0.00| 0.00| 99.99
@jianzzha
jianzzha / gist:ffdecd2228e68aa79c3c67315fea08f1
Created July 12, 2019 12:57
non-rt kernel, turbo enabled in bios, cpu-partitioning profile
[root@compute-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22 tuned.non_isolcpus=00aaaaab intel_pstate=disable nosoftlockup
one cpu under stress:
[root@compute-0 ~]# taskset -c 1 stress-ng --cpu 1 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 1.27| 98.73| 3291|| 0.00| 98.77| 0.00| 0.00
@jianzzha
jianzzha / gist:d87619de1d85d38de516dc9d4ce78e17
Created July 12, 2019 04:38
non-RT kernel, no profile, pstate enabled, turbo mode enabled in BIOS
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 9.54| 90.46| 3129|| 0.00| 0.00| 10.19| 80.47
0| 1| 4| 0.00| 99.65| 0.00| 0.00|| 0.01| 99.99| 1095|| 0.00| 0.00| 0.02| 99.97
0| 2| 8| 0.00| 99.66| 0.00| 0.00|| 0.01| 99.99| 1099|| 0.00| 0.00| 0.02| 99.97
@jianzzha
jianzzha / gist:19e4c0ac6371f62982304ac6c31b1ce0
Created July 12, 2019 04:25
non-RT kernel, no profile, pstate enabled, turbo mode disabled in BIOS
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 44.13| 55.87| 2555|| 0.00| 0.02| 2.75| 53.23
0| 1| 4| 0.00| 99.79| 0.00| 0.00|| 0.00|100.00| 1681|| 0.00| 0.00| 0.00| 99.99
0| 2| 8| 0.00| 99.79| 0.00| 0.00|| 0.00|100.00| 1610|| 0.00| 0.00| 0.00| 99.99
@jianzzha
jianzzha / gist:a20492e8a14495de6b5cc5ec31d42d49
Created July 12, 2019 04:15
non-RT kernel, cpu-partitioning profile, pstate disabled, turbo mode disabled in BIOS
[root@compute-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22 tuned.non_isolcpus=00aaaaab intel_pstate=disable nosoftlockup
[root@compute-0 ~]# taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 69.69| 30.31| 2593|| 0.00| 30.30| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.00|100.00| 2601|| 0.00|100.00| 0.00| 0.00
@jianzzha
jianzzha / gist:9410325063a1786f07334dffe5f69fd0
Created July 12, 2019 04:05
non-RT kernel, cpu-partitioning profile, pstate disabled, turbo mode enabled in BIOS
[root@compute-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22 tuned.non_isolcpus=00aaaaab intel_pstate=disable nosoftlockup
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 56.52| 43.48| 3291|| 0.00| 43.49| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.00|100.00| 3293|| 0.00|100.00| 0.00| 0.00
@jianzzha
jianzzha / gist:a137a1103bfba2c03132657b2ce04ac5
Created July 12, 2019 04:05
non-RT kernel, cpu-partitioning profile, pstate disabled, turbo mode enabled in BIOS
[root@compute-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22 tuned.non_isolcpus=00aaaaab intel_pstate=disable nosoftlockup
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 56.52| 43.48| 3291|| 0.00| 43.49| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.00|100.00| 3293|| 0.00|100.00| 0.00| 0.00
@jianzzha
jianzzha / gist:3a39a07e1a38737a94d72730919ba686
Created July 12, 2019 04:05
non-RT kernel, cpu-partitioning profile, pstate disabled, turbo mode enabled in BIOS
[root@compute-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.6.3.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32 iommu=pt intel_iommu=on isolcpus=2,4,6,8,10,12,14,16,18,20,22 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22 tuned.non_isolcpus=00aaaaab intel_pstate=disable nosoftlockup
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@compute-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 56.52| 43.48| 3291|| 0.00| 43.49| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.00|100.00| 3293|| 0.00|100.00| 0.00| 0.00
@jianzzha
jianzzha / gist:a38a09795c898edebae9440fe740b627
Created July 12, 2019 02:30
RT-kernel, no tuned, intel_pstate enabled, turbo-boost enabled in BIOS
[root@overcloud-computerealtime-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.14.4.rt56.821.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@overcloud-computerealtime-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
@jianzzha
jianzzha / gist:6f8e70191d13182337c40cba2379b1dd
Last active July 12, 2019 02:31
RT-kernel, no tuned, intel_pstate enabled, turbo-boost disabled in BIOS
[root@overcloud-computerealtime-0 ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.10.0-862.14.4.rt56.821.el7.x86_64 root=UUID=7aa9d695-b9c7-416f-baf7-7e8f89c1a3bc ro console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet default_hugepagesz=1GB hugepagesz=1G hugepages=32
taskset -c 1,3,5,7,9,11,13,15,17,19,21,23 stress-ng --cpu 12 --cpu-load 100 --cpu-method loop --timeout 24h
[root@overcloud-computerealtime-0 ~]# cpupower monitor
|Nehalem || Mperf || Idle_Stats
PKG |CORE|CPU | C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1-S | C1E- | C6-S
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 2.59| 97.41| 1013|| 0.00| 0.00| 1.93| 95.72
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 2.47| 97.53| 1012|| 0.00| 0.00| 0.58| 97.15