swap zone exhausted, increase kern.maxswzone
Nick Hibma
nick at van-laarhoven.org
Thu Dec 4 02:31:50 PST 2008
100%|nick at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
> To unsubscribe, send any mail to
> "freebsd-hardware-unsubscribe at freebsd.org"
More information about the freebsd-hardware
mailing list