File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
317318Use caution when using ` fork ` in combination with either large or huge OS pages: on a fork, the OS uses copy-on-write
318319for all pages in the original process including the huge OS pages. When any memory is now written in that area, the
You can’t perform that action at this time.
0 commit comments