Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 15:16:03 +1030
From:      Tim Peters <tim@lost.net.au>
To:        Murray Taylor <murraytaylor@bytecraftsystems.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: swap constantly 50% used
Message-ID:  <20021129044603.GC29677@adelaide.edu.au>
In-Reply-To: <004501c29760$05622d50$fc1e000a@MJTDEVNULL>
References:  <20021129042047.GB29677@adelaide.edu.au> <004501c29760$05622d50$fc1e000a@MJTDEVNULL>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021129044603.GC29677>