Re: Usage up to 50% CPU

Список
Период
Сортировка
От Magnus Hagander
Тема Re: Usage up to 50% CPU
Дата
Msg-id 20070427081350.GD12895@svr2.hagander.net
обсуждение исходный текст
Ответ на Re: Usage up to 50% CPU  ("Andres Retzlaff")
Ответы Re: Usage up to 50% CPU  (Shane Ambler)
Список pgsql-performance
Дерево обсуждения
Usage up to 50% CPU  ("Andres Retzlaff", )
 Re: Usage up to 50% CPU  (Magnus Hagander, )
  Re: Usage up to 50% CPU  ("Andres Retzlaff", )
   Re: Usage up to 50% CPU  (Magnus Hagander, )
    Re: Usage up to 50% CPU  (Shane Ambler, )
     Re: Usage up to 50% CPU  (Michael Stone, )
      Re: Usage up to 50% CPU  ("Andres Retzlaff", )
On Fri, Apr 27, 2007 at 08:10:48AM +0000, Andres Retzlaff wrote:
> Hi Magnus,
>
> in this case each CPU goes up to 50%, giveing me 50% total usage. I was
> specting as you say 1 query 100% cpu.
>
> Any ideas?

No. 1 query will only use 100% of *one* CPU, which means 50% total usage.
You need at least one query per CPU to reach full 100% of the whole system.
(Actually, you can get slightly above 50% since the query will run on one
CPU and the OS and autovacuum and bgwriter can run on the other. But it's
marginally)

//Magnus


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: What`s wrong with JFS configuration?
Следующее
От: Michael Stone
Дата:
Сообщение: Re: Feature Request --- was: PostgreSQL Performance Tuning