Re: 16-bit page checksums for 9.2

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: 16-bit page checksums for 9.2
Дата
Msg-id 4F04678A02000025000443A1@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: 16-bit page checksums for 9.2  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: 16-bit page checksums for 9.2  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> wrote:
> I think it may also be tricky to make sure that a backend that
> needs to write a dirty buffer doesn't end up having to wait for a
> double-write to be fsync'd.
This and other parts of your post seem to ignore the BBU write-back
cache.  Multiple fsyncs of a single page can still be collapsed at
that level to a single actual disk write.  In fact, I rather doubt
this technology will look very good on machines without write-back
caching.  I'm not as sure as you are that this is a net loss in
throughput, either.  When the fsync storm clogs the RAID controller,
even reads stall, so something which more evenly pushes writes to
disk might avoid these non-productive pauses.  I think that could
improve throughput enough to balance or exceed the other effects. 
Maybe.  I agree we need to be careful to craft a good set of
benchmarks here.
> Checksums aren't free even when using double-writes: if you don't
> have checksums, pages that have only hint bit-changes don't need
> to be double-written.
Agreed.  Checksums aren't expected to be free under any
circumstances.  I'm expecting DW to be slightly faster than FPW in
general, with or without in-page checksums.
> If double writes aren't going to give us anything "for free",
> maybe that's not the right place to be focusing our
> efforts...
I'm not sure why it's not enough that they improve performance over
the alternative.  Making some other feature with obvious overhead
"free" seems an odd requirement to hang on this.  (Maybe I'm
misunderstanding you on that point?)
-Kevin


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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: Avoid FK validations for no-rewrite ALTER TABLE ALTER TYPE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PL/Perl Does not Like vstrings