Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2019 16:01:17 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351332 - head/sys/vm
Message-ID:  <201908211601.x7LG1HLd076083@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908211601.x7LG1HLd076083>