Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 13:36:13 +0000
From:      RW <>
Subject:   Re: exit(2) and swap
Message-ID:  <>
In-Reply-To: <>
References:  <>

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

Want to link to this message? Use this URL: <>