Re: Limit of bgwriter_lru_maxpages of max. 1000?

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Limit of bgwriter_lru_maxpages of max. 1000?
Дата
Msg-id alpine.GSO.2.01.0910020500090.10008@westnet.com
обсуждение исходный текст
Ответ на Limit of bgwriter_lru_maxpages of max. 1000?  (Gerhard Wiesinger <lists@wiesinger.com>)
Ответы Re: Limit of bgwriter_lru_maxpages of max. 1000?  (Gerhard Wiesinger <lists@wiesinger.com>)
Список pgsql-general
On Sun, 27 Sep 2009, Gerhard Wiesinger wrote:

> Lowering bgwriter_delay is possible, but I think overhead is too much and
> still there is a limit of 800MB/s involved:

Stuff written by the background writer turns into largely random I/O.
800MB/s of random writes is so large of a number it's only recently become
remotely possible; a RAID0 of SSD devices might manage it.  No hardware
available until very recently had any hope of getting that sort of
performance.

In any case, I would wager you'll run into one of many other bottlenecks
in PostgreSQL and/or currently available system/disk hardware long before
the background writer limit gets important.

> So in fact I think bgwriter_lru_maxpages should be limited to 100000 if
> limited at all.

The current limit is based on the assumption that people will set it to
values way too high if allowed, to the point where it's counterproductive.
That's exactly what people used to do with early background writer
designs.  I think you're wandering down the same road, where what it
actually does and what you think it does are not the same thing at all.
Much of the important disk I/O coming out of the database should be
related to checkpoints, not the background writer, and there is no limit
on that I/O.

If you think you've got a situation where the current limits are not
sufficient, the path to argue that would start with showing what you're
seeing in pg_stat_bgwriter.  I can imagine some results from there on a
system with a very high rate of I/O available that would suggest the
current limits are too small.  I've never come close to actually seeing
such results in the real world though, and if you're not already
monitoring those numbers on a real system I'd suggest you start there
rather than presuming there's a design limitation here.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

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

Предыдущее
От: Dave Page
Дата:
Сообщение: PGDay.EU 2009 - Call for lighting talks
Следующее
От: Greg Smith
Дата:
Сообщение: Re: PostgreSQL reads each 8k block - no larger blocks are used - even on sequential scans