Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 14:13:22 -0500
From:      Jake Burkholder <jake@locore.ca>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: changes to rc.diskless*
Message-ID:  <20020222141322.A27577@locore.ca>
In-Reply-To: <20020221200050.A78243@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Thu, Feb 21, 2002 at 08:00:51PM -0800
References:  <20020221200050.A78243@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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