aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2019-08-08 19:09:43 -0400
committerDJ Delorie <dj@redhat.com>2019-08-09 14:04:03 -0400
commitc48d92b430c480de06762f80c104922239416826 (patch)
treeefb687b05fe7b94025ad29c6fe35d1d60a336fb8 /manual
parentb6d2c4475d5abc05dd009575b90556bdd3c78ad0 (diff)
downloadglibc-c48d92b430c480de06762f80c104922239416826.zip
glibc-c48d92b430c480de06762f80c104922239416826.tar.gz
glibc-c48d92b430c480de06762f80c104922239416826.tar.bz2
Add glibc.malloc.mxfast tunable
* elf/dl-tunables.list: Add glibc.malloc.mxfast. * manual/tunables.texi: Document it. * malloc/malloc.c (do_set_mxfast): New. (__libc_mallopt): Call it. * malloc/arena.c: Add mxfast tunable. * malloc/tst-mxfast.c: New. * malloc/Makefile: Add it. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/tunables.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/manual/tunables.texi b/manual/tunables.texi
index ee0fdf2..1687f9c 100644
--- a/manual/tunables.texi
+++ b/manual/tunables.texi
@@ -214,6 +214,18 @@ pre-fill the per-thread cache with. The default, or when set to zero,
is no limit.
@end deftp
+@deftp Tunable glibc.malloc.mxfast
+One of the optimizations malloc uses is to maintain a series of ``fast
+bins'' that hold chunks up to a specific size. The default and
+maximum size which may be held this way is 80 bytes on 32-bit systems
+or 160 bytes on 64-bit systems. Applications which value size over
+speed may choose to reduce the size of requests which are serviced
+from fast bins with this tunable. Note that the value specified
+includes malloc's internal overhead, which is normally the size of one
+pointer, so add 4 on 32-bit systems or 8 on 64-bit systems to the size
+passed to @code{malloc} for the largest bin size to enable.
+@end deftp
+
@node Elision Tunables
@section Elision Tunables
@cindex elision tunables