Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 1997 18:05:03 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        peter.jeremy@alcatel.com.au (Peter Jeremy)
Cc:        freebsd-stable@freefall.FreeBSD.ORG
Subject:   Re: Swap leaks (was Re: Memory usage on NFS server)
Message-ID:  <199704292305.SAA07175@dyson.iquest.net>
In-Reply-To: <199704292201.IAA11983@gsms01.alcatel.com.au> from Peter Jeremy at "Apr 30, 97 08:01:22 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, 29 Apr 1997 10:03:57 +0200 (SAT), John Hay
> <jhay@zibbi.mikom.csir.co.za> wrote:
> > Inn then typically show a usage of
> >~70M according to top, but as soon as I kill and restart it the swap
> >usage go down to ~5M.
> 
> Some of the BSD/386-derived Unices have a memory leak in the VM
> subsystem which matches the above behaviour: When a process fork()d
> whilst the system was paging, swap space allocated to the child was
> not released until the _parent_ exit()d.  This primarily bit long-
> running daemons that fork() regularly: cron, inetd, innd and sendmail.
> 
> I thought FreeBSD 2.1 and 2.2 included fixes for this VM problem.
> Can someone please confirm this.  (In which case John's problem is
> something else).
> 
The swap-leak problem is fixed as completely as resonable.  Once
swap space is allocated for a given object in a process, it stays
around until the object is destroyed.  Swap space is not recovered
when pages are paged back in.  That is a performance design
decision.

John




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