Oshi: Map Intel Processor Identifier to CPU name

Created on 19 May 2019  路  8Comments  路  Source: oshi/oshi

https://github.com/hirschmann/nbfc/blob/master/Core/Plugins/OpenHardwareMonitor/Hardware/CPU/IntelCPU.cs

As it is my wondering day ;-)
That could be only me, but having a name like "Haswell" for an Intel CPU, for example, wouldn't be more easily readable?

https://github.com/hirschmann/nbfc/tree/master/Core/Plugins/OpenHardwareMonitor/Hardware/CPU

PR welcome good first issue new feature

Most helpful comment

Implemented in #894

All 8 comments

This looks like a good add-in to toss into the oshi-demo project, as it appears the naming can be done by parsing the processor identifier. It's similar to the "is this a VM" method.

Note you can't just port the code directly over, as it's MPL. So we'd have to independently write the source code based on other documentation.

Feel free to contribute!

I can work this one. Looking at the links above I'm not seeing where microarchitecture codename is actually stored as part of CPU info. Does this imply that we'd want to maintain a lookup based on the full model string? Or, am I overlooking something?

The way I thought to do it was to map the appropriate bits of the Processor ID to the processor using the tables at this link (you'd need to hard code the lookup).

Actually, we're not guaranteed the endianness of the Processor ID so it'd be better to use the getFamily() and getModel() fields.

Actually the Intel link in the previous comment looks a bit dated. Here's another option.

I should have at least a first pass at a PR this week. Had some family in from out of town this weekend so playing tour guide until tomorrow morning.

Implemented in #894

Was this page helpful?
0 / 5 - 0 ratings