Date: Wed, 15 Dec 2010 12:26:24 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no> To: stable@freebsd.org Subject: Re: vm.swap_reserved toooooo large? Message-ID: <alpine.BSF.2.00.1012151220260.10096@mail.fig.ol.no> In-Reply-To: <4D08A0A1.40205@eng.auth.gr> References: <4D08A0A1.40205@eng.auth.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-228856486-1292412384=:10096 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Wed, 15 Dec 2010 13:04+0200, George Mamalakis wrote: > I was testing a program that would exhaust all my memory (in C++), > and when this would happen, it would call set_new_handler() along > with one of my functions that would inform the user about the lack > of memory and then it would exit the program. Instead, the program > was force-killed by the kernel (signal 9) and I was informed that: If all your process' memory is exhausted, then there is no memory left for the runtime system for doing I/O and the other stuff you want. Next, unless I'm on drugs, maybe you should call set_new_handler() before you actually run out of memory. Just my $0.02. Trond. -- ---------------------------------------------------------------------- Trond Endrestøl | Trond.Endrestol@fagskolen.gjovik.no ACM, NAS, NUUG, SAGE, USENIX | FreeBSD 8.1-STABLE & Alpine 2.00 --2055831798-228856486-1292412384=:10096--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1012151220260.10096>