Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2008 11:31:37 +0100
From:      Nick Hibma <nick@van-laarhoven.org>
To:        freebsd-hardware@freebsd.org
Subject:   Re: swap zone exhausted, increase kern.maxswzone
Message-ID:  <200812041131.37944.nick@van-laarhoven.org>
In-Reply-To: <49377719.2020605@ccstores.com>
References:  <49377719.2020605@ccstores.com>

next in thread | previous in thread | raw e-mail | index | archive | help
100%|nick@hind:/sys-CURRENT % grep -r maxswzone .
./conf/NOTES:# 2.  In /boot/loader.conf, set the tunables kern.maxswzone,
./kern/.svn/text-base/subr_param.c.svn-base:int 
maxswzone;                      /* max swmeta KVA storage */
./kern/.svn/text-base/subr_param.c.svn-base:SYSCTL_INT(_kern, OID_AUTO, 
maxswzone, CTLFLAG_RDTUN, &maxswzone, 0,
./kern/.svn/text-base/subr_param.c.svn-base:    maxswzone = 
VM_SWZONE_SIZE_MAX;
./kern/.svn/text-base/subr_param.c.svn-base:    
TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone);
./kern/subr_param.c:int maxswzone;                      /* max swmeta KVA 
storage */
./kern/subr_param.c:SYSCTL_INT(_kern, OID_AUTO, maxswzone, CTLFLAG_RDTUN, 
&maxswzone, 0,
./kern/subr_param.c:    maxswzone = 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=""             
# Set the max swmeta KVA storage
./boot/forth/loader.conf:#kern.maxswzone=""             # Set the max swmeta 
KVA storage
./boot/common/.svn/text-base/loader.8.svn-base:.It Va kern.maxswzone
./boot/common/loader.8:.It Va kern.maxswzone


So:

It is a kenv var not a sysctl. It's default is VM_SWZONE_SIZE_MAX I think 
and you can find more documentation in loader(8).

So type in

	man loader

and off you go!

Nick


> "swap zone exhausted, increase kern.maxswzone"
>
> I encountered this today on FreeBSD 7.1B2
> With an HP DL165G5  dual quad-core AMD 64
> 8Gb ram .. 20Gb swap space
>
> Google doesn't bring up much more than similar inquiries
> in mid 2007, where the inquiry was met with "increase the value".
>
> I cannot find anywhere how to determine the existing value or how
> to alter it.
>
> When running "sysctl kern.maxswzone"
> I am greeted with sysctl: unknown oid 'kern.maxswzone'
>
> What am I doing wrong?
>
> TIA
> Jim Pazarena
> _______________________________________________
> freebsd-hardware@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
> To unsubscribe, send any mail to
> "freebsd-hardware-unsubscribe@freebsd.org"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812041131.37944.nick>