Re: Maximum reasonable bgwriter_delay

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Maximum reasonable bgwriter_delay
Date: 2007-06-19 20:09:44
Message-ID: 46783808.1040900@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Browne 2007-06-19 21:45:16 PG-MQ?
Previous Message Simon Riggs 2007-06-19 18:47:25 Re: Rethinking user-defined-typmod before it's too late