Skip to content

Commit 0560fc2

Browse files
committed
update readme
1 parent 85eccf3 commit 0560fc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ or via environment variables:
311311
`MIMALLOC_EAGER_COMMIT_DELAY=N` (`N` is 1 by default) to delay the initial `N` segments (of 4MiB)
312312
of a thread to not allocate in the huge OS pages; this prevents threads that are short lived
313313
and allocate just a little to take up space in the huge OS page area (which cannot be reset).
314-
- `MIMALLOC_RESERVE_HUGE_OS_PAGES_AT=N`: where N is the numa node. This reserves the huge pages at a specific numa node.
315-
(`N` is -1 by default to reserve huge pages evenly among the given number of numa nodes (or use the available ones as detected))
314+
The huge pages are usually allocated evenly among NUMA nodes.
315+
We can use `MIMALLOC_RESERVE_HUGE_OS_PAGES_AT=N` where `N` is the numa node (starting at 0) to allocate all
316+
the huge pages at a specific numa node instead.
316317

317318
Use caution when using `fork` in combination with either large or huge OS pages: on a fork, the OS uses copy-on-write
318319
for all pages in the original process including the huge OS pages. When any memory is now written in that area, the

0 commit comments

Comments
 (0)