swap zone exhausted, increase kern.maxswzone

Ronald Klop ronald-freebsd8 at klop.yi.org
Sat May 5 17:05:49 UTC 2007


On Sat, 05 May 2007 18:51:11 +0200, John-Mark Gurney  
<gurney_j at resnet.uoregon.edu> wrote:

> Marc G. Fournier wrote this message on Sat, May 05, 2007 at 13:15 -0300:
>> - --On Saturday, May 05, 2007 12:06:55 -0400 Kris Kennaway  
>> <kris at 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 space
> 					    ^^^^^^^
>> > for active swap.
>>
>> Apparently that doesn't exist on 6-STABLE, although its generating the  
>> 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 at 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 * 1024)
./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 * 1024)
./kern/subr_param.c:#ifdef VM_SWZONE_SIZE_MAX
./kern/subr_param.c:    maxswzone = VM_SWZONE_SIZE_MAX;

Ronald.

-- 
  Ronald Klop
  Amsterdam, The Netherlands


More information about the freebsd-stable mailing list