diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /vespamalloc/etc |
Publish
Diffstat (limited to 'vespamalloc/etc')
-rw-r--r-- | vespamalloc/etc/vespamalloc.conf | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vespamalloc/etc/vespamalloc.conf b/vespamalloc/etc/vespamalloc.conf new file mode 100644 index 00000000000..2ae0af00a11 --- /dev/null +++ b/vespamalloc/etc/vespamalloc.conf @@ -0,0 +1,30 @@ +# Config file for vespa malloc +#loglevel = 0 should mean no logging. Only level 1 is implemented. +logfile stderr # default(stderr) This is the file to where log is written (stderr, stdout, filename) + +# Tuning. But default is probably good. +alwaysreuselimit 0x200000 # default(0x200000) Objects larger than this will always be returned to the segment for reuse, also by other size classes.. +threadcachelimit 0x10000 # default(0x10000) Max bytes in thread local cache per size class. +fillvalue 0xa8 # default(0xa8) means not used. libvespamalloc(dXXXX).so have the possibility to fill memory on free and verify on malloc. This is to help catch use after free errors. + +# Usefull options for debugging/analysis. +sigprof_loglevel 2 # default(0) Loglevel used at SIGPROF/dumpsignal signal. +atend_loglevel 2 # default(1) Loglevel used when application stops. +dumpsignal 27 # SIGPROF is default signal for dumping. Can be overridden here. + +# Some to make you application dump state as it eats more and more memory. +bigsegment_loglevel 1 # default(1) Loglevel used when datasegment passes a boundary. +bigsegment_limit 0x1000000000 # default(0x1000000000) First level the datasegment must reach before logging is started +bigsegment_increment 0x100000000 # default(0x100000000) At what increment it will log next time. + +# Dump all large allocations with stack trace. +bigblocklimit 0x80000000 # default(0x800000) Limit for when to log new/deletes wuth stack trace. Only malloc(dXX).so + +# Lower size limit for when to log stacktrace. +pralloc_loglimit 0x7fffffffffffffff # What to log pr alloc. default(0x7fffffffffffffff) except mallocdst(0x200000). mallocdst_nl(0x7fffffffffffffff), but has effect on SIGHUP. + +#Some deprecated/less usefull ones. +atnomem_loglevel 2 # default(1) Loglevel used when datasegment is exhausted. +atdoubledelete_loglevel 2 # default(1) Loglevel used when vespa_malloc discovers a double delete. +atinvalid_loglevel 2 # default(1) Loglevel used when vespa_malloc discovers logical error. +allocs2show 0 # Number of allocations to show when dumping stacktrace. |