-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CPUID alternative solution, major changes are as follows: (#1029)
1. Move original Intel specific script and output file to `data/intel_cpu` directory. 2. Move legacy power model csv files to `data/legacy` directory. 3. Obsolete `normalized_cpu_arch.csv`, introduce `cpus.yaml` to involve more data mapping. 4. Change `cpuid -1 |grep uarch` output parsing logic to align with cpuid source logic. 5. Introduce `github.com/klauspost/cpuid/v2` library to replace the raw `lscpu` command call. 6. Add new function(getCPUMircoarchitecture) to fetch uarch from `cpus.yaml`. 7. For CPU models not matched in `cpus.yaml`, read `/sys/devices/cpu/pmu_name` as uarch. 8. Align with latest Linux kernel for Intel CPU family models. 9. Update README document and Dockerfile accordingly. 10. Update kepler validator side code accordingly. Signed-off-by: Jie Ren <[email protected]>
- Loading branch information
Showing
37 changed files
with
3,561 additions
and
1,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# CPU Model | ||
[cpu_model.csv](./cpu_model.csv) relates CPU model family found in `/proc/cpuinfo` to its architecture. | ||
[cpus.yaml](./cpus.yaml) lists CPU information includes: `Core`, `Uarch`, `Family`, `Model` and `Stepping`. | ||
|
||
`Core` refers to the CPU core name. | ||
|
||
`Family`, `Model` and `Stepping` are information included in /proc/cpuinfo, could be fetched by Golang libraries such as "github.com/klauspost/cpuid/v2". | ||
|
||
`Uarch` refers to the CPU microarchitecture. | ||
|
||
Help needed for any vendors' CPU Models data missing in this file when you test Kepler on your platform. | ||
|
||
Please feel free to raise issue in Kepler for your case. | ||
|
||
[power_model.csv](./legacy/power_model.csv) and [power_data.csv](./legacy/power_data.csv) are legacy data files for Kepler CPU power model. |
Oops, something went wrong.