[25732] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 9.2.28: athinfo

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Fri Jun 25 17:35:40 2004

Message-Id: <200406252135.i5PLZQlA025535@multics.mit.edu>
To: bugs@mit.edu
Date: Fri, 25 Jun 2004 17:35:26 -0400
From: "Jacob Morzinski" <jmorzins@mit.edu>
Errors-To: bugs-bounces@mit.edu

System name:		multics.mit.edu
Type and version:	UltraAX-i2 9.2.28 (with mkserv)
Display type:		unknown


This is halfway between a bug and a suggestion...

The "cpuspeed" query in athinfo is slow, when querying Suns
for their information.  Checking the athinfo.defs file, it
looks like it runs sysinfo and generates close to a thousand
lines of output, only to throw it all away by grepping for
a single line.

I don't pretend to understand sysinfo well, but is there any
reason not to use the "-class device" command line flags?
It only generates around 20 lines, runs much faster, and
still generates the lines that contain the cpuspeed info.

A comparison of times (on multics.mit.edu):
	athena% time tcsh -f -c 'repeat 10 sysinfo > /dev/null'
	16.60u 17.34s 0:46.49 73.0%
	athena% time tcsh -f -c 'repeat 10 sysinfo -class device > /dev/null'
	3.30u 10.20s 0:20.07 67.2%


My suggestion is that it may be worth changing athinfo.defs
to query cpuspeed using:
	cpuspeed        /usr/athena/bin/sysinfo -class device | grep MHz

Regards,
 -Jacob

home help back first fref pref prev next nref lref last post