From: Jeff <threshar@torgo.978.org>
To: Anjan Dave <adave@vantage.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why is this system swapping?
Date: Wed, 27 Apr 2005 14:29:42 -0400
Message-ID: <7a617f4f4c47b0235c56d4a0ec624e51@torgo.978.org> (raw)
In-Reply-To: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com>
References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com>
On Apr 27, 2005, at 1:48 PM, Anjan Dave wrote:
> As you can see the system starts utilizing swap at some point, with so
> many processes. Some time ago we had decided to keep the connections
> from the pool open for longer
You've shown the system has used swap but not that it is swapping.
Having swap in use is fine - there is likely plenty of code and whatnot
that is not being used so it dumped it out to swap. However if you are
actively moving data to/from swap that is bad. Very bad. Especially on
linux.
To tell if you are swapping you need to watch the output of say, vmstat
1 and look at the si and so columns.
Linux is very swap happy and likes to swap things for fun and profit.
--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/http://www.stuarthamm.net/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: threshar@torgo.978.org, adave@vantage.com
Subject: Re: Why is this system swapping?
In-Reply-To: <7a617f4f4c47b0235c56d4a0ec624e51@torgo.978.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox