From owner-freebsd-stable@FreeBSD.ORG Sat May 5 17:05:49 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 CAF8E16A408 for ; Sat, 5 May 2007 17:05:49 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id 9188813C480 for ; Sat, 5 May 2007 17:05:49 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out0.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1HkNhc-0007dY-EW for ; Sat, 05 May 2007 19:05:48 +0200 Received: (qmail 68614 invoked from network); 5 May 2007 17:05:43 -0000 Received: from localhost.thuis.klop.ws (HELO guido.klop.ws) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; 5 May 2007 17:05:43 -0000 Date: Sat, 05 May 2007 19:05:40 +0200 To: freebsd-stable@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <5580F93A753EBAEF71B41EE7@ganymede.hub.org> <20070505160655.GA847@xor.obsecurity.org> <20070505165111.GJ17958@funkthat.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <20070505165111.GJ17958@funkthat.com> User-Agent: Opera Mail/9.20 (FreeBSD) Subject: Re: swap zone exhausted, increase kern.maxswzone X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:05:49 -0000 On Sat, 05 May 2007 18:51:11 +0200, John-Mark Gurney = wrote: > Marc G. Fournier wrote this message on Sat, May 05, 2007 at 13:15 -030= 0: >> - --On Saturday, May 05, 2007 12:06:55 -0400 Kris Kennaway = >> >> wrote: >> >> > On Sat, May 05, 2007 at 12:38:39PM -0300, Marc G. Fournier wrote: >> >> >> >> What exactly does that one mean? I've searched Google, and all I'= m = >> finding >> >> is a pointer to swap_pager.c, but nothing else ... >> >> >> >> What does that one mean? What would cause that sort of error? >> > >> > You need to increase the kern.maxswzone tunable to enable more spac= e > ^^^^^^^ >> > for active swap. >> >> Apparently that doesn't exist on 6-STABLE, although its generating th= e = >> error? >> >> # sysctl kern.maxswzone >> sysctl: unknown oid 'kern.maxswzone' > > A tunable doesn't need to exist in the sysctl domain... simply add it= > to /boot/loader.conf as documented in conf/NOTES or = > defaults/loader.conf... I think the default size is this. $ ronald@guido [/usr/src/sys] grep --mmap -r VM_SWZONE . ./amd64/include/param.h:#ifndef VM_SWZONE_SIZE_MAX ./amd64/include/param.h:#define VM_SWZONE_SIZE_MAX (32 * 1024 * 102= 4) ./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 * 102= 4) ./kern/subr_param.c:#ifdef VM_SWZONE_SIZE_MAX ./kern/subr_param.c: maxswzone =3D VM_SWZONE_SIZE_MAX; Ronald. -- = Ronald Klop Amsterdam, The Netherlands