Skip to content

Instantly share code, notes, and snippets.

@holmeshe
Created September 20, 2018 08:51
Show Gist options
  • Save holmeshe/536dd1c7725fa9ddf53f07b047deb153 to your computer and use it in GitHub Desktop.
Save holmeshe/536dd1c7725fa9ddf53f07b047deb153 to your computer and use it in GitHub Desktop.
...
bool preallocate = false;
...
case 'L' :
if (enable_large_pages() == 0) {
preallocate = true;
} else {
fprintf(stderr, "Cannot enable large pages on this system\n"
"(There is no Linux support as of this version)\n");
return 1;
}
break;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment