Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bastion-rs/numanji
Local-affinity first NUMA-aware allocator with optional fallback.
https://github.com/bastion-rs/numanji
allocator globalallocator mmap numa numa-aware rust
Last synced: 2 months ago
JSON representation
Local-affinity first NUMA-aware allocator with optional fallback.
- Host: GitHub
- URL: https://github.com/bastion-rs/numanji
- Owner: bastion-rs
- Created: 2019-11-03T18:19:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:55:46.000Z (over 3 years ago)
- Last Synced: 2024-10-29T22:37:26.310Z (3 months ago)
- Topics: allocator, globalallocator, mmap, numa, numa-aware, rust
- Language: Rust
- Size: 771 KB
- Stars: 23
- Watchers: 5
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-numa - numanji - A rustlang Local-affinity first NUMA-aware allocator with optional fallback (NUMA-aware memory placement and scheduling)
README
Local-affinity first NUMA-aware allocator with optional fallback.
This crate supplies NUMA-aware local policy enabled allocation.
### When using `autoselect`
Fallback system is triggered with `autoselect`.
If system is not supporting NUMA-aware allocation it falls back to `Jemalloc`.### When using `NUMA-aware`
If autoselect is not used, `memmap` fallback will be triggered with
default system page size and it will be used as allocator.```rust
// Allocator generator macro
use numanji::*;// Do autoselect for allocator
autoselect!();fn main() {
// Allocated by Numanji based on your Numa availability on your system.
let _vec = Vec::::with_capacity(1234);
}
```