add option to limit OS allocation and only allow allocation from arenas

This commit is contained in:
daan 2020-09-08 16:56:51 -07:00
parent 14b8d27386
commit 364674185e
4 changed files with 5 additions and 2 deletions

View file

@ -235,7 +235,7 @@ int main(int argc, char** argv) {
if (n > 0) ITER = n;
}
printf("Using %d threads with a %d%% load-per-thread and %d iterations\n", THREADS, SCALE, ITER);
//mi_reserve_os_memory(512*1024*1024ULL, true, true);
//mi_reserve_os_memory(1024*1024*1024ULL, false, true);
//int res = mi_reserve_huge_os_pages(4,1);
//printf("(reserve huge: %i\n)", res);