summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-08-21 03:03:45 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-08-21 03:03:45 +0000
commit5c286445466e6356b37c59a321fd4cb5f19bed75 (patch)
tree84f7101768881ff9147631ccb92af978dc18c38c
parent91cce39a82c30d35f897ed71d310777bde3a53f0 (diff)
re-enable *8.
if we're allowed to try and use large pages, we try and fit at least 8 of the items. this amortises the per page cost of an item a bit. "be careful" deraadt@
-rw-r--r--sys/kern/subr_pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index a450f60f0b4..e6a55a8456c 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.187 2015/07/23 12:44:43 dlg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.188 2015/08/21 03:03:44 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -238,7 +238,7 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags,
size = roundup(size, align);
if (palloc == NULL) {
- while (size > pgsize)
+ while (size * 8 > pgsize)
pgsize <<= 1;
if (pgsize > PAGE_SIZE) {