From: | Aren Cambre <aren(at)arencambre(dot)com> |
---|---|
To: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Postgres refusing to use >1 core |
Date: | 2011-05-09 21:52:36 |
Message-ID: | BANLkTimNTLqQgQeyu=FPOn-5x6F4XnVBJA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
>
> > Postgres won't use more than 1 CPU core.
>
> One *connection* to PostgreSQL won't directly use more than one
> core. As Merlin suggests, perhaps you're really only running one
> query at a time? The other possibility is that you're somehow
> acquiring locks which cause one process to block others.
>
The "one connection" theory appears correct per prior email, if correctly
understood what I was reading.
I guess I need to head back over to the Npgsql folks and see what I am doing
wrong?
> > - 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.
Aren
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2011-05-09 21:56:34 | Re: Postgres refusing to use >1 core |
Previous Message | Aren Cambre | 2011-05-09 21:50:45 | Re: Postgres refusing to use >1 core |