Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2011 22:12:27 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Mark Terribile <materribile@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Kernel swap zone exhausted, what is the max allowed? FBSD 7.2
Message-ID:  <AANLkTiniHbg2W%2BXOHd-oAoqNDd03-v5=BKSBkZQSPwjm@mail.gmail.com>
In-Reply-To: <41786.47452.qm@web110309.mail.gq1.yahoo.com>
References:  <20110225212941.BC56910656C4@hub.freebsd.org> <41786.47452.qm@web110309.mail.gq1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 25, 2011 at 5:11 PM, Mark Terribile <materribile@yahoo.com>wrote:

> I don't explicitly set kern.maxswzone anywhere and it is at its apparent
> maximum and default of 32M (33554432).
>
> Does anyone know if the maximum can be increased?  (What actually is it
> used for?)  I do use lots of memory-intensive processes, most of them idle
> much of the time.  I see that it's involved with the stuff in the src/sys/vm
> directory.  Would someone give me a quick precis or pointer to what I need
> to study to understand what would happen if I tried to boost this to 64M?
>

Well

vbox% sysctl -ad kern.maxswzone
kern.maxswzone: Maximum memory for swap metadata

man 8 loader gives:
     kern.maxswzone
                   Limits the amount of KVM to be used to hold swap meta
                   information, which directly governs the maximum amount of
                   swap the system can support.  This value is specified in
                   bytes of KVA space and defaults to 32MBytes on i386 and
                   amd64.  Care should be taken to not reduce this value
such
                   that the actual amount of configured swap exceeds 1/2 the
                   kernel-supported swap.  The default of 32MB allows the
ker-
                   nel to support a maximum of ~7GB of swap.  Only change
this
                   parameter if you need to greatly extend the KVM
reservation
                   for other resources such as the buffer cache or
                   kern.ipc.nmbclusters.  Modifies kernel option
                   VM_SWZONE_SIZE_MAX.



-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiniHbg2W%2BXOHd-oAoqNDd03-v5=BKSBkZQSPwjm>