X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2497653479 for ; Wed, 27 Apr 2005 15:29:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62466-02 for ; Wed, 27 Apr 2005 18:29:42 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by svr1.postgresql.org (Postfix) with ESMTP id 26C225345F for ; Wed, 27 Apr 2005 15:29:41 -0300 (ADT) Received: from jefftrout.com ([24.61.201.181]) by comcast.net (sccrmhc12) with SMTP id <2005042718294101200dkio5e>; Wed, 27 Apr 2005 18:29:41 +0000 Received: (qmail 27083 invoked from network); 27 Apr 2005 18:30:19 -0000 Received: from waltham-nat.ma.lycos.com (HELO ?10.124.7.194?) (209.202.205.1) by 192.168.0.109 with SMTP; 27 Apr 2005 18:30:19 -0000 In-Reply-To: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com> References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7a617f4f4c47b0235c56d4a0ec624e51@torgo.978.org> Content-Transfer-Encoding: 7bit Cc: From: Jeff Subject: Re: Why is this system swapping? Date: Wed, 27 Apr 2005 14:29:42 -0400 To: "Anjan Dave" X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.187 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP, RCVD_IN_SORBS_DUL X-Spam-Level: X-Archive-Number: 200504/740 X-Sequence-Number: 12137 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 http://www.jefftrout.com/ http://www.stuarthamm.net/