Skip to content

Instantly share code, notes, and snippets.

View gao-feng's full-sized avatar
🚶‍♂️
I may be slow to respond.

Gao feng gao-feng

🚶‍♂️
I may be slow to respond.
View GitHub Profile
@gao-feng
gao-feng / density
Last active November 1, 2017 05:40
packet aarch64 Centriq
packet Tyep2 machine:
Intel Xeon E5-2650 v4 @2.2GHz (48 processor in /proc/cpuinf)
256GB (251GB in /proc/meminfo)
6 x 480GB Enterprise SSD
1 x 150GB Enterprise SSD
2 x 10Gbps Bonded Ports
density: run 1968 busybox containers
pakcet Type2A5 machine:
48-core @ 2.5Ghz (40 processor in /proc/cpuinfo)
@gao-feng
gao-feng / performance
Last active September 2, 2017 14:46
xenpv vs qemu on gce
vm memory:512M,cpu:2
read write 4k-seqread 4k-randread 4k-seqwrite 4k-randwrite memory cpu(per-request) boot time
xenpv(9p) 19902KB/s 38357KB/s 35793KB/s 5615KB/s 31051KB/s 11737KB/s 203MB/s 2.13ms 1181ms
qemu(9p) 7211KB/s 7501KB/s 5649KB/s 1726KB/s 5220KB/s 4639KB/s 68MB/s 12.33ms 6095ms
xenpv(block) 45285KB/s 36627KB/s 11010KB/s 6028KB/s 6027KB/s 6027KB/s
qemu(block) 43737KB/s 34741KB/s 2929KB/s 2842KB/s 2634KB/s 2262KB/s
host 42613KB/s 36609KB/s 11044KB/s 6028KB/s 6028KB/s 6027KB/s 211MB/s 2.10ms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1, io
env
dpdk: dpdk-stable-17.02.1
ovs: 6b1d46253362c0bad844cedf93e22e7bf94d55dc/2.7.0?
kernel: 4.11.5-200.fc25.x86_64
1, download and install dpd
$ wget http://dpdk.org/browse/dpdk-stable/snapshot/dpdk-stable-17.02.1.zip
$ unzip dpdk-stable-17.02.1.zip
$ cd dpdk-stable-17.02.1
$ export DPDK_DIR=`pwd`
@gao-feng
gao-feng / gist:cffd7197cb7ad0622f05648bb95c8a21
Created September 30, 2016 09:03
aarch64 with virtio-pci boot log
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.11 (root@ubuntu) (gcc version 4.9.2 (Ubuntu/Linaro 4.9.2-10ubuntu13) ) #24 SMP Thu Sep 29 13:56:19 CST 2016
Boot CPU: AArch64 Processor [411fd070]
psci: probing for conduit method from DT.
psci: PSCIv0.2 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: Trusted OS migration not required
@gao-feng
gao-feng / gist:e1d0d2379799f8655c60
Created August 18, 2015 08:29
ceph-deploy --overwrite-conf mon create-initial
[gaofeng@localhost ~]$ ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/gaofeng/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.27): /usr/bin/ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : True
[ceph_deploy.cli][INFO ] subcommand : create-initial
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x198cab8>
[gaofeng@thinkdonkey hyperdiff]$ ./hyperdiff --layer /home/gaofeng/git/hyper --parent /home/gaofeng/git/hyper-mac/ --tar new.tar
read 512 byte
write 512 byte
read 512 byte
write 512 byte
read 512 byte
write 512 byte
read 23 byte
write 23 byte
read 489 byte
[root@thinkdonkey dvm-cli]# ./hyperd -v=3
[HYPER INFO 0624 10:51:51 23766 vm.go] VBox Driver Loaded.
[HYPER INFO 0624 10:51:51 23766 hyperd.go] [:50] The config file is
[HYPER INFO 0624 10:51:51 23766 daemon.go] [:205] The config: kernel=/home/gaofeng/git/dvminit/build/kernel, initrd=/home/gaofeng/git/dvminit/build/hyper-initrd.img
[HYPER INFO 0624 10:51:51 23766 daemon.go] [:207] The config: vbox image=/home/gaofeng/git/dvminit/build/hyper-vbox-bootimage.vmdk
[HYPER INFO 0624 10:51:51 23766 daemon.go] [:210] The config: bridge=, ip=192.168.22.0/24
[HYPER INFO 0624 10:51:51 23766 daemon.go] [:213] The config: bios=, cbfs=
[HYPER INFO 0624 10:51:51 23766 network.go] [:251] bridge exist
[HYPER INFO 0624 10:51:51 23766 iptables.go] [:140] /sbin/iptables, [--wait -t nat -C POSTROUTING -s 192.168.22.1/24 ! -o hyper0 -j MASQUERADE]
[HYPER INFO 0624 10:51:51 23766 iptables.go] [:140] /sbin/iptables, [--wait -N HYPER]