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

From Magnus Hagander
Subject Re: Querry and SMP mechine
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE094667@algol.sollentuna.se
Whole thread Raw
In response to Querry and SMP mechine  (Michael Ben-Nes <miki@canaan.co.il>)
List pgsql-general
> 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 ?

Yes, that is normal. Only one CPU per concurrent query is used.

If your load is mostly single or dual sessions runinng queries, you will
probably get a better performance if you disable hyperthreading. If you
normally have a lot of concurrent sessions, HT will probably help your
total performance.

//Magnus

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Querry and SMP mechine
Next
From: Michael Ben-Nes
Date:
Subject: Re: Querry and SMP mechine