This reduces the number of huge allocs, which drops test time from 6 minutes to 57 seconds.
*/
/* We divide the pool into this many large pages (nearest power of 2) */
*/
/* We divide the pool into this many large pages (nearest power of 2) */
-#define MAX_LARGE_PAGES (1024UL)
+#define MAX_LARGE_PAGES (256UL)
/* 32 small pages == 1 large page. */
#define BITS_FROM_SMALL_TO_LARGE_PAGE 5
/* 32 small pages == 1 large page. */
#define BITS_FROM_SMALL_TO_LARGE_PAGE 5
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
/* Large test. */
test(MIN_USEFUL_SIZE * 2);
/* Large test. */
test(MIN_USEFUL_SIZE * 2);