Speeding up exit(2)?

cpghost cpghost at cordula.ws
Sun Mar 15 11:25:43 PDT 2009

On Sun, Mar 15, 2009 at 05:57:47PM +0000, Kris Kennaway wrote:
> Wojciech Puchar wrote:
> >> By this stage mozilla is about 150MB with about 60MB resident, and swap
> >> is pushing 200MB.  *seriously* paging, just on flipping to another tab.
> >> Now close mozilla and watch top while it's shutting down.  Go and pour
> >> yourself a cuppa, there's no hurry ..
> > 
> > just tested with opera - the same. crappy software rulez ;)
> Yes, clearly web browsers should be optimized for speed of exiting.

That's correct.

Normally systematic freeing of resources is one of the best ways
to prevent memory leaks in long running programs, so it can't be
too bad to free/delete all malloc-ed/new-ed chunks upon exit.

But here, the opposite may be better: there should be a faster
way to exit, bypassing all manual and automatic cleaners. But that's
up to every single program and not OS'es business.

Thanks again for all the insight.

> Kris


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

More information about the freebsd-questions mailing list