Date: 5 Feb 1999 16:56:55 +1100 From: "John Saunders" <john.saunders@nlc.net.au> To: Brian Feldman <green@unixhelp.org> Cc: freebsd-current@FreeBSD.ORG Subject: Re: swapper BIG problems Message-ID: <19990205055655.18199.qmail@nhj.nlc.net.au> In-Reply-To: <Pine.BSF.4.05.9902042306310.7300-100000@janus.syracuse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In nlc.lists.freebsd-current you wrote: > It succeeds as per allocating the memory until the swap is full. But, when Malloc's don't cause swap space allocation. Theoretically a process can malloc all of it's virtual address space so long as it doesn't touch the pages. > it starts the reading/freeing, the swapins cause hundreds of > swap_pager_getswapspace: failed Once you actually start touching the pages does swap space (or real memory) get allocated. However by now you have malloc'ed more data than exists in physical swap space, and the swapper can't do anything about it except throw away your dirty pages without saving them. > This will put the system in a deadlock if, for instance, this program is run > in an xterm and an X server is running locally, and it's too swapped out to > be used, but the memory program displays things to the term (catch-22). This is a problem. Possibly the print commands should be rate limited. If they go to the console how do they end up in an xterm? Possibly your syslog.conf, or you run xconsole. Cheers. -- +------------------------------------------------------------+ . | John Saunders - mailto:john@nlc.net.au (EMail) | ,--_|\ | - http://www.nlc.net.au/ (WWW) | / Oz \ | - 02-9489-4932 or 041-822-3814 (Phone) | \_,--\_/ | NHJ NORTHLINK COMMUNICATIONS - Supplying a professional, | v | and above all friendly, internet connection service. | +------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990205055655.18199.qmail>