Skip to content

Instantly share code, notes, and snippets.

@rickytato
Last active April 13, 2021 15:37
Show Gist options
  • Save rickytato/2932818304ab0774bf503f24775c8abb to your computer and use it in GitHub Desktop.
Save rickytato/2932818304ab0774bf503f24775c8abb to your computer and use it in GitHub Desktop.
stress-ng
host-intel:~# stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --switch 4 --timeout 5m --metrics-brief
stress-ng: info: [17795] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork, 4 switch
stress-ng: info: [17800] stress-ng-switch: 1114.57 nanoseconds per context switch (based on parent run time)
stress-ng: info: [17807] stress-ng-switch: 890.93 nanoseconds per context switch (based on parent run time)
stress-ng: info: [17813] stress-ng-switch: 946.57 nanoseconds per context switch (based on parent run time)
stress-ng: info: [17820] stress-ng-switch: 949.06 nanoseconds per context switch (based on parent run time)
stress-ng: info: [17795] successful run completed in 300.74s (5 mins, 0.74 secs)
stress-ng: info: [17795] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [17795] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [17795] cpu 281111 300.01 1194.81 0.03 937.00 235.27
stress-ng: info: [17795] vm 6383768 300.01 592.54 5.20 21278.73 10679.84
stress-ng: info: [17795] hdd 6141856 300.74 1.13 159.96 20422.44 38126.86
stress-ng: info: [17795] fork 4408299 300.00 347.66 386.18 14694.33 6007.17
stress-ng: info: [17795] switch 1238924183 300.00 122.98 1385.99 4129745.51 821039.64
host-amd:~# stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --switch 4 --timeout 5m --metrics-brief
stress-ng: info: [9611] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork, 4 switch
stress-ng: info: [9616] stress-ng-switch: 827.21 nanoseconds per context switch (based on parent run time)
stress-ng: info: [9623] stress-ng-switch: 842.28 nanoseconds per context switch (based on parent run time)
stress-ng: info: [9627] stress-ng-switch: 1286.93 nanoseconds per context switch (based on parent run time)
stress-ng: info: [9636] stress-ng-switch: 1646.43 nanoseconds per context switch (based on parent run time)
stress-ng: info: [9611] successful run completed in 300.19s (5 mins, 0.19 secs)
stress-ng: info: [9611] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [9611] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [9611] cpu 278984 300.03 1197.85 0.13 929.87 232.88
stress-ng: info: [9611] vm 11157220 300.00 586.92 12.21 37190.12 18622.37
stress-ng: info: [9611] hdd 4066843 300.19 1.01 166.70 13547.63 24249.26
stress-ng: info: [9611] fork 5334136 300.00 948.75 1016.00 17780.45 2714.92
stress-ng: info: [9611] switch 1134164052 300.00 159.58 1607.40 3780543.09 641865.81
lxc-nesting:~# stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --switch 4 --timeout 5m --metrics-brief
stress-ng: info: [718] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork, 4 switch
stress-ng: info: [723] stress-ng-switch: 1953.55 nanoseconds per context switch (based on parent run time)
stress-ng: info: [727] stress-ng-switch: 1958.29 nanoseconds per context switch (based on parent run time)
stress-ng: info: [734] stress-ng-switch: 2044.85 nanoseconds per context switch (based on parent run time)
stress-ng: info: [741] stress-ng-switch: 2012.83 nanoseconds per context switch (based on parent run time)
stress-ng: info: [718] successful run completed in 300.31s (5 mins, 0.31 secs)
stress-ng: info: [718] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [718] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [718] cpu 281387 300.03 1193.39 0.06 937.86 235.78
stress-ng: info: [718] vm 6383768 300.01 591.66 5.13 21278.57 10696.84
stress-ng: info: [718] hdd 5111808 300.31 0.98 133.71 17021.79 37952.39
stress-ng: info: [718] fork 3920718 300.00 334.94 367.29 13069.07 5583.24
stress-ng: info: [718] switch 602514782 300.00 66.40 1323.24 2008380.94 433576.17
lxc:~# stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --switch 4 --timeout 5m --metrics-brief
stress-ng: info: [428] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork, 4 switch
stress-ng: info: [433] stress-ng-switch: 1815.35 nanoseconds per context switch (based on parent run time)
stress-ng: info: [438] stress-ng-switch: 1813.01 nanoseconds per context switch (based on parent run time)
stress-ng: info: [448] stress-ng-switch: 1564.96 nanoseconds per context switch (based on parent run time)
stress-ng: info: [442] stress-ng-switch: 1750.28 nanoseconds per context switch (based on parent run time)
stress-ng: info: [428] successful run completed in 300.23s (5 mins, 0.23 secs)
stress-ng: info: [428] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [428] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [428] cpu 281254 300.03 1193.27 0.07 937.41 235.69
stress-ng: info: [428] vm 6023320 300.01 591.33 5.17 20077.05 10097.77
stress-ng: info: [428] hdd 5275648 300.23 1.02 139.22 17572.07 37618.71
stress-ng: info: [428] fork 3902387 300.00 325.09 363.38 13007.97 5668.20
stress-ng: info: [428] switch 693827185 300.00 72.77 1340.43 2312755.79 490961.78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment