Re: Not HOT enough

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Not HOT enough
Дата
Msg-id CA+Tgmob=fNqBTzGVwBvJR7N1OmEKuhHaX-B=4sV_g2uyfxmyPA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Not HOT enough  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Not HOT enough  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Not HOT enough  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Nov 23, 2011 at 1:30 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> What I think might make more sense is to keep two variables,
> RecentGlobalXmin with its current meaning and RecentDatabaseWideXmin
> which considers only xmins of transactions in the current database.
> Then HOT cleanup could select the appropriate cutoff depending on
> whether it's working on a shared or non-shared relation.

Unfortunately, that would have the effect of lengthening the time for
which ProcArrayLock is held, and as benchmark results from Pavan's
patch in that area show, that makes a very big difference to total
throughput on write-heavy workloads.  On a related note, Simon's
proposed change here would also complicate things for that patch,
because databaseId would have to become part of PGXACT rather than
PGPROC, and that would make the PGXACT act array larger and thus
slower to scan.  I have deep respect for the perils of not doing HOT
cleanup quickly enough, but ProcArrayLock contention is nothing to
sneeze at either.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Not HOT enough
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Not HOT enough