Crate of the Week

I would like to nominate swift-topomap for Crate of the Week.

Since its initial development, it has evolved into a powerful microarchitectural observability tool. It's a great example of "Deep Systems" Rust, featuring:

  • Native Topology Resolution: It bypasses libhwloc entirely, using a custom Rust parser for sysfs to map physical sockets and L3 cache boundaries.
  • eBPF CO-RE Engine: It uses libbpf-rs to hook sched_switch and read hardware performance counters, allowing it to distinguish between healthy compute (high IPC) and memory stalls (low IPC) in real-time.
  • Static Linking Mastery: It successfully bundles the entire C-dependency chain (libbpf, libelf, zstd) into a single 3.5MB static binary for zero-friction deployment.

Seeing execution quality (IPC) mapped directly onto the physical silicon layout provides a "Silicon Truth" that standard monitoring tools miss. It's been validated on bare-metal Xeon and EPYC hardware and is a testament to Rust’s capability in the low-level observability space.

Link to the Repo: GitHub - swiftlogicsystems/swifttopology: A high-performance, hardware-aware system observability tool. Maps CPU topology (NUMA, Caches, Cores) with real-time performance metrics (IPC, Cache Misses) using Deep-System eBPF (CO-RE) and a Rust-based Ratatui TUI · GitHub