Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 May 2007 19:05:40 +0200
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: swap zone exhausted, increase kern.maxswzone
Message-ID:  <op.tru5rrnv8527sy@guido.klop.ws>
In-Reply-To: <20070505165111.GJ17958@funkthat.com>
References:  <5580F93A753EBAEF71B41EE7@ganymede.hub.org> <20070505160655.GA847@xor.obsecurity.org> <F7A69B1C2C53E12D2A2DCB1A@ganymede.hub.org> <20070505165111.GJ17958@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 05 May 2007 18:51:11 +0200, John-Mark Gurney  =

<gurney_j@resnet.uoregon.edu> 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  =

>> <kris@obsecurity.org>
>> 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



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