Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2017 04:19:55 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320431 - head/usr.sbin/watchdogd
Message-ID:  <201706280419.v5S4JtbE093361@repo.freebsd.org>

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



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