mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
use 1GiB huge pages on windows when reserving upfront
This commit is contained in:
parent
0e639addb0
commit
a8b24472cb
2 changed files with 81 additions and 55 deletions
|
@ -154,8 +154,8 @@ int main(int argc, char** argv) {
|
|||
if (n > 0) N = n;
|
||||
}
|
||||
printf("start with %i threads with a %i%% load-per-thread\n", THREADS, N);
|
||||
int res = mi_reserve_huge_os_pages(4,1);
|
||||
printf("(reserve huge: %i\n)", res);
|
||||
//int res = mi_reserve_huge_os_pages(4,1);
|
||||
//printf("(reserve huge: %i\n)", res);
|
||||
|
||||
//bench_start_program();
|
||||
memset((void*)transfer, 0, TRANSFERS*sizeof(void*));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue