From owner-freebsd-hardware@FreeBSD.ORG Thu Dec 4 10:44:53 2008 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B48491065670 for ; Thu, 4 Dec 2008 10:44:53 +0000 (UTC) (envelope-from freebsd-hardware@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 37E6E8FC14 for ; Thu, 4 Dec 2008 10:44:52 +0000 (UTC) (envelope-from freebsd-hardware@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L8BhS-0007Gn-It for freebsd-hardware@freebsd.org; Thu, 04 Dec 2008 10:44:50 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 10:44:50 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 10:44:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hardware@freebsd.org From: Ivan Voras Date: Thu, 04 Dec 2008 11:44:43 +0100 Lines: 69 Message-ID: References: <49377719.2020605@ccstores.com> <200812041131.37944.nick@van-laarhoven.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF83778B632A5310696357F1E" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: <200812041131.37944.nick@van-laarhoven.org> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: swap zone exhausted, increase kern.maxswzone X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 10:44:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF83778B632A5310696357F1E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Nick Hibma wrote: > 100%|nick@hind:/sys-CURRENT % grep -r maxswzone . > ./conf/NOTES:# 2. In /boot/loader.conf, set the tunables kern.maxswzon= e, > ./kern/.svn/text-base/subr_param.c.svn-base:int=20 > maxswzone; /* max swmeta KVA storage */ > ./kern/.svn/text-base/subr_param.c.svn-base:SYSCTL_INT(_kern, OID_AUTO,= =20 > maxswzone, CTLFLAG_RDTUN, &maxswzone, 0, > ./kern/.svn/text-base/subr_param.c.svn-base: maxswzone =3D=20 > VM_SWZONE_SIZE_MAX; > ./kern/.svn/text-base/subr_param.c.svn-base: =20 > TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone); > ./kern/subr_param.c:int maxswzone; /* max swmeta K= VA=20 > storage */ > ./kern/subr_param.c:SYSCTL_INT(_kern, OID_AUTO, maxswzone, CTLFLAG_RDTU= N,=20 > &maxswzone, 0, > ./kern/subr_param.c: maxswzone =3D VM_SWZONE_SIZE_MAX; > ./kern/subr_param.c: TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone)= ; > ./boot/forth/.svn/text-base/loader.conf.svn-base:#kern.maxswzone=3D"" = =20 > # Set the max swmeta KVA storage > ./boot/forth/loader.conf:#kern.maxswzone=3D"" # Set the max= swmeta=20 > KVA storage > ./boot/common/.svn/text-base/loader.8.svn-base:.It Va kern.maxswzone > ./boot/common/loader.8:.It Va kern.maxswzone >=20 >=20 > So: >=20 > It is a kenv var not a sysctl. It's default is VM_SWZONE_SIZE_MAX=20 Which is: /sys> grep -rn VM_SWZONE_SIZE_MAX * amd64/include/param.h:129:#ifndef VM_SWZONE_SIZE_MAX amd64/include/param.h:130:#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024) If I'm reading this correctly in the context of the OP, it costs more than 32 MB to keep track of 20 GB of swap space :) (I'm not suprised, just noticing) --------------enigF83778B632A5310696357F1E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJN7SbldnAQVacBcgRAqPqAJ90vnsQTRa4MV6kGyOegk3Z2u+hFgCfcLhs bkerCqR2eY/LHWWUB5xUQ/0= =hXmo -----END PGP SIGNATURE----- --------------enigF83778B632A5310696357F1E--