Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2000 11:52:06 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Bruce Bauman <bbauman@wgate.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NFS swap questions
Message-ID:  <20001115115206.H830@fw.wintelcom.net>
In-Reply-To: <20001115194939.5797B37B4C5@hub.freebsd.org>; from bbauman@wgate.com on Wed, Nov 15, 2000 at 02:49:29PM -0500
References:  <20001115194939.5797B37B4C5@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Bruce Bauman <bbauman@wgate.com> [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.<ip-address> 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




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