From owner-freebsd-questions@FreeBSD.ORG Sun Mar 15 18:25:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D390106564A for ; Sun, 15 Mar 2009 18:25:43 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id CF6978FC0A for ; Sun, 15 Mar 2009 18:25:42 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id 750C133884; Sun, 15 Mar 2009 19:25:39 +0100 (CET) Date: Sun, 15 Mar 2009 19:25:38 +0100 From: cpghost To: Kris Kennaway Message-ID: <20090315182538.GA1375@phenom.cordula.ws> References: <20090315120024.E004210656DB@hub.freebsd.org> <20090316023903.T95588@sola.nimnet.asn.au> <49BD419B.1040608@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49BD419B.1040608@FreeBSD.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-questions@freebsd.org Subject: Re: Speeding up exit(2)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 18:25:43 -0000 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 -cpghost. -- Cordula's Web. http://www.cordula.ws/