Re: [PATCH v3 1/6] x86/bugs: Add asm helpers for executing VERW

From: Andrew Cooper
Date: Fri Oct 27 2023 - 10:12:52 EST


On 27/10/2023 2:48 pm, Pawan Gupta wrote:
> On the bright-side, I am seeing even better perf with VERW operand
> out-of-line:
>
> Baseline: v6.6-rc5
>
> | Test | Configuration | v1 | v3 |
> | ------------------ | ---------------------- | ---- | ---- |
> | build-linux-kernel | defconfig | 1.00 | 1.00 |
> | hackbench | 32 - Process | 1.02 | 1.06 |
> | nginx | Short Connection - 500 | 1.01 | 1.04 |
>
> Disclaimer: These are collected by a stupid dev who knows nothing about
> perf, please take this with a grain of salt.

:)

Almost as if it's a good idea to follow the advice of the Optimisation
Guide on mixing code and data, which is "don't".

~Andrew