Re: Postgresql on Quad CPU machine

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Postgresql on Quad CPU machine
Дата
Msg-id 87wu7y5v0i.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Postgresql on Quad CPU machine  ("D. Dante Lorenso" <dante@lorenso.com>)
Список pgsql-performance
"D. Dante Lorenso" <dante@lorenso.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

В списке pgsql-performance по дате отправления:

Предыдущее
От: "D. Dante Lorenso"
Дата:
Сообщение: Postgresql on Quad CPU machine
Следующее
От: "Spiegelberg, Greg"
Дата:
Сообщение: Re: failures on machines using jfs