mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/flowbuffer-policy'
* origin/topic/jsiwek/flowbuffer-policy: Use a default binpac flowbuffer policy Added options to tune binpac flowbuffer policy
This commit is contained in:
commit
78dcbcc71a
6 changed files with 38 additions and 7 deletions
|
@ -5051,6 +5051,26 @@ export {
|
|||
option sampling_duration = 10min;
|
||||
}
|
||||
|
||||
module BinPAC;
|
||||
export {
|
||||
## Maximum capacity, in bytes, that the BinPAC flowbuffer is allowed to
|
||||
## grow to for use with incremental parsing of a given connection/analyzer.
|
||||
const flowbuffer_capacity_max = 10 * 1024 * 1024 &redef;
|
||||
|
||||
## The initial capacity, in bytes, that will be allocated to the BinPAC
|
||||
## flowbuffer of a given connection/analyzer. If the buffer buffer is
|
||||
## later contracted, its capacity is also reduced to this size.
|
||||
const flowbuffer_capacity_min = 512 &redef;
|
||||
|
||||
## The threshold, in bytes, at which the BinPAC flowbuffer of a given
|
||||
## connection/analyzer will have its capacity contracted to
|
||||
## :bro:see:`BinPAC::flowbuffer_capacity_min` after parsing a full unit.
|
||||
## I.e. this is the maximum capacity to reserve in between the parsing of
|
||||
## units. If, after parsing a unit, the flowbuffer capacity is greater
|
||||
## than this value, it will be contracted.
|
||||
const flowbuffer_contract_threshold = 2 * 1024 * 1024 &redef;
|
||||
}
|
||||
|
||||
module GLOBAL;
|
||||
|
||||
## Seed for hashes computed internally for probabilistic data structures. Using
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue