Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen Call extent_alloc_subregion() with EX_MALLO...
details: https://anonhg.NetBSD.org/src/rev/af45447e68df
branches: trunk
changeset: 369803:af45447e68df
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Sep 01 16:28:08 2022 +0000
description:
Call extent_alloc_subregion() with EX_MALLOCOK; under heavy I/O load we need
lots of them and the preallocatted extent descriptors are not enough.
diffstat:
sys/arch/xen/xen/xenmem.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r b365ed8fa1be -r af45447e68df sys/arch/xen/xen/xenmem.c
--- a/sys/arch/xen/xen/xenmem.c Thu Sep 01 16:25:18 2022 +0000
+++ b/sys/arch/xen/xen/xenmem.c Thu Sep 01 16:28:08 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenmem.c,v 1.2 2022/08/31 12:53:27 bouyer Exp $ */
+/* $NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $ */
/*
* Copyright (c) 2022 Manuel Bouyer.
*
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.2 2022/08/31 12:53:27 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -57,11 +57,13 @@
#ifdef _LP64
/* allocate above the 4Gb range to not collide wit devices */
error = extent_alloc_subregion(XENMEM_EX, 0x100000000UL, MAXIOMEM,
- size, align, 0, waitok ? (EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT,
+ size, align, 0,
+ (waitok ? (EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
&result);
#else
error = extent_alloc(XENMEM_EX, size, align, 0,
- waitok ? (EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT, &result);
+ waitok ? ((EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
+ &result);
#endif
if (error) {
printf("xenmem_alloc_pa: failed %d\n", error);
Home |
Main Index |
Thread Index |
Old Index