aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-03-28 14:16:05 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-03-28 14:16:05 +0000
commit5b26e8496891ecb7735c779bec5c3f75e39bdc1c (patch)
tree3b4be247a61195664d4102ee8f7f4698761bfda7 /lib/libc/stdlib/malloc.c
parent2331d1600bb51bded8fc03fd075a2c8174450db8 (diff)
downloadsrc-5b26e8496891ecb7735c779bec5c3f75e39bdc1c.tar.gz
src-5b26e8496891ecb7735c779bec5c3f75e39bdc1c.zip
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 ?)
Notes
Notes: svn path=/head/; revision=45091
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index bc2752544dfd..ce8769c2d172 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;