Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2002 23:29:21 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Andy Farkas <andyf@speednet.com.au>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/46633: Flase error report in swapon when adding too many disks
Message-ID:  <20021231232531.E51705-100000@gamplex.bde.org>
In-Reply-To: <20021231110927.X35303-100000@hewey.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 31 Dec 2002, Andy Farkas wrote:

> The error is not 'device busy', the error is 'out of swapdisk slots'.
>
> The first time this happened to me, I was stumped as to why it wouldn't
> let me do it; the error message was not intuative at all. Man pages were
> useless, there is no mention of swap device limits there. Only after

From swapon.2:

     [EINVAL]		The system has reached the boot-time limit on the num-
			ber of swap devices, vm.nswapdev.

> It is not common knowledge that Freebsd has a limit to the number of swap
> devices you can use. And it seems that this knowledge has been dropped
> from -current:
>
> $ grep -i swap /sys/i386/conf/NOTES
> $

i386/conf/NOTES only has the i386 parts.

$ grep -i swap /sys/conf/NOTES
# Allow this many swap-devices.
# In order to manage swap, the system must reserve bitmap space that
# scales with the largest mounted swap device multiplied by NSWAPDEV,
# irregardless of whether other swap devices exist or not.  So it
options 	NSWAPDEV=5
# Disable swapping. This option removes all code which actually performs
# swapping, so it's not possible to turn it back on at run-time.
# This is sometimes usable for systems which don't have any swap space
# (see also sysctls "vm.defer_swapspace_pageouts" and
# "vm.disable_swapspace_pageouts")
#options 	NO_SWAPPING
$

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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