Re: two memory-consuming postgres processes

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: two memory-consuming postgres processes
Дата
Msg-id dcc563d10805021230i5916561k3962a41e2afa894c@mail.gmail.com
обсуждение исходный текст
Ответ на two memory-consuming postgres processes  (Alexy Khrabrov <deliverable@gmail.com>)
Ответы Re: two memory-consuming postgres processes  (Alexy Khrabrov <deliverable@gmail.com>)
Список pgsql-performance
On Fri, May 2, 2008 at 1:24 PM, Alexy Khrabrov <deliverable@gmail.com> wrote:
> Greetings -- I have an UPDATE query updating a 100 million row table, and
> allocate enough memory via shared_buffers=1500MB.  However, I see two
> processes in top, the UPDATE process eating about 850 MB and the writer
> process eating about 750 MB.  The box starts paging.   Why is there the
> writer taking almost as much space as the UPDATE, and how can I shrink it?

Shared_buffers is NOT the main memory pool for all operations in
pgsql, it is simply the buffer pool used to hold data being operated
on.

Things like sorts etc. use other memory and can exhaust your machine.
However, I'd like to see the output of vmstat 1 or top while this is
happening.

How much memory does this machine have?

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

Предыдущее
От: Alexy Khrabrov
Дата:
Сообщение: two memory-consuming postgres processes
Следующее
От: Alexy Khrabrov
Дата:
Сообщение: Re: two memory-consuming postgres processes