diff options
author | Xin LI <delphij@FreeBSD.org> | 2017-06-28 04:19:54 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2017-06-28 04:19:54 +0000 |
commit | 97e832c1da418d40797779c515ce1cced5901df3 (patch) | |
tree | 33d921b90bae705954342b4451700c95a309d438 /usr.sbin/watchdogd | |
parent | 6a97a3f7560d302c7dce9fee37c0f3c39d7fbaa6 (diff) | |
download | src-97e832c1da418d40797779c515ce1cced5901df3.tar.gz src-97e832c1da418d40797779c515ce1cced5901df3.zip |
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
Notes
Notes:
svn path=/head/; revision=320431
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r-- | usr.sbin/watchdogd/watchdogd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 1271bbfe35dc..f1a9ea571776 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -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 |