Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Paul de Vrieze <pauldv@g.o>
Subject: Re: Network configuration and bash
Date: Fri, 16 Feb 2007 22:20:54 +0100
On Friday 09 February 2007, Roy Marples wrote:
> On Thu, 8 Feb 2007 14:49:57 -0700
>
> "Daniel Robbins" <drobbins.daniel@...> wrote:
> > In other words:
> >
> > busybox + single rcS file = fastest and simplest, smallest, best for
> > very small filesystems, not as flexible
> >
> > bash + gentoo baselayout = most flexible, biggest, slower, best for
> > feature-rich systems
> >
> > busybox + gentoo baselayout = ?
>
> FreeBSD sh + Gentoo baselayout = cold boot in around 4 seconds
> Going to multi-user from single user after a boot is under 2 seconds
> (times measured from when init starts rc - the difference is probably
> because the all my local mounts are still mounted)
>
> I have this running on a 2Ghz P4 Laptop right now. Admittedly, no
> network scripts are started expect for the loopback interface, but all
> default scripts + openvpn, ssh, dnsmasq, metalog and vixie-cron are
> started.
>
> Ladies and gentlemen, this has always been about one thing - speed.
> Ever since I got my 300Mhz Sparc64 to play around with FreeBSD, I've
> realised that baselayout + bash is just too damn slow.
>
> I think that's worth it.

If that's what you want, don't use bash in the first place. I would agree that 
using bash for parsing is a pain in the but Daniel is right in that you're 
not going to be able to maintain posix compatibility. If you find an 
acceptable way to add the functionality to the network configuration files, 
it is ok, but sacrificing usability over an unmaintainable improvement 
doesn't work. 

If you want to speed up boot, the dependency generation is probably what's 
eating most time.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@g.o
Homepage: http://www.devrieze.net
Attachment:
pgpA7j7T8nhhU.pgp (PGP signature)
Replies:
Re: Network configuration and bash
-- Roy Marples
Re: Network configuration and bash
-- Daniel Robbins
References:
Network configuration and bash
-- Roy Marples
Re: Network configuration and bash
-- Daniel Robbins
Re: Network configuration and bash
-- Roy Marples
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Network configuration and bash
Next by thread:
Re: Network configuration and bash
Previous by date:
Re: Google Summer of Code 2007
Next by date:
Re: Google Summer of Code 2007


Updated Jun 23, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.