From owner-freebsd-current Thu Feb 4 20:46:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA24509 for freebsd-current-outgoing; Thu, 4 Feb 1999 20:46:23 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA24500 for ; Thu, 4 Feb 1999 20:46:21 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id XAA09667 for ; Thu, 4 Feb 1999 23:46:27 -0500 (EST) Date: Thu, 4 Feb 1999 23:46:27 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: current@FreeBSD.ORG Subject: Re: swapper BIG problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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