https://github.com/santhsecurity/kernelkit
Kernel memory management utilities for huge pages and NUMA
https://github.com/santhsecurity/kernelkit
Last synced: 2 months ago
JSON representation
Kernel memory management utilities for huge pages and NUMA
- Host: GitHub
- URL: https://github.com/santhsecurity/kernelkit
- Owner: santhsecurity
- License: mit
- Created: 2026-04-08T23:51:56.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-09T00:08:05.000Z (4 months ago)
- Last Synced: 2026-04-09T01:15:39.812Z (4 months ago)
- Language: Rust
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: AUDIT_FINDINGS.md
Awesome Lists containing this project
README
# kernelkit
Cross-platform kernel optimization toolkit with Linux fast paths and safe fallbacks.
## Quick Start
```rust
let features = kernelkit::cpu_features::detect();
println!("AVX2: {}, L1: {}KB", features.avx2, features.l1_size / 1024);
let mmap = kernelkit::mmap::open_read("Cargo.toml")?;
println!("File size: {} bytes", mmap.len());
```
## 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