Re: Problems with autovacuum

Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with autovacuum
Дата
Msg-id 22047.1243382359@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problems with autovacuum  (Alvaro Herrera)
Ответы Re: Problems with autovacuum  (Scott Marlowe)
Re: Problems with autovacuum  (Alvaro Herrera)
Список pgsql-performance
Дерево обсуждения
Problems with autovacuum  (Łukasz Jagiełło, )
 Re: Problems with autovacuum  (Scott Marlowe, )
  Re: Problems with autovacuum  (Grzegorz Jaśkiewicz, )
   Re: Problems with autovacuum  (Scott Marlowe, )
   Re: Problems with autovacuum  (Łukasz Jagiełło, )
    Re: Problems with autovacuum  (Tom Lane, )
     Re: Problems with autovacuum  (Łukasz Jagiełło, )
     Re: Problems with autovacuum  (Alvaro Herrera, )
      Re: Problems with autovacuum  (Tom Lane, )
       Re: Problems with autovacuum  (Alvaro Herrera, )
        Re: Problems with autovacuum  (Tom Lane, )
         Re: Problems with autovacuum  (Alvaro Herrera, )
          Re: Problems with autovacuum  (Tom Lane, )
           Re: Problems with autovacuum  (Alvaro Herrera, )
            Re: Problems with autovacuum  (Tom Lane, )
             Re: Problems with autovacuum  (Scott Marlowe, )
             Re: Problems with autovacuum  (Alvaro Herrera, )
              Re: Problems with autovacuum  (Tom Lane, )
               Re: Problems with autovacuum  (Alvaro Herrera, )
                Re: Problems with autovacuum  (Alvaro Herrera, )
                Re: Problems with autovacuum  (Tom Lane, )
       Re: Problems with autovacuum  (Łukasz Jagiełło, )
  Re: Problems with autovacuum  (Łukasz Jagiełło, )
   Re: Problems with autovacuum  (Grzegorz Jaśkiewicz, )
Alvaro Herrera <> writes:
> However I think there's a bigger problem here, which is that if the user
> has set naptime too low, i.e. to a value lower than
> number-of-databases * 100ms, we'll be running the (expensive)
> rebuild_database_list function on each iteration ... maybe we oughta put
> a lower bound on naptime based on the number of databases to avoid this
> problem.

Bingo, that's surely exactly what was happening to the OP.  He had 2000
databases and naptime at (I assume) the default; so he was rerunning
rebuild_database_list every 100ms.

So that recovery code path needs some more thought.  Maybe a lower bound
on how often to do rebuild_database_list?  And/or don't set adl_next_worker
to less than 100ms in the future to begin with?

            regards, tom lane

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

Предыдущее
От: Alex Adriaanse
Дата:
Сообщение: Re: Hosted servers with good DB disk performance?
Следующее
От: "ramasubramanian"
Дата:
Сообщение: Bytea updation