summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-03-20 11:33:17 +0000
committerdlg <dlg@openbsd.org>2015-03-20 11:33:17 +0000
commitf33b2796d82d76214e9d6626fed76c76584f7817 (patch)
treec476b609c66af0298482975bfc137f76a116d856 /sys/kern/subr_pool.c
parentUnbreak WEP/WPA on AR5211 ath(4) devices by setting hardware WEP keytable (diff)
downloadwireguard-openbsd-f33b2796d82d76214e9d6626fed76c76584f7817.tar.xz
wireguard-openbsd-f33b2796d82d76214e9d6626fed76c76584f7817.zip
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/subr_pool.c')
-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) {