summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-03-20 11:33:18 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-03-20 11:33:18 +0000
commit3431604482aebe678d10072551f483ee21d56cb4 (patch)
tree3dbc2494d1cb4697723dde1fa5510f0eac11076a /sys/kern
parentd486110dbc5a17e28608bd45f5331835725b8f90 (diff)
reintroduce r1.173:
> if we're able to use large page allocators, try and place at least > 8 items on a page. this reduces the number of allocator operations > we have to do per item on large items. this was backed out because of fallout on landisk which has since been fixed. putting this in again early in the cycle so we can look for more fallout. hopefully it will stick. ok deraadt@
Diffstat (limited to 'sys/kern')
-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 3e90589752d..1dd260024e8 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.181 2015/03/14 03:38:50 jsg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.182 2015/03/20 11:33:17 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -233,7 +233,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) {