Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 1997 12:45:42 +0930
From:      Mike Smith <mike@smith.net.au>
To:        dg@root.com
Cc:        Mike Smith <mike@smith.net.au>, hackers@FreeBSD.ORG
Subject:   Re: Odd out-of-swap condition; ideas? 
Message-ID:  <199710160315.MAA00331@word.smith.net.au>
In-Reply-To: Your message of "Wed, 15 Oct 1997 18:14:29 MST." <199710160114.SAA11661@implode.root.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >At the time of that last ps listing, there were only about 40 procs in 
> >the system total, with the display (40M) and the X server (~5M) being 
> >the two largest.
> >
> >One other idea that had occurred to me; does the VSZ include the size 
> >of the stack?
> 
>    Yes, but it doesn't include the space of any mmapped files.

Damn.  IDL wouldn't know what mmap() was if it jumped up and bit it.
It might be something to do with the Linux libc allocator, but I didn't 
think gnumalloc was that chummy with the VM system.

Mark Slemko sayeth:
> All I can say is that I see similar things on a news server running
> 2.2-stable from late August.
>
> In my case, it is a process (innfeed) that allocates and deallocates
> large amounts of memory (perhaps a couple of gigs) over its life
> of a couple of days.  More and more swap gets used up with no visable
> process using it.  Killing innfeed restores it.
>
> Note that when innfeed is killed, it goes through a graceful shutdown
> lasting several minutes.  During that shutdown, it free()s memory
> as it finishes things.  The swap space used decreases in a way that
> looks loosely proportional to the amount of memory being deallocated,
> but ~3x the amount.  It is not a case where the swap only comes back
> when the process completely exits.

Hmm, interesting.  This looks *very* similar.  It prettymuch rules out 
the applications and libraries in both cases, as there's nothing in 
common between the two.

Is it possible that there's some way in which too much swap might 
become attached to a given extent of a process' space?  Is there any 
way of examining the swap allocation for a given process?

mike






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