Re: Maximum reasonable bgwriter_delay - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Maximum reasonable bgwriter_delay
Date
Msg-id 46783808.1040900@enterprisedb.com
Whole thread Raw
In response to Re: Maximum reasonable bgwriter_delay  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Maximum reasonable bgwriter_delay
List 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 by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: Rethinking user-defined-typmod before it's too late
Next
From: Chris Browne
Date:
Subject: PG-MQ?