Repository navigation
feat(ops): CDI v1.1.0 (drop --net=host, iommufd, NUMA) & direct gRPC/SeqLock/AER tpu-exporter (#3, #21) - #24
Open
saariuslystoned wants to merge 18 commits into
Open
saariuslystoned wants to merge 18 commits into
saariuslystoned wants to merge 18 commits into
Conversation
…HM exporter, and Prometheus alerts
…aults, Ironwood topology/duty-cycle, DRA v1, PCIe ancestry)
…, Ironwood visibility/per-core duty cycle, SHM expiry, PCIe slice annotations)
…fallback, worker env, 96 GiB Ironwood chiplet HBM, Spot max_over_time, slice alias verification, DRA locality prereqs, closID rules)
… runtime mapping only, SHM pool capacity with SHM usage, K8s 1.34 DRA Topology Manager note)
…ted slice topologies, raw-ID duty-cycle layout, bare custom tpu-info-bin, safe metadata Request error handling)
…sibility ordinals, Ironwood all function completeness, set-exact duty-cycle join, proxy bypass for GCP metadata)
…ip-id-map docs, local gRPC channel credentials + proxy disable, SHM total pairing with SHM usage, verified stable numeric range aliases)
…pu-info import on >=0.14.2, require verified chip IDs for all visibility masks, strict exact-set Ironwood duty-cycle join)
…TYPE on isolated presets, domain-scoped Ironwood pairing, iommufd compat symlink auto-detection)
…ice selector capacity
…y guard, auto cdev probe, and C11 SHM atomics
…pology for all bounds
…s, and preserve Ironwood per-core duty on partial HBM
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardens the Pillar 6
ops/tpu-cdi/andops/tpu-exporter/stack (#3, #21) fromc212e34:ops/tpu-cdi/(CNCF CDI v1.1.0 + Network Isolation)cdiVersion: "1.1.0"(includingintelRdtandadditionalGidsschema validation while keeping--check-hoststrictly locked toenvanddeviceNodes).--net=host/hostNetwork: truefor single-host slices by injectingMEGASCALE_COORDINATOR_ADDRESS=127.0.0.1:8353,TPU_HOST_BOUNDS=1,1,1, slice-scopedTPU_CHIPS_PER_HOST_BOUNDS,TPU_VISIBLE_DEVICES, andTPU_SKIP_MDS_QUERY=1into each CDI device entry'scontainerEdits.env(with--network-mode isolated|hostacrossgenerate,sync, anddocker-args).iommufddual-path auto-detection (/dev/iommu+/dev/vfio/devices/vfioN) with fallback to legacy VFIO (/dev/vfio/vfio+/dev/vfio/<iommu_group>), plus--iommu-devoverride and--check-hostverification.numa0,numa1,0-3,4-7) forv6e-8(0000:00:*vs0000:80:*) and enforces domain boundaries during--check-host.0x0075(tpu7x, marked pending live hardware confirmation per Ironwood (tpu7x-standard-4t): Enumerate 8 logical devices (dual-chiplet D2D pairing) across ggml-cloudtpu, libopentpu, and ops #21).ops/tpu-cdi/manifests/k8s-tpu-cdi-daemonset.yamlfor--network-mode isolatedand adds starter DRA manifestops/tpu-cdi/manifests/k8s-tpu-dra-example.yaml.ops/tpu-exporter/(Direct gRPC, SeqLock MMF, PCIe AER, Alerts)libtpugRPCRuntimeMetricService(127.0.0.1:8431) scraper with persistent channel reuse and graceful fallback whengrpcio/proto stubs are absent, eliminating unconditionaltpu-infosubprocess churn./dev/shm/freetpu_metrics_<bdf>mmapreader forlibopentpu.sowith documented 48-byte C ABI headerops/tpu-exporter/freetpu_metrics_shm.h.libtpu-free sysfs PCIe AER counters (freetpu_pcie_aer_correctable_total,freetpu_pcie_aer_fatal_total).--gcp-metadata-preemption->gcp_metadata_preempted_status) andops/tpu-exporter/prometheus-alerts.yml(TpuHbmOOMWarning,TpuMxuDutyCycleCollapse,TpuPcieAerFault,GcpSpotPreemption).Verification
python3 ops/tpu-cdi/test_freetpu_cdi.py -v— 21/21 passedpython3 ops/tpu-exporter/test_tpu_exporter.py -v— 19/19 passedclang -x c -std=c11 -fsyntax-only -Wall -Wextra -Werror ops/tpu-exporter/freetpu_metrics_shm.h— passedclang++ -x c++ -std=c++17 -fsyntax-only -Wall -Wextra -Werror ops/tpu-exporter/freetpu_metrics_shm.h— passedRefs #3, #21