luajit: update default yaml and doc for 'states'

pull/2414/head
Victor Julien 8 years ago
parent 3da7dad514
commit 3012edae1c

@ -2188,3 +2188,25 @@ unlimited.
modbus:
# Stream reassembly size for modbus, default is 0
stream-depth: 0
Advanced Options
----------------
luajit
~~~~~~
states
^^^^^^
Luajit has a strange memory requirement, it's 'states' need to be in the
first 2G of the process' memory. For this reason when luajit is used the
states are allocated at the process startup. This option controls how many
states are preallocated.
If the pool is depleted a warning is generated. Suricata will still try to
continue, but may fail if other parts of the engine take too much memory.
If the pool was depleted a hint will be printed at the engines exit.
States are allocated as follows: for each detect script a state is used per
detect thread. For each output script, a single state is used. Keep in
mind that a rule reload temporary doubles the states requirement.

@ -1381,6 +1381,15 @@ threading:
#
detect-thread-ratio: 1.0
# Luajit has a strange memory requirement, it's 'states' need to be in the
# first 2G of the process' memory.
#
# 'luajit.states' is used to control how many states are preallocated.
# State use: per detect script: 1 per detect thread. Per output script: 1 per
# script.
luajit:
states: 128
# Profiling settings. Only effective if Suricata has been built with the
# the --enable-profiling configure flag.
#

Loading…
Cancel
Save