Skip to content

Instantly share code, notes, and snippets.

@barusan
Last active January 5, 2018 14:42
Show Gist options
  • Save barusan/9da01a71e137a60a3c90180bc09ec8e7 to your computer and use it in GitHub Desktop.
Save barusan/9da01a71e137a60a3c90180bc09ec8e7 to your computer and use it in GitHub Desktop.
UnixBench w/ and w/o KPTI

Conditions

  • BYTE UNIX Benchmarks (Version 5.1.3)
  • OS: Debian stretch
    • w/o KPTI: GNU/Linux -- 4.9.0-4-amd64 -- #1 SMP Debian 4.9.65-3 (2017-12-03)
    • w/ KPTI: GNU/Linux -- 4.9.0-5-amd64 -- #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
  • Machine: x86_64: unknown
  • Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  • CPUs: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz x 2
    • Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
    • total 32 vcpus

1 parallel process results

Tests w/o KPTI (1) w/ KPTI (2) speedup (2)/(1)
Dhrystone [lps] 30536361.8 30552133.0 1.000516473
Whetstone [MWIPS] 3994.6 3990.7 0.999023682
Execl throughput [lps] 1539.1 1430.8 0.929634202
File copy 1024/2000 [KBps] 1073040.7 728890.8 0.679276005
File copy 256/500 [KBps] 295177.5 193330.4 0.6549632
File copy 4096/8000 [KBps] 2950500.6 2253297.4 0.763700031
Pipe throughput [lps] 2099825.9 1095740.4 0.521824405
Context switching [lps] 194631.4 176454.2 0.906607053
Process creation [lps] 3588.4 3262.4 0.909151711
Shell scripts [lpm] 4815.4 4589.3 0.953046476
Shell scripts x8 [lpm] 5327.9 4984.9 0.935621915
Syscall [lps] 3194393.0 761220.4 0.238298919

32 parallel process results

Tests w/o KPTI (1) w/ KPTI (2) speedup (2)/(1)
Dhrystone [lps] 483682003.5 483524547.4 0.999674464
Whetstone [MWIPS] 90887.5 90862.5 0.999724935
Execl throughput [lps] 46411.9 45713.2 0.984945671
File copy 1024/2000 [KBps] 540774.3 502143.4 0.928563728
File copy 256/500 [KBps] 142938.3 134109.2 0.938231391
File copy 4096/8000 [KBps] 1702283.1 1606251.6 0.943586645
Pipe throughput [lps] 32419611.1 21018530.2 0.648327648
Context switching [lps] 6779639.9 3853988.6 0.568465089
Process creation [lps] 116803.4 112330.1 0.961702313
Shell scripts [lpm] 131116.6 126542.3 0.965112732
Shell scripts x8 [lpm] 17524.2 16874.9 0.96294838
Syscall [lps] 4466164.7 4309921.3 0.965016203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment