From owner-freebsd-questions Thu Nov 28 20:46:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48BB637B401 for ; Thu, 28 Nov 2002 20:46:22 -0800 (PST) Received: from bloodwood.adelaide.edu.au (bloodwood.adelaide.edu.au [129.127.43.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C04B43E9C for ; Thu, 28 Nov 2002 20:46:21 -0800 (PST) (envelope-from tpeter01@redtail.its.adelaide.edu.au) Received: from redtail.its.adelaide.edu.au ([129.127.55.134]) by bloodwood.adelaide.edu.au (Netscape Messaging Server 4.15) with ESMTP id H6BMKW00.4L4; Fri, 29 Nov 2002 15:16:08 +1030 Received: from redtail.its.adelaide.edu.au (localhost [127.0.0.1]) by redtail.its.adelaide.edu.au (8.12.6/8.12.6) with ESMTP id gAT4k3Fj030038; Fri, 29 Nov 2002 15:16:03 +1030 (CST) (envelope-from tpeter01@redtail.its.adelaide.edu.au) Received: (from tpeter01@localhost) by redtail.its.adelaide.edu.au (8.12.6/8.12.6/Submit) id gAT4k3Nw030037; Fri, 29 Nov 2002 15:16:03 +1030 (CST) Date: Fri, 29 Nov 2002 15:16:03 +1030 From: Tim Peters To: Murray Taylor Cc: freebsd-questions@freebsd.org Subject: Re: swap constantly 50% used Message-ID: <20021129044603.GC29677@adelaide.edu.au> References: <20021129042047.GB29677@adelaide.edu.au> <004501c29760$05622d50$fc1e000a@MJTDEVNULL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004501c29760$05622d50$fc1e000a@MJTDEVNULL> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Nov 29, 2002 at 03:30:18PM +1100, Murray Taylor wrote: > As requested > > bcall@flea(~/c-code)ttyp1 > ps axl > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME > COMMAND > 0 8246 1 0 2 0 114548 804 select Ss ?? 7:07.52 > /usr/local/sbin/nmbd -D > 0 9911 1 0 2 0 4732 2000 select Ss ?? 11:48.00 > /usr/local/sbin/httpd (selected output) Note the difference between VSZ and RSS. VSZ is the amount of memory that the process has mapped, RSS is what is physically in memory. So parts are being dumped to swap as memory fills up. Freebsd will swap out parts that aren't being used. This is not a bad thing, unless your machine is using swap a lot (run top or systat -vm to see what's happening in real time) - in which case you need to get more ram (or reduce the use of it). However, that looks like a particularly high value for nmbd there. Maybe it's a memory leak (or not) be a memory leak. You could probably get some of your swap back by restarting samba :-) > -----Original Message----- > From: Tim Peters [mailto:tim@lost.net.au] > Sent: Friday, November 29, 2002 3:21 PM > To: Murray Taylor > Cc: freebsd-questions@freebsd.org > Subject: Re: swap constantly 50% used > > > On Fri, Nov 29, 2002 at 03:17:38PM +1100, Murray Taylor wrote: > > What could cause 50% of the swap to be constantly 'in use' ? > > [cut] > > > bcall@flea(~/c-code)ttyp1 > ps ax > > [cut] > > Try "ps axl" which will show more information, such as memory use. -tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message