public class NumaAllocUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NUMA_NODES_CNT |
| Modifier and Type | Method and Description |
|---|---|
static long |
allocate(long size)
Allocate memory using using default NUMA memory policy of current thread.
|
static long |
allocateInterleaved(long size,
int[] nodes)
Allocate memory interleaved on NUMA nodes.
|
static long |
allocateLocal(long size)
Allocate memory on local NUMA node.
|
static long |
allocateOnNode(long size,
int node)
Allocate memory on specific NUMA node.
|
static long |
chunkSize(long addr)
Get allocated buffer size.
|
static void |
free(long addr)
Free allocated memory.
|
public static long allocate(long size)
void *numa_alloc(size_t) under the hood.
size - Size of buffer.public static long allocateOnNode(long size,
int node)
void *numa_alloc_onnode(size_t) under the hood.
size - Size of buffer.node - NUMA node.public static long allocateLocal(long size)
void *numa_alloc_local(size_t) under the hood.
size - Size of buffer.public static long allocateInterleaved(long size,
int[] nodes)
void *numa_alloc_interleaved_subset(size_t, struct bitmask*) under the hood.
size - Size of buffer.nodes - Array of nodes allocate on. If null or empty, allocate on all NODES.public static long chunkSize(long addr)
addr - Address of buffer.public static void free(long addr)
addr - Address of buffer.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.26 Release Date : October 16 2025