Re: BBU Cache vs. spindles

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BBU Cache vs. spindles
Дата
Msg-id 4CC045FB0200002500036C4B@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: BBU Cache vs. spindles  (Greg Smith <greg@2ndquadrant.com>)
Ответы Re: BBU Cache vs. spindles
Список pgsql-performance
Greg Smith <greg@2ndquadrant.com> wrote:
> Kevin Grittner wrote:

>> So you're confident that an 8kB write to the controller will not
>> be done as a series of smaller atomic writes by the OS file
>> system?
>
> Sure, that happens.  But if the BBU has gotten an fsync call after
> the 8K write, it shouldn't return success until after all 8K are
> in its cache.

I'm not concerned about an fsync after the controller has it; I'm
concerned about a system crash in the middle of writing an 8K page
to the controller.  Other than the expected *size* of the window of
time during which you're vulnerable, what does a BBU caching
controller buy you in this regard?  Can't the OS rearrange the
writes of disk sectors after the 8K page is written to the OS cache
so that the window might occasionally be rather large?

-Kevin

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

Предыдущее
От: Jesper Krogh
Дата:
Сообщение: Re: Slow count(*) again...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: How does PG know if data is in memory?