Skip to content

Instantly share code, notes, and snippets.

View jianzzha's full-sized avatar

Jianzhu Zhang jianzzha

  • Red Hat
  • Raleigh, North Carolina
  • 15:39 (UTC -04:00)
View GitHub Profile
@jianzzha
jianzzha / controller-ml2_conf.ini
Created May 7, 2018 19:17
controller-ml2_conf.ini
[root@controller-0 heat-admin]# cat /etc/neutron/plugins/ml2/ml2_conf.ini
[DEFAULT]
#
# From oslo.log
#
# If set to true, the logging level will be set to DEBUG instead of the default
# INFO level. (boolean value)
# Note: This option can be changed without restarting.
@jianzzha
jianzzha / controller-ml2_conf_odl.ini
Created May 7, 2018 19:20
ml2_conf_odl.ini on control
[root@controller-0 heat-admin]# cat /etc/neutron/plugins/ml2/ml2_conf_odl.ini
# Configuration for the OpenDaylight MechanismDriver
[ml2_odl]
# (StrOpt) OpenDaylight REST URL
# If this is not set then no HTTP requests will be made.
#
# url =
# Example: url = http://192.168.56.1:8080/controller/nb/v2/neutron
@jianzzha
jianzzha / flat-network-compute-ovsdb-dump
Created May 7, 2018 20:04
compute-ovsdb-dump with flat provider network
[root@compute-0 heat-admin]# ovsdb-client dump
AutoAttach table
_uuid mappings system_description system_name
----- -------- ------------------ -----------
Bridge table
_uuid auto_attach controller datapath_id datapath_type datapath_version external_ids fail_mode flood_vlans flow_tables ipfix mcast_snooping_enable mirrors name netflow other_config ports protocols rstp_enable rstp_status sflow status stp_enable
-------
@jianzzha
jianzzha / ovs-cheat.md
Created June 30, 2018 02:07 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
ovs-vsctl get interface vhub656c3cb-23 name

ovs-vsctl set port vlan1729 tag=1729
@jianzzha
jianzzha / osp13-gating-nfv-DP-perf
Created August 3, 2018 11:42
osp13 release gating nfv data plane test results
120/300 search/validation, 1 L2 flow, 0.002% loss ratio, 10.22mpps, pass. http://pbench.perf.lab.eng.bos.redhat.com/incoming/perf104/trafficgen_osp13-ovs-dpdk-spectre-flat_tg%5btrex%5dr%5bnone%5dfs%5b64%5dnf%5b1%5dfm%5bsi,di,sm,dm%5dtd%5bbi%5dml%5b0.002%5dtt%5bbs%5d_2018-08-03T02:00:48/
120/300 search/validation, 1 L2 flow, 0 loss, 9.44mpps, pass. htt://pbench.perf.lab.eng.bos.redhat.com/incoming/perf104/trafficgen_osp13-ovs-dpdk-spectre-flat_tg%5btrex%5dr%5bnone%5dfs%5b64%5dnf%5b1%5dfm%5bsi,di,sm,dm%5dtd%5bbi%5dml%5b0%5dtt%5bbs%5d_2018-08-03T02:24:57/
@jianzzha
jianzzha / gist:b0cb28e522c837dffb8339179f352ee4
Last active July 11, 2019 18:41
RT-kernel, RT-profile, intel_pstate disabled, BIOS turbo mode enabled
[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 skew_tick=1 isolcpus=4,6,8,10,12,14,16,18,20,22 intel_pstate=disable nosoftlockup nohz=on nohz_full=4,6,8,10,12,14,16,18,20,22 rcu_nocbs=4,6,8,10,12,14,16,18,20,22
taskset -c 1,3-23 stress-ng --cpu 22 --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|| 0.64| 99.36| 3290|| 0.00| 99.39| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.06| 99.94| 3291|| 0.00| 99.94| 0.00| 0.00
@jianzzha
jianzzha / gist:c4e141058ad1108440d19244f7cf3a4c
Last active July 11, 2019 18:42
RT-kernel, RT profile, intel_pstate=disabled, BIOS turbo mode disabled
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 skew_tick=1 isolcpus=4,6,8,10,12,14,16,18,20,22 intel_pstate=disable nosoftlockup nohz=on nohz_full=4,6,8,10,12,14,16,18,20,22 rcu_nocbs=4,6,8,10,12,14,16,18,20,22
taskset -c 1,3-23 stress-ng --cpu 22 --cpu-load 100 --cpu-method loop --timeout 24h
[root@overcloud-computerealtime-0 ~]# !cpu
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|| 0.96| 99.04| 2592|| 0.00| 99.08| 0.00| 0.00
0| 1| 4| 0.00| 0.00| 0.00| 0.00|| 0.00|100.00| 2579|| 0.00|100.00| 0.00| 0.00
@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
@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: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