Ubuntu 18.04 L1TF Initial Tests KVM testing on Ubuntu 18.04 via the Phoronix Test Suite with Level 1 Terminal Fault mitigation Tests... Early benchmarks. Tests for a future article on Phoronix. Unpatched Host+Guest Kernel: Processor: 10 x Intel Core (Skylake IBRS) @ 4.01GHz (10 Cores), Motherboard: QEMU Standard PC (i440FX + PIIX 1996) (1.10.2-1ubuntu1 BIOS), Chipset: Intel 440FX- 82441FX PMC, Memory: 8192MB, Disk: 25GB, Graphics: llvmpipe 8064MB, Audio: QEMU Generic, Network: Red Hat Virtio device OS: Ubuntu 18.04, Kernel: 4.15.0-29-generic (x86_64), Desktop: GNOME Shell 3.28.2, Display Server: X Server 1.19.6, Display Driver: modesetting 1.19.6, OpenGL: 3.3 Mesa 18.0.5 (LLVM 6.0 256 bits), Compiler: GCC 7.3.0, File-System: ext4, Screen Resolution: 1024x768, System Layer: KVM Default - Mitigated Host+Guest Kernel: Processor: 10 x Intel Core (Skylake IBRS) @ 4.01GHz (10 Cores), Motherboard: QEMU Standard PC (i440FX + PIIX 1996) (1.10.2-1ubuntu1 BIOS), Chipset: Intel 440FX- 82441FX PMC, Memory: 8192MB, Disk: 25GB, Graphics: llvmpipe 8064MB, Audio: QEMU Generic, Network: Red Hat Virtio device OS: Ubuntu 18.04, Kernel: 4.15.0-32-generic (x86_64), Desktop: GNOME Shell 3.28.2, Display Server: X Server 1.19.6, Display Driver: modesetting 1.19.6, OpenGL: 3.3 Mesa 18.0.5 (LLVM 6.0 256 bits), Compiler: GCC 7.3.0, File-System: ext4, Screen Resolution: 1024x768, System Layer: KVM Mitigated With Always L1D Flush: Processor: 10 x Intel Core (Skylake IBRS) @ 4.01GHz (10 Cores), Motherboard: QEMU Standard PC (i440FX + PIIX 1996) (1.10.2-1ubuntu1 BIOS), Chipset: Intel 440FX- 82441FX PMC, Memory: 8192MB, Disk: 25GB, Graphics: llvmpipe 8064MB, Audio: QEMU Generic, Network: Red Hat Virtio device OS: Ubuntu 18.04, Kernel: 4.15.0-32-generic (x86_64), Desktop: GNOME Shell 3.28.2, Display Server: X Server 1.19.6, Display Driver: modesetting 1.19.6, OpenGL: 3.3 Mesa 18.0.5 (LLVM 6.0 256 bits), Compiler: GCC 7.3.0, File-System: ext4, Screen Resolution: 1024x768, System Layer: KVM Full Mitigation w/ SMT Disabled: Processor: 10 x Intel Core (Skylake IBRS) @ 4.01GHz (10 Cores), Motherboard: QEMU Standard PC (i440FX + PIIX 1996) (1.10.2-1ubuntu1 BIOS), Chipset: Intel 440FX- 82441FX PMC, Memory: 8192MB, Disk: 25GB, Graphics: llvmpipe 8064MB, Audio: QEMU Generic, Network: Red Hat Virtio device OS: Ubuntu 18.04, Kernel: 4.15.0-32-generic (x86_64), Desktop: GNOME Shell 3.28.2, Display Server: X Server 1.19.6, Display Driver: modesetting 1.19.6, OpenGL: 3.3 Mesa 18.0.5 (LLVM 6.0 256 bits), Compiler: GCC 7.3.0, File-System: ext4, Screen Resolution: 1024x768, System Layer: KVM SQLite 3.22 Timed SQLite Insertions Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 4.88 |======================== Default - Mitigated Host+Guest Kernel . 5.30 |========================== Mitigated With Always L1D Flush ....... 5.67 |============================ Full Mitigation w/ SMT Disabled ....... 6.74 |================================= Flexible IO Tester 3.1 Type: Random Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory MB/s > Higher Is Better Unpatched Host+Guest Kernel ........... 6133 |================================= Default - Mitigated Host+Guest Kernel . 5924 |================================ Mitigated With Always L1D Flush ....... 6077 |================================= Full Mitigation w/ SMT Disabled ....... 6096 |================================= Flexible IO Tester 3.1 Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory MB/s > Higher Is Better Unpatched Host+Guest Kernel ........... 3192 |================================ Default - Mitigated Host+Guest Kernel . 3150 |================================ Mitigated With Always L1D Flush ....... 3136 |================================ Full Mitigation w/ SMT Disabled ....... 3243 |================================= IndigoBench 4.0.64 Scene: Bedroom M samples/s > Higher Is Better Unpatched Host+Guest Kernel ........... 0.88 |================================= Default - Mitigated Host+Guest Kernel . 0.87 |================================= Mitigated With Always L1D Flush ....... 0.88 |================================= Full Mitigation w/ SMT Disabled ....... 0.65 |======================== IndigoBench 4.0.64 Scene: Supercar M samples/s > Higher Is Better Unpatched Host+Guest Kernel ........... 2.06 |================================= Default - Mitigated Host+Guest Kernel . 2.03 |================================= Mitigated With Always L1D Flush ....... 2.05 |================================= Full Mitigation w/ SMT Disabled ....... 1.58 |========================= LuaJIT 2.0.5 Test: Composite Mflops > Higher Is Better Unpatched Host+Guest Kernel ........... 1796.73 |============================== Default - Mitigated Host+Guest Kernel . 1811.87 |============================== Mitigated With Always L1D Flush ....... 1806.32 |============================== Full Mitigation w/ SMT Disabled ....... 1740.23 |============================= TTSIOD 3D Renderer 2.3b Phong Rendering With Soft-Shadow Mapping FPS > Higher Is Better Unpatched Host+Guest Kernel ........... 353.68 |=============================== Default - Mitigated Host+Guest Kernel . 351.26 |=============================== Mitigated With Always L1D Flush ....... 351.87 |=============================== Full Mitigation w/ SMT Disabled ....... 190.84 |================= x265 2.8 H.265 Video Encoding Frames Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 7.41 |================================= Default - Mitigated Host+Guest Kernel . 7.39 |================================= Mitigated With Always L1D Flush ....... 7.39 |================================= Full Mitigation w/ SMT Disabled ....... 7.03 |=============================== Timed Apache Compilation 2.4.7 Time To Compile Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 19.21 |============================== Default - Mitigated Host+Guest Kernel . 19.43 |============================== Mitigated With Always L1D Flush ....... 19.38 |============================== Full Mitigation w/ SMT Disabled ....... 20.56 |================================ Timed Linux Kernel Compilation 4.13 Time To Compile Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 84.44 |========================== Default - Mitigated Host+Guest Kernel . 86.20 |=========================== Mitigated With Always L1D Flush ....... 85.72 |========================== Full Mitigation w/ SMT Disabled ....... 100.65 |=============================== Timed PHP Compilation 7.1.9 Time To Compile Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 55.60 |============================ Default - Mitigated Host+Guest Kernel . 56.52 |============================ Mitigated With Always L1D Flush ....... 55.62 |============================ Full Mitigation w/ SMT Disabled ....... 63.71 |================================ Hackbench Count: 8 - Type: Thread Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 37.11 |=============== Default - Mitigated Host+Guest Kernel . 36.38 |=============== Mitigated With Always L1D Flush ....... 45.01 |=================== Full Mitigation w/ SMT Disabled ....... 77.59 |================================ Hackbench Count: 16 - Type: Thread Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 66.52 |============== Default - Mitigated Host+Guest Kernel . 68.50 |============== Mitigated With Always L1D Flush ....... 74.10 |=============== Full Mitigation w/ SMT Disabled ....... 150.87 |=============================== Hackbench Count: 8 - Type: Process Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 32.61 |============ Default - Mitigated Host+Guest Kernel . 33.88 |============ Mitigated With Always L1D Flush ....... 36.26 |============= Full Mitigation w/ SMT Disabled ....... 86.94 |================================ Hackbench Count: 16 - Type: Process Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 61.69 |=========== Default - Mitigated Host+Guest Kernel . 63.02 |=========== Mitigated With Always L1D Flush ....... 66.06 |============ Full Mitigation w/ SMT Disabled ....... 178.00 |=============================== PostgreSQL pgbench 10.3 Scaling: Buffer Test - Test: Normal Load - Mode: Read Only TPS > Higher Is Better Unpatched Host+Guest Kernel ........... 138895.34 |============================ Default - Mitigated Host+Guest Kernel . 126169.95 |========================= Mitigated With Always L1D Flush ....... 131733.99 |=========================== Full Mitigation w/ SMT Disabled ....... 88134.47 |================== PostgreSQL pgbench 10.3 Scaling: Buffer Test - Test: Normal Load - Mode: Read Write TPS > Higher Is Better Unpatched Host+Guest Kernel ........... 14708.07 |============================= Default - Mitigated Host+Guest Kernel . 13195.76 |========================== Mitigated With Always L1D Flush ....... 13671.25 |=========================== Full Mitigation w/ SMT Disabled ....... 6849.78 |============== Darktable 2.4.2 Test: Boat - Acceleration: CPU-only Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 15.23 |=============================== Default - Mitigated Host+Guest Kernel . 15.32 |================================ Mitigated With Always L1D Flush ....... 15.20 |=============================== Full Mitigation w/ SMT Disabled ....... 15.54 |================================ Darktable 2.4.2 Test: Masskrug - Acceleration: CPU-only Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 7.98 |======================= Default - Mitigated Host+Guest Kernel . 8.05 |======================== Mitigated With Always L1D Flush ....... 8.04 |======================== Full Mitigation w/ SMT Disabled ....... 10.91 |================================ Darktable 2.4.2 Test: Server Rack - Acceleration: CPU-only Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 0.24 |=================== Default - Mitigated Host+Guest Kernel . 0.25 |==================== Mitigated With Always L1D Flush ....... 0.27 |===================== Full Mitigation w/ SMT Disabled ....... 0.42 |================================= Darktable 2.4.2 Test: Server Room - Acceleration: CPU-only Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 6.82 |============================ Default - Mitigated Host+Guest Kernel . 6.95 |============================= Mitigated With Always L1D Flush ....... 6.86 |============================ Full Mitigation w/ SMT Disabled ....... 8.04 |================================= GIMP 2.8.22 Test: resize Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 6.73 |=============================== Default - Mitigated Host+Guest Kernel . 6.63 |=============================== Mitigated With Always L1D Flush ....... 6.73 |=============================== Full Mitigation w/ SMT Disabled ....... 7.14 |================================= GIMP 2.8.22 Test: rotate Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 15.03 |============================== Default - Mitigated Host+Guest Kernel . 15.18 |============================== Mitigated With Always L1D Flush ....... 14.96 |============================== Full Mitigation w/ SMT Disabled ....... 16.21 |================================ GIMP 2.8.22 Test: auto-levels Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 14.00 |============================== Default - Mitigated Host+Guest Kernel . 14.00 |============================== Mitigated With Always L1D Flush ....... 14.37 |=============================== Full Mitigation w/ SMT Disabled ....... 14.70 |================================ GIMP 2.8.22 Test: unsharp-mask Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 28.88 |=============================== Default - Mitigated Host+Guest Kernel . 29.18 |=============================== Mitigated With Always L1D Flush ....... 30.08 |================================ Full Mitigation w/ SMT Disabled ....... 30.18 |================================ Redis 4.0.8 Test: GET Requests Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 3217058.79 |========================== Default - Mitigated Host+Guest Kernel . 3334485.29 |=========================== Mitigated With Always L1D Flush ....... 3058802.25 |========================= Full Mitigation w/ SMT Disabled ....... 3199019.38 |========================== Redis 4.0.8 Test: SET Requests Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 2434462.83 |========================== Default - Mitigated Host+Guest Kernel . 2435028.00 |========================== Mitigated With Always L1D Flush ....... 2483949.92 |=========================== Full Mitigation w/ SMT Disabled ....... 2302876.06 |========================= Stress-NG 0.07.26 Test: Forking Bogo Ops/s > Higher Is Better Unpatched Host+Guest Kernel ........... 53821.36 |============================= Default - Mitigated Host+Guest Kernel . 51330.74 |============================ Mitigated With Always L1D Flush ....... 51938.06 |============================ Full Mitigation w/ SMT Disabled ....... 15365.07 |======== Stress-NG 0.07.26 Test: Socket Activity Bogo Ops/s > Higher Is Better Unpatched Host+Guest Kernel ........... 4725.63 |============================= Default - Mitigated Host+Guest Kernel . 4762.94 |============================= Mitigated With Always L1D Flush ....... 4872.30 |============================== Full Mitigation w/ SMT Disabled ....... 4878.27 |============================== Stress-NG 0.07.26 Test: Context Switching Bogo Ops/s > Higher Is Better Unpatched Host+Guest Kernel ........... 3323902.31 |=========================== Default - Mitigated Host+Guest Kernel . 3372781.35 |=========================== Mitigated With Always L1D Flush ....... 3169460.79 |========================= Full Mitigation w/ SMT Disabled ....... 2773378.96 |====================== Stress-NG 0.07.26 Test: System V Message Passing Bogo Ops/s > Higher Is Better Unpatched Host+Guest Kernel ........... 8013362.11 |========================== Default - Mitigated Host+Guest Kernel . 8309452.79 |=========================== Mitigated With Always L1D Flush ....... 8030410.10 |========================== Full Mitigation w/ SMT Disabled ....... 5087324.13 |================= NGINX Benchmark 1.9.9 Static Web Page Serving Requests Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 43040.22 |============================= Default - Mitigated Host+Guest Kernel . 43300.67 |============================= Mitigated With Always L1D Flush ....... 42224.07 |============================ Full Mitigation w/ SMT Disabled ....... 42554.18 |============================= Apache Siege 2.4.29 Concurrent Users: 100 Transactions Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 5344.03 |============================== Default - Mitigated Host+Guest Kernel . 2198.17 |============ Mitigated With Always L1D Flush ....... 3453.72 |=================== Full Mitigation w/ SMT Disabled ....... 2109.55 |============ Apache Siege 2.4.29 Concurrent Users: 200 Transactions Per Second > Higher Is Better Unpatched Host+Guest Kernel ........... 2701.26 |=============== Default - Mitigated Host+Guest Kernel . 5375.29 |============================== Mitigated With Always L1D Flush ....... 1779.41 |========== Full Mitigation w/ SMT Disabled ....... 419.40 |== Git Time To Complete Common Git Commands Seconds < Lower Is Better Unpatched Host+Guest Kernel ........... 4.49 |================================ Default - Mitigated Host+Guest Kernel . 4.58 |================================= Mitigated With Always L1D Flush ....... 4.51 |================================ Full Mitigation w/ SMT Disabled ....... 4.64 |=================================