Re: How many threads/cores Postgres can utilise?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How many threads/cores Postgres can utilise?
Дата
Msg-id h2ydcc563d11004280325u2c68220v6ac3ff71bcf6031b@mail.gmail.com
обсуждение исходный текст
Ответ на How many threads/cores Postgres can utilise?  (Piotr Kublicki <Piotr.Kublicki@iop.org>)
Ответы Re: How many threads/cores Postgres can utilise?  (Craig Ringer <craig@postnewspapers.com.au>)
Re: How many threads/cores Postgres can utilise?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On Wed, Apr 28, 2010 at 3:15 AM, Piotr Kublicki <Piotr.Kublicki@iop.org> wrote:
>
> Dears,
>
> Sorry to be a royal pain, but I cannot find it anywhere in the
> documentation: how many threads/CPU cores Postgres v. 8.4 can utilise?
> We're thinking about installing Postgres on a virtual machine (RedHat 5
> 64-bits), however not sure how many CPUs can be wisely assigned, without
> wasting of resources. Can Postgres utilise multi-core/multi-threaded
> architecture in a reasonably extent?

Like Craig mentioned, each connection uses one core basically, and the
OS can use one or maybe two.  But that means that on even moderately
busy servers 4 to 8 cores is very reasonable.  On modern hardware it's
easy to get 6 or 8 cores pretty cheaply.  2P machines can have 12 or
16 cores for pretty cheap too.

Pgsql will get faster quickly as you increase parallel load to the
number of cores you have (assuming enough memory bw to keep up) and
slowly trail off as you add concurrent connections.  If you're likely
to have hundreds of concurrent connections then adding more cores past
8 or 16 makes a lot of sense.  AMD's magny cours look promising for
that role.  You can build a 4P machine with 48 cores for a pretty
reasonable price.

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

Предыдущее
От: dipti shah
Дата:
Сообщение: Re: Syntax error in spi_prepare usage
Следующее
От: Ognjen Blagojevic
Дата:
Сообщение: Is SSL enabled in CentOS packages