On Fri, 2018-03-02 at 09:13 +0100, Juergen Gross wrote: > The complete series has been verified to still mitigate against > Meltdown attacks. A simple performance test (make -j 4 in the Xen > hypervisor directory) showed significant improvements compared to the > state without this series (so with Jan's and Wei's series applied), > the percentage after the numbers is always related to XPTI off: > > XPTI off Jan+Wei, XPTI on +this series, XPTI on > real 1m21.169s 1m52.149s (+38%) 1m25.692s (+6%) > user 2m47.652s 2m50.054s (+1%) 2m46.428s (-1%) > sys 1m11.949s 2m21.767s (+97%) 1m23.053s (+15%) > > A git branch of that series (+ Jan's and Wei's patches) is available: > > https://github.com/jgross1/xen.git xpti > I've run some more benchmarks, and here there are the results: https://openbenchmarking.org/result/1803039-DARI-180303217 http://openbenchmarking.org/result/1803039-DARI-180303217&obr_nor=y&obr_hgv=Jan%2BWei%2C+XPTI+on (I also include a textual recap at the bottom of this email.) These numbers shows that Juergen's series is quite effective at improving performance in pretty much all workloads that I've tested. The only exception is schbench, but I don't think that's very relevant, because of how the benchmark is configured in the PhoronixTestSuite (I just recently discovered that). The in-guest context-switching heavy workloads are the ones where this series makes the most (positive) difference. Note that on Stream and on Stress-ng:MemoryCopy, XPTI=on+this series does even *better* than XPTI=off. This is most likely due to the fact that Juergen, for now, takes advantage of PCID only for the XPTI=on case. However, although it is indeed a bit of an unfair comparison, I think it does prove the point that we want to have (something like) this series. Regards, Dario AIO-Stress 0.21 Test: Random Write MB/s > Higher Is Better XPTI off ............... 1926.57 |============================================================================================================================================================================= +this series, XPTI on .. 1931.44 |============================================================================================================================================================================= Jan+Wei, XPTI on ....... 1807.30 |================================================================================================================================================================== Stream 2013-01-17 Type: Copy MB/s > Higher Is Better XPTI off ............... 15738.48 |============================================================================================================================================== +this series, XPTI on .. 19011.66 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 15381.94 |=========================================================================================================================================== Stream 2013-01-17 Type: Scale MB/s > Higher Is Better XPTI off ............... 10849.14 |================================================================================================================================================= +this series, XPTI on .. 12833.84 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 10696.66 |=============================================================================================================================================== Stream 2013-01-17 Type: Triad MB/s > Higher Is Better XPTI off ............... 12268.20 |====================================================================================================================================================== +this series, XPTI on .. 14085.56 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 12120.56 |==================================================================================================================================================== Stream 2013-01-17 Type: Add MB/s > Higher Is Better XPTI off ............... 12323.60 |===================================================================================================================================== +this series, XPTI on .. 15881.14 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 12085.76 |=================================================================================================================================== t-test1 2017-01-13 Threads: 1 Seconds < Lower Is Better XPTI off ............... 75.20 |==================================================================================================== +this series, XPTI on .. 111.12 |==================================================================================================================================================== Jan+Wei, XPTI on ....... 130.34 |============================================================================================================================================================================== t-test1 2017-01-13 Threads: 2 Seconds < Lower Is Better XPTI off ............... 24.13 |=========================================================================================================== +this series, XPTI on .. 34.12 |======================================================================================================================================================= Jan+Wei, XPTI on ....... 39.62 |=============================================================================================================================================================================== CacheBench Test: Read MB/s > Higher Is Better XPTI off ............... 2026.19 |============================================================================================================================================================================= +this series, XPTI on .. 2024.43 |============================================================================================================================================================================= Jan+Wei, XPTI on ....... 2023.90 |============================================================================================================================================================================= CacheBench Test: Write MB/s > Higher Is Better XPTI off ............... 9741.40 |============================================================================================================================================================================= +this series, XPTI on .. 9734.24 |============================================================================================================================================================================= Jan+Wei, XPTI on ....... 9727.98 |============================================================================================================================================================================= CacheBench Test: Read / Modify / Write MB/s > Higher Is Better XPTI off ............... 13253.33 |============================================================================================================================================================================ +this series, XPTI on .. 13247.78 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 13239.67 |============================================================================================================================================================================ Timed Linux Kernel Compilation 4.13 Time To Compile Seconds < Lower Is Better XPTI off ............... 155.54 |======================================================================================================================================================= +this series, XPTI on .. 169.21 |===================================================================================================================================================================== Jan+Wei, XPTI on ....... 178.70 |============================================================================================================================================================================== Timed MPlayer Compilation 1.0-rc3 Time To Compile Seconds < Lower Is Better XPTI off ............... 46.12 |================================================================================================================================================================= +this series, XPTI on .. 47.70 |======================================================================================================================================================================= Jan+Wei, XPTI on ....... 50.02 |=============================================================================================================================================================================== Timed PHP Compilation 7.1.9 Time To Compile Seconds < Lower Is Better XPTI off ............... 119.46 |========================================================================================================================================================== +this series, XPTI on .. 128.66 |====================================================================================================================================================================== Jan+Wei, XPTI on ....... 135.01 |============================================================================================================================================================================== Parallel BZIP2 Compression 1.1.12 256MB File Compression Seconds < Lower Is Better XPTI off ............... 8.96 |=================================================================================================================================================================== +this series, XPTI on .. 8.47 |========================================================================================================================================================== Jan+Wei, XPTI on ....... 9.67 |================================================================================================================================================================================ Hackbench Count: 1 - Type: Thread Seconds < Lower Is Better XPTI off ............... 11.45 |================================================================================================================ +this series, XPTI on .. 15.48 |======================================================================================================================================================= Jan+Wei, XPTI on ....... 17.91 |=============================================================================================================================================================================== Hackbench Count: 4 - Type: Thread Seconds < Lower Is Better XPTI off ............... 38.43 |========================================================================================================= +this series, XPTI on .. 53.90 |==================================================================================================================================================== Jan+Wei, XPTI on ....... 63.83 |=============================================================================================================================================================================== Hackbench Count: 16 - Type: Thread Seconds < Lower Is Better XPTI off ............... 140.91 |==================================================================================================== +this series, XPTI on .. 203.78 |================================================================================================================================================= Jan+Wei, XPTI on ....... 244.98 |============================================================================================================================================================================== Stress-NG 0.07.26 Test: Crypto Bogo Ops/s > Higher Is Better XPTI off ............... 689.36 |============================================================================================================================================================================== +this series, XPTI on .. 688.78 |============================================================================================================================================================================== Jan+Wei, XPTI on ....... 688.35 |============================================================================================================================================================================== Stress-NG 0.07.26 Test: Bsearch Bogo Ops/s > Higher Is Better XPTI off ............... 3941.30 |============================================================================================================================================================================= +this series, XPTI on .. 3902.20 |=========================================================================================================================================================================== Jan+Wei, XPTI on ....... 3909.30 |============================================================================================================================================================================ Stress-NG 0.07.26 Test: Forking Bogo Ops/s > Higher Is Better XPTI off ............... 6208.40 |============================================================================================================================================================================= +this series, XPTI on .. 5589.59 |============================================================================================================================================================ Jan+Wei, XPTI on ....... 4601.54 |================================================================================================================================ Stress-NG 0.07.26 Test: Hsearch Bogo Ops/s > Higher Is Better XPTI off ............... 26380.63 |============================================================================================================================================================================ +this series, XPTI on .. 26389.66 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 26246.49 |=========================================================================================================================================================================== Stress-NG 0.07.26 Test: Lsearch Bogo Ops/s > Higher Is Better XPTI off ............... 60.27 |=============================================================================================================================================================================== +this series, XPTI on .. 60.27 |=============================================================================================================================================================================== Jan+Wei, XPTI on ....... 55.76 |================================================================================================================================================================== Stress-NG 0.07.26 Test: Tsearch Bogo Ops/s > Higher Is Better XPTI off ............... 125.72 |============================================================================================================================================================================== +this series, XPTI on .. 125.02 |============================================================================================================================================================================= Jan+Wei, XPTI on ....... 124.12 |============================================================================================================================================================================ Stress-NG 0.07.26 Test: CPU Stress Bogo Ops/s > Higher Is Better XPTI off ............... 1706.72 |===================================================================================================================================================================== +this series, XPTI on .. 1733.77 |======================================================================================================================================================================== Jan+Wei, XPTI on ....... 1787.12 |============================================================================================================================================================================= Stress-NG 0.07.26 Test: Semaphores Bogo Ops/s > Higher Is Better XPTI off ............... 2262689.37 |========================================================================================================================================================================== +this series, XPTI on .. 2109096.56 |============================================================================================================================================================== Jan+Wei, XPTI on ....... 2041884.08 |========================================================================================================================================================= Stress-NG 0.07.26 Test: Matrix Math Bogo Ops/s > Higher Is Better XPTI off ............... 20287.24 |============================================================================================================================================================================ +this series, XPTI on .. 20259.78 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 20263.31 |============================================================================================================================================================================ Stress-NG 0.07.26 Test: Vector Math Bogo Ops/s > Higher Is Better XPTI off ............... 10516.51 |============================================================================================================================================================================ +this series, XPTI on .. 10507.48 |============================================================================================================================================================================ Jan+Wei, XPTI on ....... 10497.54 |============================================================================================================================================================================ Stress-NG 0.07.26 Test: Memory Copying Bogo Ops/s > Higher Is Better XPTI off ............... 978.38 |================================================================================================================================================================ +this series, XPTI on .. 1058.67 |============================================================================================================================================================================= Jan+Wei, XPTI on ....... 983.75 |================================================================================================================================================================= Stress-NG 0.07.26 Test: Socket Activity Bogo Ops/s > Higher Is Better XPTI off ............... 1568.00 |============================================================================================================================================================================= +this series, XPTI on .. 1170.07 |================================================================================================================================= Jan+Wei, XPTI on ....... 923.73 |====================================================================================================== Stress-NG 0.07.26 Test: Context Switching Bogo Ops/s > Higher Is Better XPTI off ............... 822072.29 |=========================================================================================================================================================================== +this series, XPTI on .. 366599.11 |============================================================================ Jan+Wei, XPTI on ....... 261709.75 |====================================================== Stress-NG 0.07.26 Test: Glibc C String Functions Bogo Ops/s > Higher Is Better XPTI off ............... 269733.97 |=========================================================================================================================================================================== +this series, XPTI on .. 263300.54 |======================================================================================================================================================================= Jan+Wei, XPTI on ....... 262641.54 |======================================================================================================================================================================= Stress-NG 0.07.26 Test: Glibc Qsort Data Sorting Bogo Ops/s > Higher Is Better XPTI off ............... 58.00 |=============================================================================================================================================================================== +this series, XPTI on .. 56.32 |========================================================================================================================================================================== Jan+Wei, XPTI on ....... 57.99 |=============================================================================================================================================================================== Stress-NG 0.07.26 Test: System V Message Passing Bogo Ops/s > Higher Is Better XPTI off ............... 3737187.66 |========================================================================================================================================================================== +this series, XPTI on .. 2018958.18 |============================================================================================ Jan+Wei, XPTI on ....... 1413159.24 |================================================================ PyBench 2018-02-16 Total For Average Test Times Milliseconds < Lower Is Better XPTI off ............... 2988 |=============================================================================================================================================================================== +this series, XPTI on .. 2999 |================================================================================================================================================================================ Jan+Wei, XPTI on ....... 3004 |================================================================================================================================================================================ Schbench Message Threads: 2 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 17696 |======================================================================================================================================================= +this series, XPTI on .. 18368 |============================================================================================================================================================= Jan+Wei, XPTI on ....... 20523 |=============================================================================================================================================================================== Schbench Message Threads: 4 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 86144 |============================================================================================================================================================================= +this series, XPTI on .. 87168 |=============================================================================================================================================================================== Jan+Wei, XPTI on ....... 85717 |============================================================================================================================================================================ Schbench Message Threads: 6 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 130219 |============================================================================================================================================================================== +this series, XPTI on .. 130389 |============================================================================================================================================================================== Jan+Wei, XPTI on ....... 130219 |============================================================================================================================================================================== Schbench Message Threads: 8 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 173141 |=========================================================================================================================================================================== +this series, XPTI on .. 176555 |============================================================================================================================================================================== Jan+Wei, XPTI on ....... 172459 |========================================================================================================================================================================== Schbench Message Threads: 16 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 338773 |============================================================================================================================================================================= +this series, XPTI on .. 339797 |============================================================================================================================================================================== Jan+Wei, XPTI on ....... 329557 |========================================================================================================================================================================= Schbench Message Threads: 32 - Workers Per Message Thread: 16 usec, 99.9th Latency Percentile < Lower Is Better XPTI off ............... 636587 |============================================================================================================================================================================== +this series, XPTI on .. 624981 |=========================================================================================================================================================================== Jan+Wei, XPTI on ....... 635904 |============================================================================================================================================================================== -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/