Hello Everyone
I have been working on a project called swift-topomap for the last few weeks. It’s a TUI tool designed to solve a problem I keep running into: standard tools like htop show CPU usage, but they don't tell you if that usage is actually productive.
I wanted a way to see the physical hardware topology (Sockets, L3 Cache boundaries) and overlay live microarchitectural metrics (IPC, Cache Misses) using eBPF, but without the baggage of heavy C-library dependencies.
Technical Highlights:
Native Topology Resolver: Instead of linking against libhwloc, I wrote a pure Rust parser for /sys/devices/system/cpu and /sys/devices/system/node. It maps physical package IDs to logical cores and identifies shared L3 cache boundaries natively.
Hybrid Telemetry Engine: It uses a trait-bound collector that negotiates privileges at startup. If run as root, it loads a CO-RE eBPF driver via libbpf-rs to hook sched_switch and read hardware PMCs (Performance Monitoring Counters).
Microarchitectural Insights: The TUI classifies core states. For example, a core at 100% usage but < 0.5 IPC will turn Amber (Memory-Bound/Stalled), while a high IPC core stays Emerald Green.
Static GNU Build: Linking this was a nightmare. I eventually solved the static requirements to bundle libbpf, libelf, and zstd so it ships as a single 3.5MB binary that runs on any modern Linux distro without shared library hell.
Why eBPF + Rust?
I chose Rust for the logic layer and TUI (Ratatui) because I needed memory safety for the FFI boundary with libbpf. The IPC and LLC metrics are pulled via the kernel’s Perf Subsystem, and the deltas are calculated in Rust to provide a steady 100ms-refresh dashboard.
I’m releasing this as open source under SwiftLogic Systems. I would love to hear your thoughts on the topology resolution logic or the eBPF/Perf integration.
GitHub: 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
Some Screen Shots of the tool
1 post - 1 participant
Read full topic
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Blog: gRPC-Rust Client API Evolution (pt. 1/2) | 0 | 11.54 | 29-05-2026 |
| 2 | GNU Hurd development blog: 2026-q2 | 0 | 9.18 | 03-07-2026 |
| 3 | Blog: gRPC-Rust Preview Release | 0 | 9.58 | 28-05-2026 |
| 4 | btop++ : un moniteur de ressources système open source | 0 | 15.38 | 18-08-2026 |
| 5 | [Benchmark] Radeon RX 460 (6.2.6) | 0 | 11.64 | 21-06-2026 |
| 6 | Georgien fürchtet, vom Westen vergessen zu werden | 0 | 0 | 24-02-2020 |
| 7 | Подскажите сколько адекватно стоит аренда двухкомнатной квартиры недалеко от метро? | 0 | 0 | 10-12-2016 |
| 8 | 0 | 0 | 10-03-2023 | |
| 9 | Профсоюзные санатории ежегодно принимают около 100 тыс. человек | 0 | 0 | 25-02-2020 |
| 10 | «Тайна третьей планеты» — советский полнометражный научно-фантастический мультфильм Романа Качанова, ... | 0 | 0 | 08-03-2023 |