Date: Sun, 15 Mar 2009 13:48:09 +0100 (CET) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: cpghost <cpghost@cordula.ws> Cc: freebsd-questions@freebsd.org Subject: Re: Speeding up exit(2)? Message-ID: <alpine.BSF.2.00.0903151346530.41533@wojtek.tensor.gdynia.pl> In-Reply-To: <20090315105206.GB1282@phenom.cordula.ws> References: <20090315091301.GB1051@phenom.cordula.ws> <alpine.BSF.2.00.0903151027050.41063@wojtek.tensor.gdynia.pl> <20090315100141.GA1282@phenom.cordula.ws> <alpine.BSF.2.00.0903151106210.41179@wojtek.tensor.gdynia.pl> <20090315105206.GB1282@phenom.cordula.ws>
next in thread | previous in thread | raw e-mail | index | archive | help
>> it swapped a lot, then wrote "end" and immediately exited. > > Hmmm... yes, it's strange. With malloc-ed space, exit is also very > fast. On a 2 GB machine with amd64, exit is almost immediate: try mallocing 2 million times 2 kilobytes and fill. maybe exit first free all malloc'ed space which is definitely nonsense. > > If I find a way to isolate the problem, I'll post it here. maybe your problematic program uses atexit and exit actually calls part of it?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0903151346530.41533>