Subject: Re: sysctl hw.model considered useless
To: None <port-sparc64@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-sparc64
Date: 12/13/2002 14:37:40
In article <200212131331.gBDDVnW11308@fearless-vampire-killer.waterside.net>,
Rafal Boni <rafal@attbi.com> wrote:
>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.

Why don't we use another sysctl hw.cpuinfo or something
for the cpu information?

christos