x86info processor topology parsing.

Uncategorized

Today was my last working day of the year, as I’ve accumulated some ridiculous amount of time off that needs to be taken.
Before I disappeared for three weeks, I wanted to get something finished that I’ve been working on for a while. I got close too.
The development tree of x86info (ie, git or snapshots) now has a nifty new feature where after parsing all the processors it finds, it determines how they’re connected, and prints out what it thinks the topology looks like.

So where 1.25 used to print out garbage like..

APIC ID: 0x1 Package: 0 Core: 0 SMT ID 1

The new code prints out something much more readable.

Summary:
This system has 1 dual-core processor with hyperthreading (2 threads per core) running at an estimated 2.95GHz
Total processor threads: 4

I’ve thrown it at several different kinds of processor topologies (single/dual/quad core), with and without hyperthreading, and it seems to do the right thing in all cases. Currently this code is Intel only. It may do the right thing on other vendors in some situations, but there are definitly cases where it doesn’t.

I’ll tackle the other vendors in the new year. If you find any Intel systems where it doesn’t print out the right thing, drop me an email with x86info -a –debug. (Don’t email me non-Intel ones, unless it does something really nasty like segfault).

Though as I’m on vacation, it’ll probably be the new year before I fix it up, unless I get bored.
When the new year comes and I’ve added the other vendor support, I’ll roll out a 1.26 release with this and whatever else I have queued up.

Happy holidays.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Comments Off