Skip to content

Commit 5ba09e2

Browse files
Finishing up likwid conversion and retiring all pre-skx intel architectures.
1 parent 105d02a commit 5ba09e2

49 files changed

Lines changed: 285 additions & 1308 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/monitor_variable_rename_map.yaml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,10 @@ types:
2020
amd64_df: amd_x86_uncore_df
2121
amd64_rapl: amd_x86_rapl
2222
intel_rapl: intel_x86_rapl
23-
intel_snb_imc: intel_x86_uncore_imc_snb
24-
intel_ivb_imc: intel_x86_uncore_imc_ivb
25-
intel_hsw_imc: intel_x86_uncore_imc_hsw
26-
intel_bdw_imc: intel_x86_uncore_imc_bdw
2723
intel_skx_imc: intel_x86_uncore_imc_skx
2824
intel_icx_imc: intel_x86_uncore_imc_icx
2925
intel_spr_imc: intel_x86_uncore_imc_spr
30-
intel_snb_cbo: intel_x86_uncore_cbo_snb
31-
intel_ivb_cbo: intel_x86_uncore_cbo_ivb
32-
intel_hsw_cbo: intel_x86_uncore_cbo_hsw
33-
intel_bdw_cbo: intel_x86_uncore_cbo_bdw
3426
intel_skx_cha: intel_x86_uncore_cha_skx
35-
intel_snb_qpi: intel_x86_uncore_qpi_snb
36-
intel_ivb_qpi: intel_x86_uncore_qpi_ivb
37-
intel_hsw_qpi: intel_x86_uncore_qpi_hsw
38-
intel_bdw_qpi: intel_x86_uncore_qpi_bdw
39-
intel_snb_hau: intel_x86_uncore_hau_snb
40-
intel_ivb_hau: intel_x86_uncore_hau_ivb
41-
intel_hsw_hau: intel_x86_uncore_hau_hsw
42-
intel_bdw_hau: intel_x86_uncore_hau_bdw
43-
intel_snb_r2pci: intel_x86_uncore_r2pci_snb
44-
intel_ivb_r2pci: intel_x86_uncore_r2pci_ivb
45-
intel_hsw_r2pci: intel_x86_uncore_r2pci_hsw
46-
intel_bdw_r2pci: intel_x86_uncore_r2pci_bdw
47-
intel_pcu: intel_x86_pcu
4827
arm_imc: arm_aarch64_imc
4928
ib: host_ib
5029
ib_ext: host_ib
@@ -68,6 +47,7 @@ events:
6847
Bounce: bounce
6948
CAS_READS: dram_cas_reads
7049
CAS_WRITES: dram_cas_writes
50+
CPU_PEAK_HBM_BW_BYTES_PER_S: cpu_peak_hbm_bw_bytes_per_s
7151
HBM_CAS_READS: hbm_cas_reads
7252
HBM_CAS_WRITES: hbm_cas_writes
7353
CPU_CLK_UNHALTED_CORE: cycles_unhalted_core
@@ -148,10 +128,6 @@ events:
148128
tx_bytes: sw_tx_bytes
149129
rx_packets: sw_rx_packets
150130
tx_packets: sw_tx_packets
151-
file_event_overrides:
152-
intel_pcu.c:
153-
instr_retired: pcu_ctr0
154-
aperf: pcu_ctr1
155131
host_mem_aliases:
156132
MemTotal: mem_total
157133
MemFree: mem_free

monitor/LIKWID_MIGRATION.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ Intel core and uncore performance counters are collected through **LIKWID PMON**
44
(`likwid_pmc_adapter.c`, `likwid_uncore_adapter.c`). Native MSR, PCI, and MMIO
55
programming in legacy `intel_*` collectors has been retired behind thin wrappers.
66

7+
## Supported generations (SKX+)
8+
9+
Intel uncore collectors and LIKWID uncore profiles target **Skylake-X / Cascade
10+
Lake**, **Ice Lake server**, and **Sapphire Rapids** only.
11+
12+
**Retired (no longer classified or registered):** Sandybridge, Ivybridge,
13+
Haswell, Broadwell — including `intel_x86_pcu` MSR PCU and all
14+
`intel_x86_uncore_*_{snb,ivb,hsw,bdw}` types (IMC, CBO, QPI, HAU, R2PCI).
15+
716
## CPU detection (`cpuid.c`)
817

918
| `processor_t` | CPUID signature |
@@ -13,16 +22,22 @@ programming in legacy `intel_*` collectors has been retired behind thin wrappers
1322
| `ICELAKE_SERVER` | `06_6a`, `06_6c` |
1423
| `SAPPHIRE_RAPIDS` | `06_8f` |
1524

25+
Signatures for SNB/IVB/HSW/BDW (`06_2a`, `06_3a`, `06_3c`, `06_3d`, …) return
26+
unsupported (`processor_t`-1).
27+
1628
## Collector mapping
1729

1830
| `st_name` | LIKWID profile | Notes |
1931
|-----------|----------------|-------|
2032
| `host_cpu_hw` | `likwid_arch_eventset_for_processor()` | Auto-disables `intel_x86_pmc_gpr4/8` when active |
2133
| `intel_x86_rapl` | LIKWID RAPL (`likwid_rapl.c`) | Unchanged |
22-
| `intel_x86_uncore_imc_{snb,ivb,hsw,bdw,skx}` | `MBOX*` / `MDEV*` CAS events | Per-MBOX device rows |
23-
| `intel_x86_uncore_imc_icx` | `MDEV*` DDR bytes | Ice Lake server |
24-
| `intel_x86_uncore_imc_spr` | `MBOX*` + `HBM*` CAS | DDR and HBM on same type |
25-
| `intel_x86_uncore_cbo_*`, `cha_skx`, `qpi_*`, `hau_*`, `r2pci_*` | LIKWID adapter | Auto-disable when no LIKWID event profile |
34+
| `intel_x86_uncore_imc_skx` | `IMC_SKX` (`MBOX*` CAS) | Cascade Lake / SKX server |
35+
| `intel_x86_uncore_imc_icx` | `IMC_ICX` (`MDEV*` DDR bytes) | Ice Lake server |
36+
| `intel_x86_uncore_imc_spr` | `IMC_SPR` (`MBOX*` + `HBM*` CAS) | DDR and HBM on same type |
37+
| `intel_x86_uncore_cha_skx` | `CHA_SKX` (`CBOX*` LLC events) | Trimmed CBOX subset from `skylakeX/CACHES.txt` |
38+
39+
Counter-name → device/key mapping is exercised by `test_likwid_uncore_adapter.c`
40+
via `likwid_uncore_adapter_emit_counter()`.
2641

2742
## Init order
2843

monitor/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ Small, testable units and daemons are split along these lines (non-exhaustive):
4848
| LIKWID core + uncore PMU | `likwid_pmc_adapter.c`, `likwid_uncore_adapter.c`, `likwid_uncore_profiles.c` |
4949

5050
Intel PMU collection uses **LIKWID only** on x86 (see [LIKWID_MIGRATION.md](LIKWID_MIGRATION.md)).
51-
Detected generations include Cascade Lake (`06_55`), Ice Lake server (`06_6a`/`06_6c`),
52-
and Sapphire Rapids (`06_8f`), with SPR DDR+HBM uncore keys (`dram_*`, `hbm_*`).
51+
**Uncore collectors (IMC/CHA)** target SKX+ server parts only: Cascade Lake
52+
(`06_55`), Ice Lake server (`06_6a`/`06_6c`), and Sapphire Rapids (`06_8f`).
53+
Sandybridge, Ivybridge, Haswell, and Broadwell are no longer classified or
54+
registered (`intel_x86_pcu` and pre-SKX uncore types removed). SPR exposes DDR
55+
and HBM uncore keys (`dram_*`, `hbm_*`); `host_roofline_peak` adds
56+
`cpu_peak_hbm_bw_bytes_per_s` (EDAC HBM/DDR split, `peak_calc_version` 2).
5357

5458
## Two-tier collection (fast/slow) and sparse rows
5559

monitor/src/Makefile.am

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -202,31 +202,10 @@ TYPES += \
202202
intel_pmc3_core.c \
203203
intel_uncore_msr_box.c \
204204
intel_uncore_pci.c \
205-
intel_bdw_cbo.c \
206-
intel_bdw_hau.c \
207-
intel_bdw_imc.c \
208205
intel_icx_imc.c \
209206
intel_spr_imc.c \
210-
intel_bdw_qpi.c \
211-
intel_bdw_r2pci.c \
212-
intel_hsw_cbo.c \
213-
intel_hsw_hau.c \
214-
intel_hsw_imc.c \
215-
intel_hsw_qpi.c \
216-
intel_hsw_r2pci.c \
217-
intel_ivb_cbo.c \
218-
intel_ivb_hau.c \
219-
intel_ivb_imc.c \
220-
intel_ivb_qpi.c \
221-
intel_ivb_r2pci.c \
222-
intel_pcu.c \
223207
intel_skx_cha.c \
224-
intel_skx_imc.c \
225-
intel_snb_cbo.c \
226-
intel_snb_hau.c \
227-
intel_snb_imc.c \
228-
intel_snb_qpi.c \
229-
intel_snb_r2pci.c
208+
intel_skx_imc.c
230209
hpcperfstatsd_SOURCES += \
231210
amd64_event_tables.h \
232211
amd64_event_tables.c \
@@ -273,8 +252,7 @@ hpcperfstatsd_SOURCES += \
273252
likwid_uncore_profiles.c \
274253
intel_skx_imc.h \
275254
intel_icx_imc.h \
276-
intel_spr_imc.h \
277-
intel_snb_imc.h
255+
intel_spr_imc.h
278256
endif
279257

280258
if INFINIBAND

monitor/src/intel_bdw_cbo.c

Lines changed: 0 additions & 32 deletions
This file was deleted.

monitor/src/intel_bdw_hau.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

monitor/src/intel_bdw_imc.c

Lines changed: 0 additions & 29 deletions
This file was deleted.

monitor/src/intel_bdw_qpi.c

Lines changed: 0 additions & 32 deletions
This file was deleted.

monitor/src/intel_bdw_r2pci.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

monitor/src/intel_cpuid_match.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,6 @@ processor_t intel_cpuid_sig_to_processor(const char *vendor, const char *sig)
1919
strncmp(sig, "06_2f", 5) == 0)
2020
return WESTMERE;
2121

22-
if (strncmp(sig, "06_3a", 5) == 0 ||
23-
strncmp(sig, "06_3e", 5) == 0)
24-
return IVYBRIDGE;
25-
26-
if (strncmp(sig, "06_2a", 5) == 0 ||
27-
strncmp(sig, "06_2d", 5) == 0)
28-
return SANDYBRIDGE;
29-
30-
if (strncmp(sig, "06_3c", 5) == 0 ||
31-
strncmp(sig, "06_45", 5) == 0 ||
32-
strncmp(sig, "06_46", 5) == 0 ||
33-
strncmp(sig, "06_3f", 5) == 0)
34-
return HASWELL;
35-
36-
if (strncmp(sig, "06_3d", 5) == 0 ||
37-
strncmp(sig, "06_47", 5) == 0 ||
38-
strncmp(sig, "06_4f", 5) == 0)
39-
return BROADWELL;
40-
4122
if (strncmp(sig, "06_4e", 5) == 0 ||
4223
strncmp(sig, "06_5e", 5) == 0)
4324
return SKYLAKE;

0 commit comments

Comments
 (0)