Re: NUMA architecture and PostgreSQL

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: NUMA architecture and PostgreSQL
Дата
Msg-id e51f66da0811270204h50e6bb82l6f87a782bb685fb3@mail.gmail.com
обсуждение исходный текст
Ответ на NUMA architecture and PostgreSQL  (Fabricio <fabrixio1@hotmail.com>)
Ответы Re: NUMA architecture and PostgreSQL
Список pgsql-admin
On 11/27/08, Fabricio <fabrixio1@hotmail.com> wrote:
>  I have an IBM server with NUMA architecture, two nodes with 4 CPU quad core and 64 GB of RAM each, and PostgrSQL
8.3.5.
>
> Is there any way to avoid the performance degradation when the load goes up and used the two nodes?
>
> I understand this performance degradation is due to the higher latency than a cpu access a remote memory that the
localmemory. But there are ways to improve this? 
>
>  http://archives.postgresql.org/pgsql-general/2005-04/msg01187.php


You can use sched_setaffinity to select group of cpu-s for a process
and it's childs:

  http://www.kernel.org/doc/man-pages/online/pages/man2/sched_setaffinity.2.html

There is a bit higher level concept of cpusets too:

  http://www.kernel.org/doc/man-pages/online/pages/man7/cpuset.7.html

In both cases, you can either patch Postgres or write a launcher
that configures CPUs before executing postgres.

--
marko

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

Предыдущее
От: Tino Schwarze
Дата:
Сообщение: Re: NUMA architecture and PostgreSQL
Следующее
От: Vishal Arora
Дата:
Сообщение: Re: PgAgent Job Scehduler is NOT running