Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 03:45:26 +0100
From:      cpghost <cpghost@cordula.ws>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   exit(2) and swap
Message-ID:  <52BCE9C6.50603@cordula.ws>

Next in thread | Raw E-Mail | Index | Archive | Help
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? Is there a knob somewhere to tell
exit(2) to terminate the process WITHOUT swapping
pages back in (simply abandoning them on disk)? It's
annoying having to wait for such a long time and generate
so much disk activity just to exit a process that won't
need those pages anymore anyway.

Oh, this is on FreeBSD 9.2-STABLE r256534 amd64.

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?52BCE9C6.50603>