mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
initial implementation of mi_os_reserve_huge_pages
This commit is contained in:
parent
8d28713a35
commit
42dedb00ec
7 changed files with 169 additions and 33 deletions
|
@ -154,6 +154,9 @@ 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);
|
||||
|
||||
//bench_start_program();
|
||||
memset((void*)transfer, 0, TRANSFERS*sizeof(void*));
|
||||
run_os_threads(THREADS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue