Re: [HACKERS] Time to up bgwriter_lru_maxpages? - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: [HACKERS] Time to up bgwriter_lru_maxpages?
Date
Msg-id 427e75f7-6032-0560-787f-2e956a977612@BlueTreble.com
Whole thread Raw
In response to Re: Time to up bgwriter_lru_maxpages?  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: [HACKERS] Time to up bgwriter_lru_maxpages?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 11/29/16 9:58 AM, Jeff Janes wrote:
>
>         Considering a single SSD can do 70% of that limit, I would say yes.
>
>
>     Next question becomes... should there even be an upper limit?
>
>
> Where the contortions needed to prevent calculation overflow become
> annoying?
>
> I'm not a big fan of nannyism in general, but the limits on this
> parameter seem particularly pointless.  You can't write out more buffers
> than exist in the dirty state, nor more than implied
> by bgwriter_lru_multiplier.  So what is really the worse that can happen
> if you make it too high?

Attached is a patch that ups the limit to INT_MAX / 2, which is the same 
as shared_buffers.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] ICU integration
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Patch: Write Amplification Reduction Method (WARM)