Skip to content

Commit

Permalink
Chase malloc() change by removing lg_chunk malloc_conf settings.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
delphij committed Jun 28, 2017
1 parent 91d820a commit ebc61da
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions usr.sbin/watchdogd/watchdogd.c
Expand Up @@ -111,14 +111,6 @@ static struct option longopts[] = {
{ NULL, 0, NULL, 0}
};

/*
* 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.
*/
Expand Down

0 comments on commit ebc61da

Please sign in to comment.