Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 13:36:13 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: exit(2) and swap
Message-ID:  <20131227133613.0252110f@gumby.homeunix.com>
In-Reply-To: <52BCE9C6.50603@cordula.ws>
References:  <52BCE9C6.50603@cordula.ws>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 27 Dec 2013 03:45:26 +0100
cpghost wrote:

> Hello,
> 
> I'm wondering (again) how exit(2) and swap interact.
> 
> I have some process (rtin from ports/tin) taking a LONG
> time to exit, if it has a lot of pages swapped out.
> Looking at top(1), it seems as if that process tries to
> swap pages in again from disk, before shutting down.
> 
> Is it just rtin doing something funny before exiting,
> or is that a general problem with FreeBSD's exit(2)
> implementation? 

I think this commonly happens to some extent when a program shuts down
cleanly. Some pages need to be read at shut-down, often a lot of
destructors (or equivalent) get run that do a lot of gratuitous
cleaning-up.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20131227133613.0252110f>