RE: Stuck spins in current

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: Stuck spins in current
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D332C@sectorbase1.sectorbase.com
обсуждение исходный текст
Ответ на Stuck spins in current  ("Mikheev, Vadim" <vmikheev@SECTORBASE.COM>)
Список pgsql-hackers
> >> Got it at spin.c:156 with 50 clients doing inserts into
> >> 50 tables (int4, text[1-256 bytes]).
> >> -B 16384, -wal_buffers=256 (with default others wal params).
> 
> > SpinAcquire() ... but on which lock?
> 
> After a little bit of thought I'll bet it's ControlFileLockId.

I see "XLogWrite: new log file created..." in postmaster' log -
backend writes this after releasing ControlFileLockId.

> Likely we shouldn't be using a spinlock at all for that, but the
> short-term solution might be a longer timeout for this 
> particular lock.
> Alternatively, could we avoid holding that lock while initializing a
> new log segment?

How to synchronize with checkpoint-er if wal_files > 0?
And you know - I've run same tests on ~ Mar 9 snapshot
without any problems.

Vadim


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Stuck spins in current
Следующее
От: Giles Lean
Дата:
Сообщение: Re: Performance monitor signal handler