Date: Thu, 4 Feb 1999 23:46:27 -0500 (EST) From: Brian Feldman <green@unixhelp.org> To: current@FreeBSD.ORG Subject: Re: swapper BIG problems Message-ID: <Pine.BSF.4.05.9902042344560.9552-100000@janus.syracuse.net> 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
If I do a little
--- swap_pager.c.orig Thu Feb 4 23:30:43 1999
+++ swap_pager.c Thu Feb 4 23:31:22 1999
@@ -203,8 +203,10 @@
swp_sizecheck()
{
if (vm_swap_size < nswap_lowat) {
+/*
if (swap_pager_full == 0)
printf("swap_pager: out of swap space\n");
+*/
swap_pager_full = 1;
} else if (vm_swap_size > nswap_hiwat) {
swap_pager_full = 0;
@@ -442,9 +444,7 @@
{
daddr_t blk;
- if ((blk = blist_alloc(swapblist, npages)) == SWAPBLK_NONE) {
- printf("swap_pager_getswapspace: failed\n");
- } else {
+ if ((blk = blist_alloc(swapblist, npages)) != SWAPBLK_NONE) {
vm_swap_size -= npages;
swp_sizecheck();
}
My system survives through the run quite well. It does in fact seem I was
correct in my educated guess, but if anyone knows differently, (Matt, John
Dyson) please let me know! Right now it seems the printf()s can cause the
deadlock.
Brian Feldman _ __ ___ ___ ___
green@unixhelp.org _ __ ___ | _ ) __| \
http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) |
FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/
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?Pine.BSF.4.05.9902042344560.9552-100000>
