Re: Querry and SMP mechine

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Michael Ben-Nes" <miki(at)canaan(dot)co(dot)il>, "postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Querry and SMP mechine
Date: 2005-08-07 10:28:44
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE094667@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Ben-Nes Yonatan 2005-08-07 10:41:43 Re: Weird lock or bug maybe?
Previous Message Martijn van Oosterhout 2005-08-07 10:09:55 Re: Querry and SMP mechine