Skip to content

bastion-rs/numanji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.

// 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::<usize>::with_capacity(1234);
}

About

Local-affinity first NUMA-aware allocator with optional fallback.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages