Decision Workspace
mailrs-mmalloc vs mailrs-syscall vs kevy-alloc
Side-by-side comparison of Rust crates
mmap-backed allocator for mailrs-server. Forked from the goliajp/torajs `torajs-mmalloc` v0.7 layered design (page bump + size-class free-list + TLAB + large mmap), adapted to Linux x86_64 + aarch64 prod targets. Provides a #[global_allocator]-compatible MailrsAllocator whose freed pages call madvise(MADV_DONTNEED) so resident memory actually returns to the OS — the bit glibc per-thread arenas refuse to do. Origin: 0-deps in-house policy, see DEPS_AUDIT.md / project NORTH STAR. macOS host build is a no-op stub so workspace cargo test runs during development.
0-dep raw Linux syscall stubs for mailrs's in-process allocator (mmap / munmap / madvise). aarch64-linux + x86_64-linux only — macOS host build is a stub so cargo workspace builds during development; the real path activates under target_os=linux.
Per-shard, mmap-backed, header-free allocator: graded size classes, span ownership, thread-local caching, and exact six-term memory accounting.
Core Metrics
| mailrs-mmalloc | mailrs-syscall | kevy-alloc | |
|---|---|---|---|
| Health Score | 40 | 43 | 60 |
| Total Downloads | 18 | 42 | 335 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 14 |
| Releases | 1 | 1 | 14 |
| Last Updated | 66d ago | 66d ago | 9d ago |
| Age | 2m | 2m | 2m |
Health Breakdown
Technical Details
| mailrs-mmalloc | mailrs-syscall | kevy-alloc | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 7.0.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 OR MIT | Apache-2.0 OR MIT | Apache-2.0 OR MIT |
| Dependencies | 2 | 0 | 0 |
| Crate Size | 58KB | 7KB | 87KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.97.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •kevy-alloc leads with a health score of 60/100, but none of the options score above 80.
- •mailrs-mmalloc, mailrs-syscall are pre-1.0 — API may change.