From owner-freebsd-questions Mon Jan 28 8:36:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by hub.freebsd.org (Postfix) with ESMTP id 0818D37B41C for ; Mon, 28 Jan 2002 08:35:06 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maile.telia.com (8.11.6/8.11.6) with ESMTP id g0SGZ4W14659 for ; Mon, 28 Jan 2002 17:35:04 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id RAA06575 for ; Mon, 28 Jan 2002 17:35:03 +0100 (CET) Received: (qmail 85878 invoked by uid 1001); 28 Jan 2002 16:35:01 -0000 Date: Mon, 28 Jan 2002 17:35:01 +0100 From: Erik Trulsson To: Chris Corayer Cc: "'questions@FreeBSD.ORG'" Subject: Re: Swap space questions. Message-ID: <20020128163501.GA85786@student.uu.se> Mail-Followup-To: Chris Corayer , "'questions@FreeBSD.ORG'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 28, 2002 at 11:07:28AM -0500, Chris Corayer wrote: > I have an old Alpha Server. It currently has 6 disks in it. I also have > another dual P3 system with five disks. How many of those disks can/should > have swap space? I recall reading in the handbook somewhere that it there > should be no more than 4. Why not? By default the kernel cannot handle more than 4 swap devices at once. To change this you need to recompile the kernel after adding the line options NSWAPDEV=4 to your kernel config file. (With '4' changed to the number of swapdevices you need.) Increasing this value increases the memory needed by the kernel so don't make it too large. > > I've also read that the swap should not be the first partition/slice? on the > disk. Does this apply only for the first disk with / on it, or for all of > them? AFAIK you can put the swap wherever you want on the disk. For example I have the following layout: (output from 'disklabel ad0') 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 163840 409600 4.2BSD 0 0 0 # (Cyl. 27*- 37*) b: 409600 0 swap # (Cyl. 0 - 27*) c: 16510977 0 unused 0 0 # (Cyl. 0 - 1091*) e: 1331200 573440 4.2BSD 0 0 0 # (Cyl. 37*- 125*) f: 3809280 1904640 4.2BSD 1024 8192 24 # (Cyl. 125*- 377*) g: 10797057 5713920 4.2BSD 0 0 0 # (Cyl. 377*- 1091*) Note that swap is indeed the first thing on the disk. This has not caused any problems for me. > > Can anyone point me to more definitive answers? > > Thank you in advance. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message