Re: Postgres refusing to use >1 core

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Aren Cambre" <aren(at)arencambre(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Postgres refusing to use >1 core
Date: 2011-05-09 21:59:02
Message-ID: 4DC81D56020000250003D438@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Aren Cambre <aren(at)arencambre(dot)com> wrote:

>>> - Core i7 processor--4 physical cores, but OS sees 8 cores
>>> via hyper-threading
>>
>> Most benchmarks I've seen comparing hyper-threading show that
>> PostgreSQL performs better if you don't try to convince it that
>> one core is actually two different cores. With HT on, you tend
>> to see context switching storms, and performance suffers.
>>
>> > At first, the app pounds all 8 cores.
>>
>> You really shouldn't let the marketers get to you like that. You
>> have four cores, not eight.
>>
>
> I agree. :-) Just trying to express things as my OS sees and
> reports on them.

Your OS won't *see* eight processors if you turn of HT. :-)

I'm going to pursue this digression just a little further, because
it probably will be biting you sooner or later. We make sure to
configure the BIOS on our database servers to turn off
hyperthreading. It really can make a big difference in performance.

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2011-05-09 22:29:35 Re: Benchmarking a large server
Previous Message Merlin Moncure 2011-05-09 21:56:34 Re: Postgres refusing to use >1 core