diff options
author | phk <phk@FreeBSD.org> | 1999-03-28 14:16:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-03-28 14:16:05 +0000 |
commit | eed7c97f34b492bd50bf583ca92b6d40e527318c (patch) | |
tree | 987895e6fbecb3024885b87eb8a48aa6ba9bbb6a /lib/libc/stdlib | |
parent | 76ab29871cd71fc45f441549048d02039b063f33 (diff) | |
download | FreeBSD-src-eed7c97f34b492bd50bf583ca92b6d40e527318c.zip FreeBSD-src-eed7c97f34b492bd50bf583ca92b6d40e527318c.tar.gz |
Disable the "Hint" option in phkmalloc as default. Recent VM system
changes have made this too expensive. This gains about 1.25% on
worldstone on my SMP machine.
Swap-less machines, for instance PicoBSDs, and machines which experience
page-out trafic, check with top(1), will probably want to reenable this
with:
ln -s H /etc/malloc.conf
Suggested by: alc (&dyson ?)
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 7d7cd34..458a7ee 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -34,7 +34,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 -.\" $Id: malloc.3,v 1.16 1998/09/14 20:34:34 imp Exp $ +.\" $Id: malloc.3,v 1.17 1998/09/16 04:07:31 imp Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -168,7 +168,7 @@ This is intended for debugging and will impact performance negatively. .It H Pass a hint to the kernel about pages unused by the allocation functions. This will help performance if the system is paging excessively. This -option is on by default. +option is off by default. .It R Causes the .Fn realloc diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index bc27525..ce8769c 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: malloc.c,v 1.42 1998/09/23 21:26:04 dfr Exp $ + * $Id: malloc.c,v 1.43 1998/09/30 06:13:59 jb Exp $ * */ @@ -214,7 +214,7 @@ static int suicide; static int malloc_realloc; /* pass the kernel a hint on free pages ? */ -static int malloc_hint = 1; +static int malloc_hint = 0; /* xmalloc behaviour ? */ static int malloc_xmalloc; |