You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/doc/userguide/performance/tcmalloc.rst

40 lines
740 B
ReStructuredText

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Tcmalloc
========
tcmalloc is a library Google created as part of the google-perftools
suite for improving memory handling in a threaded program. Its very
simple to use and does work fine with Suricata. It leads to minor
speed ups and also reduces memory usage quite a bit.
Installation
~~~~~~~~~~~~
On Ubuntu, install the libtcmalloc-minimal0 package:
::
apt-get install libtcmalloc-minimal0
On Fedora, install the gperftools-libs package:
::
yum install gperftools-libs
Usage
~~~~~
Use the tcmalloc by preloading it:
Ubuntu:
::
LD_PRELOAD=”/usr/lib/libtcmalloc_minimal.so.0" suricata -c suricata.yaml -i eth0
Fedora:
::
LD_PRELOAD="/usr/lib64/libtcmalloc_minimal.so.4" suricata -c suricata.yaml -i eth0