Browse Source

Move default numer of pools in the multi-threaded case to 8. Various tests

by me and others indicate that it is the optimum.
OPENBSD_6_5
otto 5 years ago
parent
commit
651232ba68
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/stdlib/malloc.c

+ 2
- 2
src/lib/libc/stdlib/malloc.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.258 2019/01/10 18:45:33 otto Exp $ */
/* $OpenBSD: malloc.c,v 1.259 2019/01/10 18:47:05 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@ -409,7 +409,7 @@ omalloc_init(void)
/*
* Default options
*/
mopts.malloc_mutexes = 4;
mopts.malloc_mutexes = 8;
mopts.malloc_junk = 1;
mopts.malloc_cache = MALLOC_DEFAULT_CACHE;


Loading…
Cancel
Save