Date: Sun, 15 Mar 2009 10:13:01 +0100 From: cpghost <cpghost@cordula.ws> To: freebsd-questions@freebsd.org Subject: Speeding up exit(2)? Message-ID: <20090315091301.GB1051@phenom.cordula.ws>
next in thread | raw e-mail | index | archive | help
I've noticed that when a huge, partially or totally swapped out process exits, there is a lot of disk activity going on, before the process truly dies. This is not necessarily due to sync(2), because it also happens with CPU bound processes that write very little output. Not sure what's really going on there, but apparently, the process reads in pages from swap that have been paged out previously (according to top(1)). Couldn't this be avoided and the paged out pages simply discarded without reading them back in? Or do those pages contain necessary data at this point (page directories etc.)? -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090315091301.GB1051>