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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131227133613.0252110f>