Re: Page Checksums + Double Writes

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Page Checksums + Double Writes
Дата
Msg-id CAHyXU0xZxJ2GKwMkQicCKBvikZyZRBPgQrAv1j3G1MxWda7Jvw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Page Checksums + Double Writes  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
On Wed, Dec 28, 2011 at 8:45 AM, Greg Stark <stark@mit.edu> wrote:
> On Tue, Dec 27, 2011 at 10:43 PM, Merlin Moncure <mmoncure@gmail.com> wrote:
>>  I bet if you kept a judicious number of
>> clog pages in each local process with some smart invalidation you
>> could cover enough cases that scribbling the bits down would become
>> unnecessary.
>
> I don't understand how any cache can completely remove the need for
> hint bits. Without hint bits the xids in the tuples will be "in-doubt"
> forever. No matter how large your cache you'll always come across
> tuples that are arbitrarily old and are from an unbounded size set of
> xids.

well, hint bits aren't needed strictly speaking, they are an
optimization to guard against clog lookups.   but is marking bits on
the tuple the only way to get that effect?

I'm conjecturing that some process local memory could be laid on top
of the clog slru that would be fast enough such that it could take the
place of the tuple bits in the visibility check.  Maybe this could
reduce clog contention as well -- or maybe the idea is unworkable.
That said, it shouldn't be that much work to make a proof of concept
to test the idea.

> We could replace the xids with a frozen xid sooner but that just
> amounts to nearly the same thing as the hint bits only with page
> locking and wal records.

right -- I don't think that helps.

merlin


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Page Checksums + Double Writes
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: pgstat wait timeout