From owner-freebsd-current Fri Feb 22 11:13: 8 2002 Delivered-To: freebsd-current@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id 85B1337B400; Fri, 22 Feb 2002 11:13:04 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id g1MJDN227797; Fri, 22 Feb 2002 14:13:23 -0500 (EST) (envelope-from jake) Date: Fri, 22 Feb 2002 14:13:22 -0500 From: Jake Burkholder To: "David O'Brien" Cc: current@FreeBSD.ORG Subject: Re: changes to rc.diskless* Message-ID: <20020222141322.A27577@locore.ca> References: <20020221200050.A78243@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020221200050.A78243@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Thu, Feb 21, 2002 at 08:00:51PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Thu, Feb 21, 2002 at 08:00:51PM -0800, David O'Brien said words to the effect of; > The existing very bazaar and local policy in rc.diskless1 is Just Wrong; > and looks like no other Unix diskless configuration I've ever seen. I > plan on committing this patch to negate this. Yay! > > The use of an MFS /var should also be settable. Otherwise installing > ports(packages) is just a total PITA. > > > Index: rc.diskless2 > =================================================================== > RCS file: /home/ncvs/src/etc/rc.diskless2,v > retrieving revision 1.15 > diff -u -r1.15 rc.diskless2 > --- rc.diskless2 26 Dec 2001 17:18:39 -0000 1.15 > +++ rc.diskless2 22 Feb 2002 03:56:18 -0000 > @@ -56,7 +56,7 @@ > fi > > echo "+++ mount_md of /var" > -mount_md ${varsize:=65536} /var 1 > +mount_md ${varsize:=32m} /var 1 One problem with making the mds so big is that it uses type malloc which afaict uses malloc(9) to get the backing store. This was the point of the M_SHORTWAIT patch posted a while ago, if you ask for too much with M_WAITOK you might go to sleep and never be woken up. It might be better to use type vnode with file or swap based backing store. sparc64 machines tend to have more ram than older pcs that this might also be used on :) my $0.02. Jake > > echo "+++ populate /var using /etc/mtree/BSD.var.dist" > /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var > @@ -83,7 +83,7 @@ > # so if /var/tmp == /tmp, then you don't get a vi.recover. > # > if [ ! -h /tmp ]; then > - mount_md ${tmpsize:=20480} /tmp 2 > + mount_md ${tmpsize:=64m} /tmp 2 > chmod 01777 /tmp > fi > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message