Subject: Re: w cmd on energy saving machines: problem and proposed solution
To: Todd Vierling <tv@wasabisystems.com>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-userlevel
Date: 06/20/2001 11:07:49
--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 19, 2001 at 05:11:31PM -0400, Todd Vierling wrote:
> On Fri, 15 Jun 2001, Ignatios Souvatzis wrote:
>=20
> : - /dev is mounted noatime (I want to make the disk spin down when unuse=
d, and
> :   I was told to set noatime for this)
>=20
> Possibly easier solution to this:  in an early-start rc.d script, mount a
> MFS over /dev and extract a vanilla "MAKEDEV all" tree with tar(1), from a
> file like /etc/boot-dev.tar.gz.  Making a "BEFORE: root" script should be
> sufficient.=20

How do I ensure that it is called late enough? See below for what I did:

> Not only can you use devmtime and atime on that, you get
> low-latency mtime/atime updates, and can mount your / nodev (or even ro).
>=20
> In fact, that's what I do for my netboot machines (for both /dev and /var=
),
> which only need /dev/console in the NFS root and have a RO /--and once I =
fix
> init(1), won't need /dev/console either.  I just happen to be running 1.4=
.x
> on the netboot boxen still, so I haven't converted the procedure to rc.d
> yet....  :)

Hehe - I did.

My script is=20

# PROVIDE: sharedroot
# REQUIRE: root

and I changed MOUNTCRITLOCAL to

mountcritlocal:# REQUIRE: root sharedroot

Actually, I tried both tar and sh MAKEDEV (where MAKEDEV is copied to /sbin=
 on
my setup), and found that sh MAKEDEV is not slower.

My original question applies to my home, diskful sharks. I want them to boot
a bit faster than running MAKEDEV or extracting the /dev.=20

Regards,
	Ignatios

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBOzBnyTCn4om+4LhpAQGgzAgAo51JlCbsftjioq/AGhc2/UQRmXl41irA
ftDHlAO5os1uhFaIHn9qz9V60l9AFeorJ6ksnS3e+XEo767YTP6wDDRIlxOvn22j
OihIfYeRADbXgCzk+xs/pIIiFMmwp0ou1V8XRHNvLhdN8dmzhU/W6eth6eOMKhKG
n7cd7apnRcWG9wHTmD5Mr2ZnFQ8bamamwBLa579sD/kIDneaYBTAFauSJBOS3QuG
uSdgiH1n93JEVgKo4qV+vn0wJk/m9ZqZBSPi9EqbyX/U7Y5JeRPPTWGoTWSVVikR
942CGVZ11uSmKRa1uUfaXj3xHridDG+RmiE+K98DH88pW9hH7wV7Kw==
=2wjo
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--