Re: How to run multi-processor question

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: How to run multi-processor question
Дата
Msg-id Pine.LNX.4.44.0206261347200.4090-100000@cm-lcon-46-187.cm.vtr.net
обсуждение исходный текст
Ответ на How to run multi-processor question  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Список pgsql-general
Johnson, Shaunn dijo:

> Running Postgres 7.1.3 on RedHat Linux 7.2 kernel 2.4.7
> on an Intel box.
>
> We are thinking about upgrading the box and adding a
> second processor.  Provided that I can physically put
> a second CPU in, how can I configure Postgres to
> work with more than one proc, or better yet, submit jobs
> to the least busiest proc.  What other things should I
> be aware of?

You do nothing.  The kernel will take care of giving each backend
process the idlest processor.  PostgreSQL is multiprocess, as opposed to
the multithreaded model of MySQL and others, so PostgreSQL itself cannot
do anything about the scheduling; it is left to the operating system.

Just be sure to use an SMP kernel.

--
Alvaro Herrera (<alvherre[a]atentus.com>)
"El número de instalaciones de UNIX se ha elevado a 10,
y se espera que este número aumente" (UPM, 1972)




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Shared Memory Sizing
Следующее
От: s
Дата:
Сообщение: ordering error in query?