Skip to content

Instantly share code, notes, and snippets.

View jianzzha's full-sized avatar

Jianzhu Zhang jianzzha

  • Red Hat
  • Raleigh, North Carolina
  • 15:44 (UTC -04:00)
View GitHub Profile
@jianzzha
jianzzha / 1024B-1thread-intra-node
Last active June 20, 2020 19:15
ovn-intra-node-w/o-ACL
Starting 1 threads running profile:tcp-stream-1024b-1i ... 0.00 seconds
Txn1 0 / 1.00(s) = 0 1op/s
Txn2 5.92GB / 60.26(s) = 843.80Mb/s 103003op/s
Txn3 0 / 0.00(s) = 0 0op/s
-------------------------------------------------------------------------------
Total 5.92GB / 62.36(s) = 815.35Mb/s 99529op/s
Netstat statistics for this run
-------------------------------------------------------------------------------
Nic opkts/s ipkts/s obits/s ibits/s
apiVersion: v1
kind: Pod
metadata:
name: uperf-master
spec:
restartPolicy: Never
#hostNetwork: true
containers:
- name: uperf-master
image: cscojianzhan/container-perf-tools
@jianzzha
jianzzha / calico, uperf master on host network
Created June 15, 2020 10:45
lower cpu usage when veth is used
Starting 1 threads running profile:tcp-rr-1024b-1i ... 0.00 seconds
Txn1 0 / 1.00(s) = 0 1op/s
Txn2 38.62GB / 60.26(s) = 5.51Gb/s 672063op/s
Txn3 0 / 0.00(s) = 0 0op/s
-------------------------------------------------------------------------------
Total 38.62GB / 62.36(s) = 5.32Gb/s 649403op/s
Netstat statistics for this run
-------------------------------------------------------------------------------
Nic opkts/s ipkts/s obits/s ibits/s
Starting 8 threads running profile:tcp-rr-1024b-8i ... 0.00 seconds
Txn1 0 / 1.00(s) = 0 8op/s
Txn2 11.58GB / 60.26(s) = 1.65Gb/s 201438op/s
Txn3 0 / 0.00(s) = 0 0op/s
-------------------------------------------------------------------------------
Total 11.58GB / 62.36(s) = 1.59Gb/s 194646op/s
Netstat statistics for this run
-------------------------------------------------------------------------------
Nic opkts/s ipkts/s obits/s ibits/s
@jianzzha
jianzzha / alias-lab-single-baremetal-node
Last active September 3, 2020 05:22
OCS 4.3 installatio notes
# after add storage to ocp cluster, wipe storage disk on this node
sgdisk --zap-all /dev/nvme0n1
# (echo n; echo p ; echo 1 ; echo ; echo +1200G; echo p ; echo w) | sudo fdisk /dev/nvme0n1
# check ntp status
timedatectl
# if ntp not synchronized, update /etc/chrony.conf, the following entry works for me:
server gateway iburst
server clock01.util.phx2.redhat.com iburst
server clock02.util.phx2.redhat.com iburst
@jianzzha
jianzzha / after-centos77-install
Last active April 22, 2020 21:21
super-micro-install
###### add lv for docker vol
fdisk /dev/sdb
# n, p
fdisk /dev/sdc
# n, p
pvcreate /dev/sdb1
pvcreate /dev/sdc1
vgcreate vg_hard_drive /dev/sdb1 /dev/sdc1
lvcreate -n lv_docker --size 1000G vg_hard_drive
mkfs.xfs -n ftype=1 /dev/vg_hard_drive/lv_docker
@jianzzha
jianzzha / with-dpdk
Last active April 14, 2020 13:43
ovn-perf20
###### on host
setenforce permissive
export PATH=$PATH:/usr/local/share/openvswitch/scripts
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
ovs-ctl --no-ovs-vswitchd --system-id=random start
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="1024,1024"
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=0x10000
ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask=0xfe0000
ovs-ctl --no-ovsdb-server --db-sock="$DB_SOCK" start
#### 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
@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
@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