Re: RE: xlog checkpoint depends on sync() ... seems uns afe

Поиск
Список
Период
Сортировка
От Giles Lean
Тема Re: RE: xlog checkpoint depends on sync() ... seems uns afe
Дата
Msg-id 22231.984466053@nemeton.com.au
обсуждение исходный текст
Ответ на Re: RE: xlog checkpoint depends on sync() ... seems uns afe  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Sounds quite unreliable to me.  Unless there's some interlock ... like,
> say, the second sync not being able to advance past a buffer page that's
> as yet unwritten by the first sync.  But would all Unixen share such a
> strange detail of implementation?

I heard Kirk McKusick tell this story in a 4.4BSD internals class.
His explanation was that having an *operator* type 'sync' three times
provided enough time for the first sync to do the work before the
operator powered the system down or reset it or whatever.

I've not heard of any filesystem implementation where the number of
sync() system calls issued makes a difference, and imagine that any
programmer who has written code to call sync three times has only
heard part of the story. :-)

Regards,

Giles



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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: RE: xlog checkpoint depends on sync() ... seems uns afe
Следующее
От: Karel Zak
Дата:
Сообщение: Re: Internationalized error messages