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

From Florian Weimer
Subject Re: heavy swapping, not sure why
Date
Msg-id 82hb4zl77z.fsf@mid.bfk.de
Whole thread Raw
In response to Re: heavy swapping, not sure why  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: heavy swapping, not sure why  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
* 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.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Enable PITR in Postgresql
Next
From: Scott Marlowe
Date:
Subject: Re: heavy swapping, not sure why