From owner-freebsd-bugs Mon Dec 30 17:44:38 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DA7337B401 for ; Mon, 30 Dec 2002 17:44:35 -0800 (PST) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00BAB43E4A for ; Mon, 30 Dec 2002 17:44:34 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242]) by franky.speednet.com.au (8.12.6/8.12.6) with ESMTP id gBV1iW6I065021 for ; Tue, 31 Dec 2002 12:44:32 +1100 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242]) by hewey.af.speednet.com.au (8.12.6/8.12.6) with ESMTP id gBV1iUc9035489 for ; Tue, 31 Dec 2002 11:44:31 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Tue, 31 Dec 2002 11:44:30 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/46633: Flase error report in swapon when adding too many disks In-Reply-To: <200212310040.gBV0e3SC098849@freefall.freebsd.org> Message-ID: <20021231110927.X35303-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 30 Dec 2002, David Schultz wrote: > Thus spake Willem Jan Withagen : > > When adding too many disk for swapping the error reported is a 'strange one' > > Nicer would be to respond something like: > > All swapdisk slots are occupied. > > If swapon(2) returned EBUSY in this case, you'd get the message > 'Device busy' without having to make a special case out of it. > Does that sound better? 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 asking the maillists did I find out you have to look in LINT to find that there is a limit. Nowhere does it say how to find out what the current limit is. 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 $ Have a happy new year! -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message