Re: Debian Bug#506196: postgresql: consume too much power when idle (>10 wakeups/second)
От | Alvaro Herrera |
---|---|
Тема | Re: Debian Bug#506196: postgresql: consume too much power when idle (>10 wakeups/second) |
Дата | |
Msg-id | 20090104212219.GC26552@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Debian Bug#506196: postgresql: consume too much power when idle (>10 wakeups/second) (Martin Pitt <martin@piware.de>) |
Ответы |
Re: Debian Bug#506196: postgresql: consume too much power when idle (>10 wakeups/second)
|
Список | pgsql-bugs |
Martin Pitt wrote: > Hi Alvaro, > > Alvaro Herrera [2009-01-04 18:05 -0300]: > > How many databases are there? > > It's a freshly created instance, thus just "template[01]" and > "postgres". Standard 8.3 autovacuum is enabled. I think we must blame bgwriter then. I had a look at it some time ago to how hard would it be to remove the useless wakeups and concluded that it wasn't really worth the trouble. Not that I looked that hard; probably someone smarter (and/or with more time) can find ways to optimize it. See BgWriterNap in http://git.postgresql.org/?p=postgresql.git;a=blob;f=src/backend/postmaster/bgwriter.c (Note that with the current code, you can put it to rest for 10 seconds at a time by setting bgwriter_lru_maxpages to 0 in postgresql.conf) -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-bugs по дате отправления: