File: tcmalloc.rst

package info (click to toggle)
suricata 1%3A7.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,104 kB
  • sloc: ansic: 334,774; python: 7,725; sh: 5,001; makefile: 2,075; perl: 867
file content (39 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Tcmalloc
========

'tcmalloc' is a library Google created as part of the google-perftools
suite for improving memory handling in a threaded program. It's 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-minimal4 package:

::

  apt-get install libtcmalloc-minimal4

On Fedora, install the gperftools-libs package:

::

  yum install gperftools-libs

Usage
~~~~~

Use the tcmalloc by preloading it:

Ubuntu:

::

  LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4" suricata -c suricata.yaml -i eth0

Fedora:

::

  LD_PRELOAD="/usr/lib64/libtcmalloc_minimal.so.4" suricata -c suricata.yaml -i eth0