Re: Querry and SMP mechine

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Querry and SMP mechine
Дата
Msg-id 20050807100954.GA8033@svana.org
обсуждение исходный текст
Ответ на Querry and SMP mechine  (Michael Ben-Nes <miki@canaan.co.il>)
Ответы Re: Querry and SMP mechine  (Michael Ben-Nes <miki@canaan.co.il>)
Список pgsql-general
On Sun, Aug 07, 2005 at 01:04:51PM +0300, Michael Ben-Nes wrote:
> Hello
>
> Im using postgres 8.0.1 on Debian Sarge with 2 XEON 2.4 HT.
>
> doing cat /etc/cpuinfo shows that linux sees 4 cpu ( the HT effect ).
>
> I noticed that when im runing a big query only one of the CPUs become
> loaded.
>
> Is it normal behavior ? am i missing something ?

Yep, PostgreSQL uses a single backend for each client, so if you want
to use all four processors, you need to be running four queries
simultaneously...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Michael Ben-Nes
Дата:
Сообщение: Querry and SMP mechine
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Querry and SMP mechine