From 3c94e3185904d52ad037fce98486cd7b1f6cd2a6 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 13 Apr 2017 20:48:29 +0000 Subject: [PATCH] Use the non-interrupt-safe pool allocator for the vp pool to avoid runninng out of kva in the kmem_map. Avoids a hang when spawning a lot of processes. --- sys/arch/arm64/arm64/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index 5e994f07b78..73413f0fb64 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch/arm64/arm64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.31 2017/04/04 12:56:24 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.32 2017/04/13 20:48:29 kettenis Exp $ */ /* * Copyright (c) 2008-2009,2014-2016 Dale Rahn * @@ -1474,8 +1474,8 @@ pmap_init(void) pool_init(&pmap_pted_pool, sizeof(struct pte_desc), 0, IPL_VM, 0, "pted", NULL); pool_setlowat(&pmap_pted_pool, 20); - pool_init(&pmap_vp_pool, sizeof(struct pmapvp2), PAGE_SIZE, IPL_VM, 0, - "vp", NULL); + pool_init(&pmap_vp_pool, sizeof(struct pmapvp2), PAGE_SIZE, IPL_VM, + PR_WAITOK, "vp", NULL); /* pool_setlowat(&pmap_vp_pool, 20); */ pmap_initialized = 1; -- 2.20.1