svn commit: r351332 - head/sys/vm
Mark Johnston
markj at FreeBSD.org
Wed Aug 21 16:01:18 UTC 2019
Author: markj
Date: Wed Aug 21 16:01:17 2019
New Revision: 351332
URL: https://svnweb.freebsd.org/changeset/base/351332
Log:
Unconditionally enable debug.vm_lowmem.
It is useful for testing purposes to be able to drain UMA caches, so
do not limit the sysctl to DIAGNOSTIC kernels.
MFC after: 1 week
Sponsored by: Netflix
Modified:
head/sys/vm/vm_kern.c
Modified: head/sys/vm/vm_kern.c
==============================================================================
--- head/sys/vm/vm_kern.c Wed Aug 21 15:52:10 2019 (r351331)
+++ head/sys/vm/vm_kern.c Wed Aug 21 16:01:17 2019 (r351332)
@@ -839,7 +839,6 @@ kmem_bootstrap_free(vm_offset_t start, vm_size_t size)
#endif
}
-#ifdef DIAGNOSTIC
/*
* Allow userspace to directly trigger the VM drain routine for testing
* purposes.
@@ -862,4 +861,3 @@ debug_vm_lowmem(SYSCTL_HANDLER_ARGS)
SYSCTL_PROC(_debug, OID_AUTO, vm_lowmem, CTLTYPE_INT | CTLFLAG_RW, 0, 0,
debug_vm_lowmem, "I", "set to trigger vm_lowmem event with given flags");
-#endif
More information about the svn-src-head
mailing list