[7045] in testers

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

Re: sysinfo missing

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Thu May 26 06:15:22 2005

Message-Id: <200505261015.j4QAF7K9027923@bearing-an-hourglass.mit.edu>
From: Jonathon Weiss <jweiss@MIT.EDU>
To: Garry Zacheiss <zacheiss@MIT.EDU>
cc: Jonathon Weiss <jweiss@MIT.EDU>, testers@MIT.EDU
In-reply-to: Your message of "Thu, 26 May 2005 02:27:46 EDT."
             <200505260627.j4Q6RkmM004684@brad-majors.mit.edu> 
Date: Thu, 26 May 2005 06:15:06 -0400

> The easy way to do this is with psrinfo, although that does change the
> format of the output:
> 
> [zacheiss@brad-majors] ~$ psrinfo -vp | grep MHz
>   UltraSPARC-IIIi (portid 0 impl 0x16 ver 0x24 clock 1062 MHz)
> 
> would be the new output.  Alternately, one could use prtdiag, which has
> slightly less scary looking output:
> 
> [zacheiss@brad-majors] ~$ prtdiag | grep "MHz.*SUNW,"
>   0  1062 MHz  1MB         SUNW,UltraSPARC-IIIi  2.4    on-line     MB/0
> 
> (the weird grep argument is to not pick up a stray "MHz" which is a
> column heading in later output).  Or, for the ultimate in backwards
> compatability, we can massage prtdiag output into the same format as
> sysinfo:
> 
> [zacheiss@brad-majors] ~$ prtdiag | grep "MHz.*SUNW," | sed -e 's/SUNW,/Sun /' | awk '{print "    cpu"$1 " is a \"" $5,$6"\" "$2,$3 " CPU"}'
>     cpu0 is a "Sun UltraSPARC-IIIi" 1062 MHz CPU
> 
> Does anyone (Greg?) have a preferred course of action?

Well, I do have a script that expects the current format, but I'm
probably the only one, and it's not like it's hard to change.  The
unadulterated prtdiag info is interesting in that it contains what I
assume is the cache size.  I think the unadulterated prtdiag output is
my first choice, and fully backwards compatible my second.

	Jonathon


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