svn commit: r320431 - head/usr.sbin/watchdogd

Xin LI delphij at FreeBSD.org
Wed Jun 28 04:19:56 UTC 2017


Author: delphij
Date: Wed Jun 28 04:19:54 2017
New Revision: 320431
URL: https://svnweb.freebsd.org/changeset/base/320431

Log:
  Chase malloc() change by removing lg_chunk malloc_conf settings.
  
  In jemalloc 5, there are no longer chunks, and as configured on
  FreeBSD (the "retain" option defaults to false), the mmap()
  requests are precisely sized for the specific needs, which means
  the virtual memory overhead should be lower for small applications.
  
  Reviewed by:	jasone, ian
  Differential Revision:	https://reviews.freebsd.org/D11366

Modified:
  head/usr.sbin/watchdogd/watchdogd.c

Modified: head/usr.sbin/watchdogd/watchdogd.c
==============================================================================
--- head/usr.sbin/watchdogd/watchdogd.c	Wed Jun 28 04:02:36 2017	(r320430)
+++ head/usr.sbin/watchdogd/watchdogd.c	Wed Jun 28 04:19:54 2017	(r320431)
@@ -112,14 +112,6 @@ static struct option longopts[] = {
 };
 
 /*
- * Ask malloc() to map minimum-sized chunks of virtual address space at a time,
- * so that mlockall() won't needlessly wire megabytes of unused memory into the
- * process.  This must be done using the malloc_conf string so that it gets set
- * up before the first allocation, which happens before entry to main().
- */
-const char * malloc_conf = "lg_chunk:0";
-
-/*
  * Periodically pat the watchdog, preventing it from firing.
  */
 int


More information about the svn-src-head mailing list