Re: Querry and SMP mechine - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Querry and SMP mechine
Date
Msg-id 20050807100954.GA8033@svana.org
Whole thread Raw
In response to Querry and SMP mechine  (Michael Ben-Nes <miki@canaan.co.il>)
Responses Re: Querry and SMP mechine  (Michael Ben-Nes <miki@canaan.co.il>)
List 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.

Attachment

pgsql-general by date:

Previous
From: Michael Ben-Nes
Date:
Subject: Querry and SMP mechine
Next
From: "Magnus Hagander"
Date:
Subject: Re: Querry and SMP mechine