Re: Postgresql on Quad CPU machine

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgresql on Quad CPU machine
Date: 2004-01-11 16:07:25
Message-ID: 87wu7y5v0i.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"D. Dante Lorenso" <dante(at)lorenso(dot)com> writes:

> I'm running PostgreSQL 7.4 on a quad Xeon attached to a
> beefy disk array. However, I am begining to wonder if this is
> a waste of CPU power.
>
> I think I read somewhere that PostgreSQL is NOT multi-threaded.
> But, will it be able to take advantage of multiple CPUs? Will
> I have to run separate postmaster instances to get the advantage?

PG uses a separate backend process for each connection, so if you have
multiple simultaneous connections they will use different CPUs.
Single queries will not be split across CPUs.

-Doug

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Spiegelberg, Greg 2004-01-11 16:21:14 Re: failures on machines using jfs
Previous Message D. Dante Lorenso 2004-01-11 15:53:38 Postgresql on Quad CPU machine