From owner-freebsd-questions Thu Apr 2 00:52:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01059 for freebsd-questions-outgoing; Thu, 2 Apr 1998 00:52:57 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA01037 for ; Thu, 2 Apr 1998 00:52:54 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id AAA08383; Thu, 2 Apr 1998 00:52:50 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Thu, 2 Apr 1998 00:52:50 -0800 (PST) From: Doug White Reply-To: Doug White To: Mik Firestone cc: freebsd-questions@FreeBSD.ORG, "John S. Dyson" Subject: Re: swap_pager: suggest more swap space In-Reply-To: <199804011554.AA17336@interlock2.lexmark.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 1 Apr 1998, Mik Firestone wrote: > I am seeing the message: > swap_pager: suggest more swap space: 126MB > on a frequent bsis and I do not recall having seen that recently. I am using > a new kernel that I CVSUP'd yesterday (3.0-CURRENT). > > I am curious as to why this message is being generated, is it serious and does > it mean 126Mb *more* or total? > > As I have 131Mb swap already I have a very hard time believing I need 126Mb > more. Of course, if I already have 131Mb, I already have 126Mb don't I? Oh - > swapinfo tells me I have 84Mb available. Hm, I'm wondering if a variable is rolling over then. The message appears in src/sys/vm/swap_pager.c, function swap_pager_getswapspace(): static int swap_pager_getswapspace(object, amount, rtval) vm_object_t object; unsigned int amount; daddr_t *rtval; { unsigned location; vm_swap_size -= amount; if (!suggest_more_swap && (vm_swap_size < btodb(cnt.v_page_count * PAGE_SIZE))) { printf("swap_pager: suggest more swap space: %d MB\n", (2 * cnt.v_page_count * (PAGE_SIZE / 1024)) / 1000); suggest_more_swap = 1; } [...] cnt.v_page_count or vm_swap_size may be rolling over. You can disable this by either #ifdef'ing it out or setting suggest_more_swap = 1 before this block. I'll pass this on to John Dyson, or VM guru, for further analysis. > PS - Why, when I search on swap_pager, via your Web page, does it seem to be > replacing the underscore with a space? I got a lot of hits on swap, and a few > more hits on pager, but nothing I could see on swap_pager. Could be an interpolation bug. Try escaping the _ with a \: \_ > PPS - How do I CC: any replies, discussion, etc such that it will be > stored in the archives? Most mail readers do this automatically; just make sure the reply ends up on the list. Pine does this, see my header. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message