Re: heavy swapping, not sure why

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: heavy swapping, not sure why
Дата
Msg-id CAOR=d=2j0UDG1G_VMJPm9+=d_Q85ZevfvcV+0+hvD2fF7ycw0g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: heavy swapping, not sure why  (Sim Zacks <sim@compulab.co.il>)
Ответы Re: heavy swapping, not sure why  ("mark" <dvlhntr@gmail.com>)
Список pgsql-general
On Tue, Aug 30, 2011 at 2:50 AM, Sim Zacks <sim@compulab.co.il> wrote:
>
> On a machine with lots of memory, I've run into pathological behaviour
> with both the RHEL 5 and Ubuntu 10.04 kernels where the kswapd starts
> eating up CPU and swap io like mad, while doing essentially nothing.
> Setting swappiness to 0 delayed this behaviour but did not stop it.
> Given that I'm on a machine with 128G ram, I just put "/sbin/swapoff
> -a" in /etc/rc.local and viola, problem solved.
>
> I've tried running without swap and the problem is if you actually do run
> out of memory then the process killer can take out your postgresql.

My postgres is configured to never use more than 10 or 20 gig at max
load.  That leaves about 80+Gig for caching the database by the
kernel.  work_mem is pretty small (8MB) given the maximum connections
(1000) So 8Gig if everybody sorts at once.  Even under very heavy load
memory usage has never really gone anywhere near that high.

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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: heavy swapping, not sure why
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: heavy swapping, not sure why