Re: vm.swap_reserved toooooo large?

看板FB_stable作者時間15年前 (2010/12/16 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/13 (看更多)
--lXBubL3wS507qnlw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 15, 2010 at 03:43:56PM +0200, George Mamalakis wrote: > 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, >=20 > My problem was not that the program was force-killed, my problem was=20 > that the system reserved 500G+ of swap, even though the total size is 4G. Read tuning(7), in particular, the description of vm.overcommit sysctl. --lXBubL3wS507qnlw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk0Ix+8ACgkQC3+MBN1Mb4gPjQCeJ2dn1EvNvyyxvaUc6dn1acIo wUEAnjujMA2If/mtVwQIwqJ6npMFmUzK =lNou -----END PGP SIGNATURE----- --lXBubL3wS507qnlw--
文章代碼(AID): #1D2G9d7- (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1D2G9d7- (FB_stable)