Re: Maximum reasonable bgwriter_delay

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Maximum reasonable bgwriter_delay
Дата
Msg-id 46783808.1040900@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Maximum reasonable bgwriter_delay  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: Maximum reasonable bgwriter_delay  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-hackers
Simon Riggs wrote:
> On Tue, 2007-06-19 at 15:53 +0100, Heikki Linnakangas wrote:
>> The maximum for bgwriter_delay is currently 10 seconds. That's a long 
>> time, and in fact if you set it to a value greater than 1 s, the sleep 
>> is split into 1 s intervals with a call to AbsorbFsyncRequests in 
>> between them.
>>
>> Is there a use case for a setting > 1 s? We could simplify that logic a 
>> little bit if we just set the maximum at 1 s.
> 
> Laptop mode? Linux has it...

Granted, though you're still going to wake up every second, so I'm not 
sure how much it helps with battery life.

(/proc/sys/vm/laptop_mode won't make a difference here, AFAICS.)

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: Rethinking user-defined-typmod before it's too late
Следующее
От: Chris Browne
Дата:
Сообщение: PG-MQ?