8 items on a page. this reduces the number of allocator operations
we have to do per item on large items.
ok tedu@
-/* $OpenBSD: subr_pool.c,v 1.172 2014/12/19 02:49:07 dlg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.173 2014/12/22 00:33:40 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
size = roundup(size, align);
if (palloc == NULL) {
- while (size > pgsize)
+ while (size * 8 > pgsize)
pgsize <<= 1;
if (pgsize > PAGE_SIZE) {