Re: Queries becoming slow under heavy load

От: Ivan Voras
Тема: Re: Queries becoming slow under heavy load
Дата: ,
Msg-id: ihp7bt$quc$1@dough.gmane.org
(см: обсуждение, исходный текст)
Ответ на: Queries becoming slow under heavy load  ("Anne Rosset")
Ответы: Re: Queries becoming slow under heavy load  ("mark")
Список: pgsql-performance

Скрыть дерево обсуждения

Queries becoming slow under heavy load  ("Anne Rosset", )
 Re: Queries becoming slow under heavy load  (Andy Colson, )
 Re: Queries becoming slow under heavy load  ("Kevin Grittner", )
 Re: Queries becoming slow under heavy load  ("Ing. Marcos Ortiz Valmaseda", )
 Re: Queries becoming slow under heavy load  (Ivan Voras, )
  Re: Queries becoming slow under heavy load  ("mark", )
 FW: Queries becoming slow under heavy load  ("Anne Rosset", )
  Re: FW: Queries becoming slow under heavy load  (Shaun Thomas, )
   Re: FW: Queries becoming slow under heavy load  (Scott Marlowe, )
  Re: FW: Queries becoming slow under heavy load  (Scott Marlowe, )
   Re: FW: Queries becoming slow under heavy load  ("Anne Rosset", )
    Re: FW: Queries becoming slow under heavy load  (Shaun Thomas, )
     Re: FW: Queries becoming slow under heavy load  (Mladen Gogala, )
     Re: FW: Queries becoming slow under heavy load  ("Anne Rosset", )
      Re: FW: Queries becoming slow under heavy load  (Scott Marlowe, )

On 25/01/2011 22:37, Anne Rosset wrote:
> Hi,
>
> We are running some performances tests.  With a lot of concurrent
> access,  queries get very slow. When there is no load, those queries run
> fast.

As others said, you need to stat how many concurrent clients are working
on the database and also the number of logical CPUs (CPU cores,
hyperthreading) are present in the machine. So far, as a rule of thumb,
if you have more concurrent active connections (i.e. doing queries, not
idling), you will experience a sharp decline in performance if this
number exceeds the number of logical CPUs in the machine.


В списке pgsql-performance по дате сообщения:

От: Shaun Thomas
Дата:
Сообщение: Re: FW: Queries becoming slow under heavy load
От: David Greco
Дата:
Сообщение: Real vs Int performance