Advertisement
teknoraver

KPTI benchmark

Jan 9th, 2018
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 8.85 KB | None | 0 0
  1. --- kpti_off
  2. +++ kpti_on
  3. @@ -1,122 +1,122 @@
  4. -[KPTI=off]
  5. +[KPTI=on]
  6.  root@turbo:~# dmesg |grep isolation
  7. -[    0.000000] Kernel/User page tables isolation: disabled on command line.
  8. +[    0.000000] Kernel/User page tables isolation: enabled
  9.  
  10.  root@turbo:~# dd if=/dev/zero of=/dev/null bs=1 count=100M
  11.  104857600+0 records in
  12.  104857600+0 records out
  13. -104857600 bytes (105 MB, 100 MiB) copied, 14.1098 s, 7.4 MB/s
  14. +104857600 bytes (105 MB, 100 MiB) copied, 36.855 s, 2.8 MB/s
  15.  root@turbo:~# dd if=/dev/zero of=/dev/null bs=128k count=5M
  16.  5242880+0 records in
  17.  5242880+0 records out
  18. -687194767360 bytes (687 GB, 640 GiB) copied, 40.7162 s, 16.9 GB/s
  19. +687194767360 bytes (687 GB, 640 GiB) copied, 41.8109 s, 16.4 GB/s
  20.  root@turbo:~# dd if=/dev/zero of=/dev/null bs=1M count=500K
  21.  512000+0 records in
  22.  512000+0 records out
  23. -536870912000 bytes (537 GB, 500 GiB) copied, 31.0583 s, 17.3 GB/s
  24. +536870912000 bytes (537 GB, 500 GiB) copied, 31.1779 s, 17.2 GB/s
  25.  
  26.  root@turbo:/tmp# wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.12.tar.xz
  27.  root@turbo:/tmp# time unxz -d linux-4.14.12.tar.xz
  28.  
  29. -real    0m4.815s
  30. -user    0m4.675s
  31. -sys     0m0.140s
  32. +real    0m4.827s
  33. +user    0m4.707s
  34. +sys     0m0.120s
  35.  root@turbo:/tmp# time tar xf linux-4.14.12.tar
  36.  
  37. -real    0m0.708s
  38. -user    0m0.080s
  39. -sys     0m0.624s
  40. +real    0m0.709s
  41. +user    0m0.061s
  42. +sys     0m0.646s
  43.  
  44.  root@turbo:/tmp# git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  45.  root@turbo:/tmp/linux# git checkout v3.10
  46.  root@turbo:/tmp/linux# time git checkout v4.14
  47.  Previous HEAD position was 8bb495e3f024... Linux 3.10
  48.  HEAD is now at bebc6082da0a... Linux 4.14
  49.  
  50. -real    0m3.434s
  51. -user    0m2.774s
  52. -sys     0m0.684s
  53. +real    0m3.539s
  54. +user    0m2.755s
  55. +sys     0m0.815s
  56.  
  57.  root@turbo:/tmp/linux# make defconfig
  58.  root@turbo:/tmp/linux# time make -sj8 >/dev/null
  59.  
  60. -real    1m45.796s
  61. -user    12m26.418s
  62. -sys     0m46.242s
  63. +real    1m46.856s
  64. +user    12m29.209s
  65. +sys     0m48.770s
  66.  
  67.  root@turbo:~# ip netns add ns1
  68.  root@turbo:~# ip netns add ns2
  69.  root@turbo:~# ip -n ns1 link add name veth0 type veth peer name veth0 netns ns2
  70.  root@turbo:~# ip -n ns1 link set veth0 up
  71.  root@turbo:~# ip -n ns2 link set veth0 up
  72.  root@turbo:~# ip netns exec ns1 ethtool -K veth0 tso off gso off gro off
  73.  root@turbo:~# ip netns exec ns2 ethtool -K veth0 tso off gso off gro off
  74.  root@turbo:~# ip -n ns1 addr add 192.0.2.1/24 dev veth0
  75.  root@turbo:~# ip -n ns2 addr add 192.0.2.2/24 dev veth0
  76.  root@turbo:~# ip netns exec ns1 iperf3 -sD
  77.  root@turbo:~# ip netns exec ns2 iperf3 -c 192.0.2.1 -i10 -t60
  78.  Connecting to host 192.0.2.1, port 5201
  79.  [  5] local 192.0.2.2 port 50316 connected to 192.0.2.1 port 5201
  80.  [ ID] Interval           Transfer     Bitrate         Retr  Cwnd
  81. -[  5]   0.00-10.00  sec  13.2 GBytes  11.4 Gbits/sec    0    136 KBytes
  82. -[  5]  10.00-20.00  sec  13.3 GBytes  11.4 Gbits/sec    0    687 KBytes
  83. -[  5]  20.00-30.00  sec  13.4 GBytes  11.6 Gbits/sec    0    687 KBytes
  84. -[  5]  30.00-40.00  sec  13.4 GBytes  11.5 Gbits/sec    0    687 KBytes
  85. -[  5]  40.00-50.00  sec  13.4 GBytes  11.5 Gbits/sec    0    687 KBytes
  86. -[  5]  50.00-60.00  sec  13.3 GBytes  11.5 Gbits/sec    0    687 KBytes
  87. +[  5]   0.00-10.00  sec  14.2 GBytes  12.2 Gbits/sec    0   39.6 KBytes
  88. +[  5]  10.00-20.00  sec  13.9 GBytes  11.9 Gbits/sec    0   49.5 KBytes
  89. +[  5]  20.00-30.00  sec  13.9 GBytes  11.9 Gbits/sec    0   79.2 KBytes
  90. +[  5]  30.00-40.00  sec  14.0 GBytes  12.0 Gbits/sec    0    132 KBytes
  91. +[  5]  40.00-50.00  sec  14.0 GBytes  12.0 Gbits/sec    0    214 KBytes
  92. +[  5]  50.00-60.00  sec  13.9 GBytes  11.9 Gbits/sec    0    214 KBytes
  93.  - - - - - - - - - - - - - - - - - - - - - - - - -
  94.  [ ID] Interval           Transfer     Bitrate         Retr
  95. -[  5]   0.00-60.00  sec  80.1 GBytes  11.5 Gbits/sec    0             sender
  96. -[  5]   0.00-60.04  sec  80.1 GBytes  11.5 Gbits/sec                  receiver
  97. +[  5]   0.00-60.00  sec  83.8 GBytes  12.0 Gbits/sec    0             sender
  98. +[  5]   0.00-60.05  sec  83.8 GBytes  12.0 Gbits/sec                  receiver
  99.  
  100.  iperf Done.
  101.  root@turbo:~# ip netns exec ns1 iperf3 -si10 &
  102.  warning: this system does not seem to support IPv6 - trying IPv4
  103.  -----------------------------------------------------------
  104.  Server listening on 5201
  105.  -----------------------------------------------------------
  106. -root@turbo:~# ip netns exec ns2 iperf3 -c 192.0.2.1 -i0 -t60 -u -b0 >/dev/null
  107. +root@turbo:~# ip netns exec ns2 iperf3 -c 192.0.2.1 -i0 -t60 -u -b 11G >/dev/null
  108.  Accepted connection from 192.0.2.2, port 59200
  109.  [  5] local 192.0.2.1 port 5201 connected to 192.0.2.2 port 56672
  110.  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
  111. -[  5]   0.00-10.00  sec  17.0 GBytes  14.6 Gbits/sec  0.000 ms  1148580/13731238 (8.4%)
  112. -[  5]  10.00-20.00  sec  17.0 GBytes  14.6 Gbits/sec  0.000 ms  1163382/13801085 (8.4%)
  113. -[  5]  20.00-30.00  sec  17.1 GBytes  14.6 Gbits/sec  0.001 ms  1098782/13744006 (8%)
  114. -[  5]  30.00-40.00  sec  17.0 GBytes  14.6 Gbits/sec  0.000 ms  1184930/13824114 (8.6%)
  115. -[  5]  40.00-50.00  sec  17.0 GBytes  14.6 Gbits/sec  0.000 ms  1160758/13803048 (8.4%)
  116. -[  5]  50.00-60.00  sec  17.1 GBytes  14.6 Gbits/sec  0.001 ms  1144378/13788594 (8.3%)
  117. -[  5]  60.00-60.05  sec  83.8 MBytes  14.6 Gbits/sec  0.000 ms  5779/66497 (8.7%)
  118. +[  5]   0.00-10.00  sec  12.9 GBytes  11.1 Gbits/sec  0.000 ms  2620961/12179738 (22%)
  119. +[  5]  10.00-20.00  sec  13.0 GBytes  11.1 Gbits/sec  0.000 ms  2707014/12310347 (22%)
  120. +[  5]  20.00-30.00  sec  12.9 GBytes  11.1 Gbits/sec  0.001 ms  2704859/12307486 (22%)
  121. +[  5]  30.00-40.00  sec  13.0 GBytes  11.1 Gbits/sec  0.001 ms  2625964/12232410 (21%)
  122. +[  5]  40.00-50.00  sec  13.0 GBytes  11.1 Gbits/sec  0.001 ms  2699978/12309513 (22%)
  123. +[  5]  50.00-60.00  sec  12.9 GBytes  11.1 Gbits/sec  0.001 ms  2706823/12309588 (22%)
  124. +[  5]  60.00-60.05  sec  65.4 MBytes  11.1 Gbits/sec  0.001 ms  13424/60776 (22%)
  125.  - - - - - - - - - - - - - - - - - - - - - - - - -
  126.  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
  127. -[  5]   0.00-60.05  sec   102 GBytes  14.6 Gbits/sec  0.000 ms  6906589/82758582 (8.3%)  receiver
  128. +[  5]   0.00-60.05  sec  77.7 GBytes  11.1 Gbits/sec  0.001 ms  16079023/73709858 (22%)  receiver
  129.  
  130.  iperf Done.
  131.  root@turbo:~# ip netns exec ns2 iperf3 -c 192.0.2.1 -i0 -t60 -u -b0 -l64 >/dev/null
  132.  Accepted connection from 192.0.2.2, port 60214
  133.  [  5] local 192.0.2.1 port 5201 connected to 192.0.2.2 port 45010
  134.  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
  135. -[  5]   0.00-10.00  sec   816 MBytes   685 Mbits/sec  0.000 ms  1302969/14672350 (8.9%)
  136. -[  5]  10.00-20.00  sec   821 MBytes   689 Mbits/sec  0.001 ms  1297567/14748880 (8.8%)
  137. -[  5]  20.00-30.00  sec   821 MBytes   689 Mbits/sec  0.000 ms  1283869/14737146 (8.7%)
  138. -[  5]  30.00-40.00  sec   821 MBytes   688 Mbits/sec  0.000 ms  1248187/14693759 (8.5%)
  139. -[  5]  40.00-50.00  sec   821 MBytes   688 Mbits/sec  0.000 ms  1314265/14757972 (8.9%)
  140. -[  5]  50.00-60.00  sec   821 MBytes   688 Mbits/sec  0.001 ms  1328281/14771915 (9%)
  141. -[  5]  60.00-60.05  sec  3.99 MBytes   689 Mbits/sec  0.000 ms  6409/71859 (8.9%)
  142. +[  5]   0.00-10.00  sec   628 MBytes   527 Mbits/sec  0.001 ms  2664956/12956519 (21%)
  143. +[  5]  10.00-20.00  sec   631 MBytes   530 Mbits/sec  0.000 ms  2688670/13034262 (21%)
  144. +[  5]  20.00-30.00  sec   631 MBytes   530 Mbits/sec  0.001 ms  2692048/13037532 (21%)
  145. +[  5]  30.00-40.00  sec   631 MBytes   530 Mbits/sec  0.000 ms  2639368/12983382 (20%)
  146. +[  5]  40.00-50.00  sec   631 MBytes   530 Mbits/sec  0.001 ms  2688436/13033891 (21%)
  147. +[  5]  50.00-60.00  sec   631 MBytes   530 Mbits/sec  0.000 ms  2674172/13019249 (21%)
  148. +[  5]  60.00-60.05  sec  3.08 MBytes   530 Mbits/sec  0.000 ms  13060/63451 (21%)
  149.  - - - - - - - - - - - - - - - - - - - - - - - - -
  150.  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
  151. -[  5]   0.00-60.05  sec  4.81 GBytes   688 Mbits/sec  0.000 ms  7781547/88453881 (8.8%)  receiver
  152. +[  5]   0.00-60.05  sec  3.70 GBytes   529 Mbits/sec  0.000 ms  16060710/78128286 (21%)  receiver
  153.  iperf3: the client has unexpectedly closed the connection
  154.  -----------------------------------------------------------
  155.  Server listening on 5201
  156.  -----------------------------------------------------------
  157.  
  158.  root@turbo:~# speedtest-cli --server 4302
  159.  Retrieving speedtest.net configuration...
  160.  Testing from Vodafone Italia DSL (5.95.179.161)...
  161.  Retrieving speedtest.net server list...
  162.  Selecting best server based on ping...
  163. -Hosted by Vodafone IT (Milan) [0.17 km]: 3.838 ms
  164. +Hosted by Vodafone IT (Milan) [0.17 km]: 3.952 ms
  165.  Testing download speed......................................................
  166. -Download: 855.93 Mbit/s
  167. +Download: 857.98 Mbit/s
  168.  Testing upload speed........................................................
  169. -Upload: 186.53 Mbit/s
  170. +Upload: 183.09 Mbit/s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement