Subject: Re: sysctl hw.model considered useless
To: matthew green <mrg@eterna.com.au>
From: Rafal Boni <rafal@attbi.com>
List: port-sparc64
Date: 12/13/2002 08:31:49
In message <18268.1039782747@splode.eterna.com.au>, mrg writes: 

->    It's different on different ports. On i386 it reports the CPU model
->    because that's the only sensible thing to do. It usually cannot
->    determince whether it's a Compaq Deskpro or an IBM Netfinity Server.
->    
->    On the other architectures I've tested it reports the computer model,
->    with the CPU model in parantheses:
->    
->    hpcmips:
->    IBM WorkPad z50 2601 1AU (NEC VR4121 rev0.0 131.072MHz)
->    
->    hp300:
->    HP 9000/400 (50MHz MC68030 CPU+MMU, 50Mhz MC68882 FPU, 32k physical-addre
-> ss cache)
-> 
-> 
-> hmm.. perhaps i should make it become, eg:
-> 
-> 	hw.model = SUNW,SPARCstation-20 (TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on
-> -chip FPU)
-> 	hw.model = SUNW,Ultra-1 (SUNW,UltraSPARC @ 143.002 MHz, version 0 FPU)
-> 
-> i have it working with what i formerly posted, eg:
-> 
-> 	# sysctl hw.model
-> 	hw.model = SUNW,SPARCstation-10

I think it'd be nice, since many of the machines can come in different CPU
model/CPU speed/CPU cache configurations.  OTOH, doing some makes it a bit
harder to parse this stuff out, but it's probably not a hude deal.

--rafal

----
Rafal Boni                                                     rafal@attbi.com
  We are all worms.  But I do believe I am a glowworm.  -- Winston Churchill