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 Z37ggNnCZp-_gbNc@nathan
обсуждение исходный текст
Ответ на Re: use a non-locking initial test in TAS_SPIN on AArch64  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Jan 08, 2025 at 03:23:45PM -0500, Tom Lane wrote:
> I just acquired an M4 Pro, which may also be too small to show any
> effect, but perhaps running the test there would at least give us
> more confidence that there's not a bad effect.  Which test case(s)
> would you recommend trying?

Thanks!  A select-only pgbench with many clients (I used 256 upthread) and
pg_stat_statements.track_planning enabled seems to be a pretty easy way to
stress spinlocks.  The same test without track_planning enabled might also
be interesting.  I'm looking for a way to stress LWLocks, too, and I will
share here when I either find an existing test or write something of my
own.

-- 
nathan



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