From: | Greg Smith <gsmith(at)gregsmith(dot)com> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Automatic adjustment of bgwriter_lru_maxpages |
Date: | 2007-05-14 13:57:28 |
Message-ID: | Pine.GSO.4.64.0705140946580.9478@westnet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches pgsql-performance |
On Mon, 14 May 2007, Heikki Linnakangas wrote:
> If it's safe to set it high, let's default it to infinity.
The maximum right now is 1000, and that would be a reasonable new default.
You really don't to write more than 1000 per interval anyway without
taking a break for checkpoints; the more writes you do at once, the higher
the chances are you'll have the whole thing stall because the OS makes you
wait for a write (this is not a theoretical comment; I've watched it
happen when I try to get the BGW doing too much).
If someone has so much activity that they're allocating more than that
during a period, they should shrink the delay instead. The kinds of
systems where 1000 isn't high enough for bgwriter_lru_maxpages are going
to be compelled to adjust these parameters anyway for good performance.
--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-05-14 13:58:13 | Re: What is happening on buildfarm member baiji? |
Previous Message | Magnus Hagander | 2007-05-14 13:54:40 | Re: What is happening on buildfarm member baiji? |
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2007-05-14 14:29:05 | Re: Concurrent psql patch |
Previous Message | Tom Lane | 2007-05-14 13:52:30 | Re: Automatic adjustment of bgwriter_lru_maxpages |
From | Date | Subject | |
---|---|---|---|
Next Message | Y Sidhu | 2007-05-14 16:16:54 | Re: pg_stats how-to? |
Previous Message | Tom Lane | 2007-05-14 13:52:30 | Re: Automatic adjustment of bgwriter_lru_maxpages |