Re: use a non-locking initial test in TAS_SPIN on AArch64

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: use a non-locking initial test in TAS_SPIN on AArch64
Дата
Msg-id Z4FQHBrAiFXhE4ZM@nathan
обсуждение исходный текст
Ответ на Re: use a non-locking initial test in TAS_SPIN on AArch64  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: use a non-locking initial test in TAS_SPIN on AArch64
Список pgsql-hackers
On Wed, Jan 08, 2025 at 04:38:02PM -0600, Nathan Bossart wrote:
> On Wed, Jan 08, 2025 at 05:25:24PM -0500, Andres Freund wrote:
>> I wonder if you're hitting an extreme case of binary-layout related effects?
>> I've never seen them at this magnitude though.  I'd suggest using either lld
>> or mold as linker and comparing the numbers for a few
>> -Wl,--shuffle-sections=$seed seed values.
> 
> Will do.

Actually, I think I may have just had back luck and/or not warmed things up
enough.  I just re-ran the test a few dozen times, carefully ensuring the
data was in the cache and periodically alternating between the binary with
the patch applied and the one without it.  The results converged to within
1-2% of each other, with the patched version even winning about half the
time.  The averages across all the runs showed a ~0.4% regression, which I
suspect is well within the noise range.

-- 
nathan



В списке pgsql-hackers по дате отправления: