Skip to content

Instantly share code, notes, and snippets.

View jianzzha's full-sized avatar

Jianzhu Zhang jianzzha

  • Red Hat
  • Raleigh, North Carolina
  • 19:22 (UTC -04:00)
View GitHub Profile
@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: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: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: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: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: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: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:93e8edffcf08c362fba11913fb362418
Created July 12, 2019 13:42
non-RT kernel, no profile, BIOS turbo disabled
1 CPU stressed, @2600 mhz
[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|| 11.36| 88.64| 2338|| 0.00| 0.00| 3.29| 85.56
0| 1| 4| 0.00| 99.60| 0.00| 0.00|| 0.01| 99.99| 1001|| 0.00| 0.00| 0.04| 99.95
0| 2| 8| 0.00| 99.61| 0.00| 0.00|| 0.01| 99.99| 1004|| 0.00| 0.00| 0.04| 99.95
0| 3| 12| 0.00| 99.62| 0.00| 0.00|| 0.01| 99.99| 1000|| 0.00| 0.00| 0.04| 99.95
0| 4| 10| 0.00| 99.61| 0.00| 0.00|| 0.01| 99.99| 998|| 0.00| 0.00| 0.04| 99.95
0| 5| 6| 0.00| 99.60| 0.00| 0.00|| 0.01| 99.99| 1003|| 0.00| 0.00| 0.04| 99.95
@jianzzha
jianzzha / gist:0feb8e9801ac463c746347a86dddd1ee
Created July 12, 2019 14:30
non-RT kernel, no profile, no pstate, BIOS turbo enabled
1 CPU stress
[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| 58.78| 0.00| 0.00|| 1.59| 98.41| 2393|| 0.00| 0.09| 0.94| 97.48
0| 1| 4| 0.00| 99.88| 0.00| 0.00|| 0.01| 99.99| 1427|| 0.00| 0.00| 0.00|100.00
0| 2| 8| 0.00| 99.89| 0.00| 0.00|| 0.01| 99.99| 1425|| 0.00| 0.00| 0.00|100.00
0| 3| 12| 0.00| 99.91| 0.00| 0.00|| 0.01| 99.99| 2755|| 0.00| 0.00| 0.00| 99.99
0| 4| 10| 0.00| 99.89| 0.00| 0.00|| 0.01| 99.99| 1597|| 0.00| 0.00| 0.00| 99.99
0| 5| 6| 0.00| 99.89| 0.00| 0.00|| 0.01| 99.99| 1605|| 0.00| 0.00| 0.00|100.00
#### on host
ovs-vsctl set open . external-id:ovn-remote="unix:/usr/local/var/run/ovn/ovnsb_db.sock"
ovs-vsctl set open . external-id:ovn-encap-type=geneve
ovs-vsctl set open . external-id:ovn-encap-ip=127.0.0.1
ovs-vsctl set open . external-id:system-id=test
podman run --rm -it --privileged --net=host -v /var/run/openvswitch:/usr/local/var/run/openvswitch ovn-image sh
#### inide container