Memimpact – memory footprint CLI written in Rust
Cleaner alternative to /usr/bin/time for quick memory profiling, no recompilation required.
Rust Memory Hypervisor implementing asynchronous metadata offloading, hardware-enforced spatial safety, and virtual memory page compaction.
O(1) anti-hoarding with atomic CAS beats glibc 26% on packet processing, 9x less fragmentation.
Systems programmers, network engineers, Rust developers
jemalloc · mimalloc · tcmalloc
I've built aethalloc (https://github.com/shift/aethalloc). It's a high-performance, drop-in memory allocator I wrote in Rust.
To be honest, standard allocators were absolutely choking on my NixOS router/firewall. They were hoarding memory like mad because packets get allocated on an RX thread and freed on a worker thread, basically knackering standard thread-local caches. It was also causing some serious RSS bloat on my NixOS laptop. Pure nightmare.
The Fix: O(1) Anti-Hoarding
aethalloc uses 14 thread-local size classes. When an async pipeline starts hoarding memory (like a firewall worker dropping a NIC's packet), aethalloc just punts the excess back to a global pool. It does this all at once with a single atomic Compare-And-Swap (CAS). Sorted.
┌─────────────────────────────────────────────────────────────────┐ │ Thread N Cache ──► heads[14] ──► Anti-Hoarding Threshold (4096) │ │ │ │ │ ▼ │ │ Global Pool ──► Lock-free Treiber Stack (O(1) batch push) │ └─────────────────────────────────────────────────────────────────┘
It also guarantees 16-byte alignment so your AVX/SSE stays safe, and integrates Hardware-Enforced Spatial Safety (ARM MTE, CHERI, x86_64 LAM/UAI). Pretty chuffed with how that turned out.
Usage
Just compile it to a C ABI shared library (libaethalloc.so) and chuck it into your unmodified binaries with a quick LD_PRELOAD.
I'd love to hear your thoughts on the architecture and project in general.
Cheers!
Cleaner alternative to /usr/bin/time for quick memory profiling, no recompilation required.
Zero heap allocations, io_uring, span-based parsing: built for AI agent armies.
Screen locking via loginctl and LockWorkStation APIs means you literally cannot dismiss it.
Educational malloc clone—solid fundamentals but competitive with textbook examples.
Sub-microsecond CAN frame detection with zero heap allocation in 122K lines of Rust.
Ebbinghaus decay prunes memory automatically, unlike standard RAG hoarding.