Tuesday, March 13, 2007

Comparing various OpenBSD sysctl hw dumps (real and virtual)

I'm even less capable of anything insightful tonight than normal (daughter still sick, Vicks fumes making me nauseous--or perhaps it was finally watching Borat tonight--not sure which scene was more more amazing: the "motel fight," proposing to Pamela Anderson or, speaking in tongues, although the bear scaring the children from the ice cream truck was fun, too), but needed to get something technical on the top blog.

To clear my head, did a quick pre-OpenBSD 4.1 install just now (nothing more pleasantly mind-numbering than OS installs and yes, there was a branch this week) on VMWare Fusion which has been rock solid with XP, 2K, Ubuntu, and even OpenBSD. Yeah, who needs this fancy Parallels crap.... Coherence... Whatever...

Oh and while I'm ranting... I certainly think outing OpenBSD bugs is fun (ah the sweet naivety of my first year in STAT, posting from from Cisco account and I didn't even get a nasty note from Jim Duncan) I think Bejtlich is off the mark on his "preview" IPv6 stack issues, 2007 is not going to be 1997. Codenomicon has had their IPv6 suite for ages and all the big boys have sent their Euros east and have been silently fixing "obscure" IPv6 bugs for years now.

Since the hardware info provided by sysctl has been of interest lately (for inventory control purposes) I thought I'd make some comparisons:

OpenBSD 4.0 on an old P-133 (my firewall)

# sysctl -a hw
hw.machine=i386
hw.model=Intel Pentium (P54C) ("GenuineIntel" 586-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=49901568
hw.usermem=49635328
hw.pagesize=4096
hw.disknames=wd0,fd0
hw.diskcount=2
hw.cpuspeed=133


OpenBSD 4.1 (GENERIC #1435) on MacBook under VMWare

# sysctl -a hw
hw.machine=i386
hw.model=Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=267939840
hw.usermem=267931648
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.cpuspeed=1996
hw.vendor=VMware, Inc.
hw.product=VMware Virtual Platform
hw.version=None
hw.serialno=VMware-56 4d 9f f4 34 21 d5 19-b7 47 9e d3 a1 a6 02 7c
hw.uuid=564d9ff4-3421-d519-b747-9ed3a1a6027c


OpenBSD 3.9 (VMWare)

# sysctl -a hw
hw.machine=i386
hw.model=Intel(R) Pentium(R) D CPU 2.80GHz ("GenuineIntel" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=402169856
hw.usermem=401952768
hw.pagesize=4096
hw.disknames=cd0,sd0,fd0
hw.diskcount=3
hw.cpuspeed=2792


OpenBSD 4.0 (VMWare)

# sysctl -a hw
hw.machine=i386
hw.model=Intel(R) Pentium(R) D CPU 2.80GHz ("GenuineIntel" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=402157568
hw.usermem=401932288
hw.pagesize=4096
hw.disknames=cd0,sd0,fd0
hw.diskcount=3
hw.cpuspeed=2793
hw.vendor=VMware, Inc.
hw.product=VMware Virtual Platform
hw.version=None
hw.serialno=VMware-56 4d 26 c0 f0 df 4d ad-f3 5d a8 6c d0 4e 1f 57
hw.uuid=564d26c0-f0df-4dad-f35d-a86cd04e1f57


So the trend is definitely toward more CPU information (and at least on one of my Optiplex's at work, the hw.serialno field actually matches one of those Dell stickers on the box) don't know if this is the case for other vendors as well.

Boy that was boring, now I can sleep.

No comments: