Skip to content

Align all PMIDs with real Linux PMDA assignments#12

Merged
tallpsmith merged 6 commits intomainfrom
feature/pmid-alignment
Mar 19, 2026
Merged

Align all PMIDs with real Linux PMDA assignments#12
tallpsmith merged 6 commits intomainfrom
feature/pmid-alignment

Conversation

@tallpsmith
Copy link
Copy Markdown
Owner

Summary

  • Fix 47 PMIDs across all 5 domain modules to match real Linux PMDA (src/pmdas/linux/pmda.c)
  • Eliminate invented domain 58 (memory) — all metrics now use domain 60
  • Move disk metrics from invented clusters 4/5 to real CLUSTER_STAT=0
  • Move percpu metrics from invented cluster 10 to real CLUSTER_STAT=0
  • Fix metadata: kernel.uname.* cluster 9→12, hinv.physmem/pagesize to CLUSTER_MEMINFO=1
  • Rename disk.dev.avg_qlendisk.dev.aveq to match real Linux metric name
  • Update CLAUDE.md to document alignment approach (replaces "intentionally non-standard" note)

Domains affected

Domain Metrics fixed Key change
CPU 6 idle/nice/steal items, percpu cluster 10→0
System 1 pswitch item 7→13
Disk 16 clusters 4/5→0, all items, avg_qlen→aveq rename
Memory 13 domain 58→60, clusters realigned
Metadata 9 uname cluster 9→12, hinv items

Test plan

  • All PMID test assertions updated before implementation (TDD)
  • disk.dev.avg_qlendisk.dev.aveq renamed in code, CLI, and all tests
  • 463 unit/integration + 7 E2E tests green
  • ruff, mypy, mandoc all clean
  • ./pre-commit.sh passes

🤖 Generated with Claude Code

Full sweep of all domain PMIDs to match real Linux PMDA.
47 corrections across 5 domains + disk.dev.avg_qlen rename.
CLUSTER_STAT item numbers corrected. Percpu metrics
move from invented cluster 10 to real cluster 0.
Domain 58 eliminated. mem.util/physmem→CLUSTER_MEMINFO=1,
swap.pages→CLUSTER_STAT=0, vmstat→CLUSTER_VMSTAT=28.
kernel.uname.* to CLUSTER_KERNEL_UNAME=12 with correct items.
hinv.physmem/pagesize to CLUSTER_MEMINFO=1, ninterface to CLUSTER_NET_DEV=3.
All disk metrics move to CLUSTER_STAT=0 with correct items.
Metric name matches real Linux disk.dev.aveq.
CLI metric list and test expectations updated for the rename.
CLAUDE.md now documents that all PMIDs match real Linux PMDA.
@tallpsmith tallpsmith merged commit 2802a08 into main Mar 19, 2026
4 checks passed
@tallpsmith tallpsmith deleted the feature/pmid-alignment branch March 19, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant