svn commit: r349018 - stable/12/sys/vm
Mark Johnston
markj at FreeBSD.org
Thu Jun 13 16:34:56 UTC 2019
Author: markj
Date: Thu Jun 13 16:34:55 2019
New Revision: 349018
URL: https://svnweb.freebsd.org/changeset/base/349018
Log:
MFC r348747:
Add sysctls for uma_kmem_{limit,total}.
Modified:
stable/12/sys/vm/uma_core.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/vm/uma_core.c
==============================================================================
--- stable/12/sys/vm/uma_core.c Thu Jun 13 16:34:25 2019 (r349017)
+++ stable/12/sys/vm/uma_core.c Thu Jun 13 16:34:55 2019 (r349018)
@@ -144,9 +144,16 @@ static int boot_pages;
static struct sx uma_drain_lock;
-/* kmem soft limit. */
+/*
+ * kmem soft limit, initialized by uma_set_limit(). Ensure that early
+ * allocations don't trigger a wakeup of the reclaim thread.
+ */
static unsigned long uma_kmem_limit = LONG_MAX;
+SYSCTL_ULONG(_vm, OID_AUTO, uma_kmem_limit, CTLFLAG_RD, &uma_kmem_limit, 0,
+ "UMA kernel memory soft limit");
static unsigned long uma_kmem_total;
+SYSCTL_ULONG(_vm, OID_AUTO, uma_kmem_total, CTLFLAG_RD, &uma_kmem_total, 0,
+ "UMA kernel memory usage");
/* Is the VM done starting up? */
static enum { BOOT_COLD = 0, BOOT_STRAPPED, BOOT_PAGEALLOC, BOOT_BUCKETS,
More information about the svn-src-stable-12
mailing list