why does swap not recover?

Поиск
Список
Период
Сортировка
От Richard Yen
Тема why does swap not recover?
Дата
Msg-id 04C98397-261D-4A50-99CB-61FA3E4A974B@richyen.com
обсуждение исходный текст
Ответы Re: why does swap not recover?  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: why does swap not recover?  (Scott Carey <scott@richrelevance.com>)
Re: why does swap not recover?  (Craig James <craig_james@emolecules.com>)
Re: why does swap not recover?  (Josh Berkus <josh@agliodbs.com>)
Re: why does swap not recover?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
Hi everyone,

We've recently encountered some swapping issues on our CentOS 64GB Nehalem machine, running postgres 8.4.2.
Unfortunately,I was foolish enough to set shared_buffers to 40GB.  I was wondering if anyone would have any insight
intowhy the swapping suddenly starts, but never recovers? 

<img src="http://richyen.com/i/swap.png">

Note, the machine has been up and running since mid-December 2009.  It was only a March 8 that this swapping began, and
it'snever recovered. 

If we look at dstat, we find the following:

<img src="http://richyen.com/i/dstat.png">

Note that it is constantly paging in, but never paging out.  This would indicate that it's constantly reading from
swap,but never writing out to it.  Why would postgres do this? (postgres is pretty much the only thing running on this
machine).

I'm planning on lowering the shared_buffers to a more sane value, like 25GB (pgtune recommends this for a Mixed-purpose
machine)or less (pgtune recommends 14GB for an OLTP machine).  However, before I do this (and possibly resolve the
issue),I was hoping to see if anyone would have an explanation for the constant reading from swap, but never writing
back.

--Richard

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Why Wal_buffer is 64KB
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: why does swap not recover?