From owner-freebsd-stable@FreeBSD.ORG Sat May 5 17:18:07 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D352016A400 for ; Sat, 5 May 2007 17:18:07 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 925F713C46E for ; Sat, 5 May 2007 17:18:07 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (uk1ztokj8sdtow7m@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l45HI6LI088557; Sat, 5 May 2007 10:18:06 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l45HI678088556; Sat, 5 May 2007 10:18:06 -0700 (PDT) (envelope-from jmg) Date: Sat, 5 May 2007 10:18:06 -0700 From: John-Mark Gurney To: "Marc G. Fournier" Message-ID: <20070505171806.GK17958@funkthat.com> Mail-Followup-To: "Marc G. Fournier" , pluknet , freebsd-stable@freebsd.org References: <5580F93A753EBAEF71B41EE7@ganymede.hub.org> <20070505160655.GA847@xor.obsecurity.org> <576837AA4FFCB91BF5B92A61@ganymede.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <576837AA4FFCB91BF5B92A61@ganymede.hub.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: pluknet , freebsd-stable@freebsd.org Subject: Re: swap zone exhausted, increase kern.maxswzone X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 17:18:07 -0000 Marc G. Fournier wrote this message on Sat, May 05, 2007 at 13:42 -0300: > > On 05/05/07, Marc G. Fournier wrote: > >> # sysctl kern.maxswzone > >> sysctl: unknown oid 'kern.maxswzone' > > > > It is a /boot/loader.conf variable, not in sysctl MIB. > > Hrmmm ... then how do I know what to increase it to, if I don't know what it > currently set to? :( I thought all the /boot/loader.conf variables were > viewable read only via sysctl ... ? kinda like nmbclusters: > > # sysctl -a | grep nmbcl > kern.ipc.nmbclusters: 25600 > > I can't set it via sysctl, it has to be in /boot/loader.conf ... but I can at > least view its value ... Take a peek at sys/kern/subr_param.c: #ifdef VM_SWZONE_SIZE_MAX maxswzone = VM_SWZONE_SIZE_MAX; #endif TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone); and then: crijmgmac,ttyp8,~/FreeBSD/HEAD/src/sys,507$find . -type f | xargs grep VM_SWZONE_SIZE_MAX ./amd64/include/param.h:#ifndef VM_SWZONE_SIZE_MAX ./amd64/include/param.h:#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024) ./boot/common/loader.8:.Dv VM_SWZONE_SIZE_MAX . ./conf/options:VM_SWZONE_SIZE_MAX opt_param.h ./i386/include/param.h:#ifndef VM_SWZONE_SIZE_MAX ./i386/include/param.h:#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024) ./kern/subr_param.c:#ifdef VM_SWZONE_SIZE_MAX ./kern/subr_param.c: maxswzone = VM_SWZONE_SIZE_MAX; So, it appears that loader(8) isn't correct: swap the system can support. This value is specified in bytes of KVA space and defaults to around 70MBytes. Care It appears that when dillion made the change almost 5 years ago, he didn't update loader(8)... I'll fix that... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."