Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 23 Feb 2019 20:42:19 -0000 Received: from smtp.eu.citrix.com ([185.25.65.24]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gxe7k-0005yV-6M for speck@linutronix.de; Sat, 23 Feb 2019 21:42:17 +0100 Subject: [MODERATED] Re: Some microperf tests References: <8e57a8b6-15e7-9dc3-be10-15270e984e9d@citrix.com> From: Andrew Cooper Message-ID: <9fdf6066-6857-bde9-b22a-b346cf0b5696@citrix.com> Date: Sat, 23 Feb 2019 20:42:07 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="nYeT4f1RJQpKbdQjjovMs01lvyKPaMHgo"; protected-headers="v1" To: speck@linutronix.de List-ID: --nYeT4f1RJQpKbdQjjovMs01lvyKPaMHgo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-GB On 23/02/2019 19:30, speck for Linus Torvalds wrote: > So those numbers are actually sensible. The old behaviour has always made sense in terms of how legacy software was expected to use it. However, given the recommendation, I wasn't certain that the new behaviour is deliberate.=C2=A0 My first thought was whether it was an unintended consequence of the NUL selector not resulting in a memory access, while the pipeline buffers are being frobbed. > Of course, the fact that verw on a NUL descriptor is so much slower in > the old case is very inconvenient for the "we should do verw even if > the CPU says it doesn't have the microcode update, for vmware rasons", > aka vmverw. > > So it would be good to verify that > > (a) yes, this is the intended performance profile from intel > > (b) we probably should give a NUL descriptor for the workaround As I said - I've currently got these questions open with the relevant people.=C2=A0 I'll feed back the reply. > (c) it hurts the vmverw case, but maybe we can only do vmverw when we > notice we are actually running under vmware. > > Is there any way to do that vmware detection? CPUID leaves at 0x40000000?=C2=A0 Not necessarily perfect, but will cover= the overwhelming majority of cases. ~Andrew --nYeT4f1RJQpKbdQjjovMs01lvyKPaMHgo--