From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Justin <justin(at)emproshunts(dot)com> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Need for help! |
Date: | 2008-05-15 20:21:57 |
Message-ID: | dcc563d10805151321r633710bajbc86a2bc4e081708@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, May 15, 2008 at 12:53 PM, Justin <justin(at)emproshunts(dot)com> wrote:
>
> Sense PostgreSql is not a multi-threaded but a single thread application
> which spawns little exe's how is hyper threading helping Postgresql at all
> ??
Two ways:
* The stats collector / autovacuum / bgwriter can operate on one CPU
while you the user are using another (whether they're physically
separate cores on different sockets, dual or quad cores on the same
socket, or the sorta another CPU provided by hyperthreading P4s.
* You can use > 1 connection, and each new connection spawns another process.
Note that this actually makes postgresql scale to a large number of
CPUs better than many multi-threaded apps, which can have a hard time
using > 1 CPU at a time without a lot of extra help.
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2008-05-15 20:25:52 | Re: Need for help! |
Previous Message | Ivan Sergio Borgonovo | 2008-05-15 19:08:07 | Re: sp: error message not coherent with actual code |