Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 17:58:07 -0500
From:      Charles Swiger <cswiger@mac.com>
To:        Robert Leftwich <freebsd@rtl.fmailbox.com>
Cc:        "freebsd-questions@freebsd.org List" <freebsd-questions@freebsd.org>
Subject:   Re: Memory leak?
Message-ID:  <5A1E3F19-24CD-42ED-A945-A37E57EB8748@mac.com>
In-Reply-To: <1139868809.6940.254283466@webmail.messagingengine.com>
References:  <1139792505.30118.254198744@webmail.messagingengine.com> <43F0434F.2000703@locolomo.org> <1139826617.10634.254226042@webmail.messagingengine.com> <20060213214053.GA20537@panix.com> <1139868809.6940.254283466@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 13, 2006, at 5:13 PM, Robert Leftwich wrote:
> After 1 dataset it is:
>
>     Mem: 107M Active, 1919M Inact, 158M Wired, 16K Cache, 214M Buf,  
> 570M
>     Free
>     Swap: 4068M Total, 4068M Free
>
> which totals 2968M
>
> While running on the 6th dataset:
>
>     Mem: 1032M Active, 1045M Inact, 260M Wired, 145M Cache, 214M Buf,
>     4664K Free
>     Swap: 4068M Total, 108K Used, 4068M Free
>
> which totals 2700.6M

Possibly your database is using lots of SysV shared memory, which  
would explain why "wired" is going up so much, otherwise perhaps  
something in the kernel is leaking.  "sysctl kern.malloc" might be  
interesting to consider.

> Are my assumptions incorrect, should the totals displayed by top be at
> least approximately equal?

Exclude the "buf" entry from your math, that will be closer.  You  
should be looking further down at the SIZE column to see which  
processes are using so much RAM...

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A1E3F19-24CD-42ED-A945-A37E57EB8748>