Speeding up exit(2)?
cpghost at cordula.ws
Sun Mar 15 02:13:04 PDT 2009
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
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.)?
Cordula's Web. http://www.cordula.ws/
More information about the freebsd-questions