Re: heavy swapping, not sure why - Mailing list pgsql-general

From Allan Kamau
Subject Re: heavy swapping, not sure why
Date
Msg-id CAF3N6oTsY+fNyViZEmt8n66t5-HFkzEQW0KM0LbQDdVKoycyQw@mail.gmail.com
Whole thread Raw
In response to Re: heavy swapping, not sure why  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
On Tue, Aug 30, 2011 at 10:39 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Tue, Aug 30, 2011 at 12:54 AM, Florian Weimer <fweimer@bfk.de> wrote:
>> * Scott Marlowe:
>>
>>> 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.
>>
>> Was this NUMA machine?  Some older kernels can only migrate pages
>> between nodes through swap.
>
> 48 core AMD Magny Cours.  I also had to turn off  zone reclaim mode on
> it or it would slow to a crawl as the OS started to cache more and
> more data.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>


I have experienced such behaviour on Ubuntu 64bit OS but not on Fedora
64bit OS. Try installing Fedora on a test machine and see if you run
into the high memory consumption problem(s).

Allan.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: heavy swapping, not sure why
Next
From: Sim Zacks
Date:
Subject: Re: heavy swapping, not sure why