Date: Wed, 15 Dec 2010 15:43:56 +0200 From: George Mamalakis <mamalos@eng.auth.gr> To: =?UTF-8?B?VHJvbmQgRW5kcmVzdMO4bA==?= <Trond.Endrestol@fagskolen.gjovik.no> Cc: stable@freebsd.org Subject: Re: vm.swap_reserved toooooo large? Message-ID: <4D08C61C.4090006@eng.auth.gr> In-Reply-To: <alpine.BSF.2.00.1012151220260.10096@mail.fig.ol.no> References: <4D08A0A1.40205@eng.auth.gr> <alpine.BSF.2.00.1012151220260.10096@mail.fig.ol.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 15/12/2010 13:26, Trond Endrestøl wrote: > 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. > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Trond, My problem was not that the program was force-killed, my problem was that the system reserved 500G+ of swap, even though the total size is 4G. -- George Mamalakis IT Officer Electrical and Computer Engineer (Aristotle Un. of Thessaloniki), MSc (Imperial College of London) Department of Electrical and Computer Engineering Faculty of Engineering Aristotle University of Thessaloniki phone number : +30 (2310) 994379
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D08C61C.4090006>