kernelkit
Cross-platform kernel optimization toolkit with Linux fast paths and safe fallbacks.
Quick Start
let features = detect;
println!;
let mmap = open_read?;
println!;
Features
- mmap with MADV_HUGEPAGE + MADV_SEQUENTIAL hints
- CPU affinity, pin threads to cores or NUMA nodes
- readahead, prefetch files, evict pages after scan
- perf_event, hardware counter reading (cycles, cache misses)
- hugepages: HugePageVec for TLB-friendly allocations
- mlock, lock pattern databases in memory
- binformat, binary file header parsing
- NUMA, allocate on specific NUMA nodes
License
MIT