From owner-freebsd-questions Wed Nov 15 11:52:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1DAA437B4C5 for ; Wed, 15 Nov 2000 11:52:09 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAFJq6i06034; Wed, 15 Nov 2000 11:52:06 -0800 (PST) Date: Wed, 15 Nov 2000 11:52:06 -0800 From: Alfred Perlstein To: Bruce Bauman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NFS swap questions Message-ID: <20001115115206.H830@fw.wintelcom.net> References: <20001115194939.5797B37B4C5@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001115194939.5797B37B4C5@hub.freebsd.org>; from bbauman@wgate.com on Wed, Nov 15, 2000 at 02:49:29PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Bruce Bauman [001115 11:49] wrote: > I want to build a medium-sized cluster of diskless FreeBSD 4.X-stable > machines, all booting from a single FreeBSD server. I want them to swap > over NFS to a single partition on the server. > > Because of the number of clients, I'd like the clients to allocate their > swap files dynamically during boot (e.g. dd if=/dev/zero > of=/nfsswap/swapfile. bs=1M count=256). I intend to do this by > slightly hacking the rc.diskless scripts. How do I then enable swapping on > these files? The available documentation isn't very clear. You need to use vnconfig to configure the file as a device, then you can swap to it. > Second question: Are there any recommended options for the filesystem on > which the swap files will live? Should it be async and noatime? Any other > performance tuning tricks? noatime might help, but async isn't needed unless you need creation of the file to be very fast (creation of the file name, not file contents). instead of async, consider softupdates. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message