From b4454b6846725859892c5e9392d9e4fe0ae6dfa5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 14 Sep 2010 14:55:53 +0200 Subject: [PATCH] Switch to b2gc as default pattern matcher as it uses less memory and is a little faster. --- src/util-mpm-b2gc.c | 2 +- suricata.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-mpm-b2gc.c b/src/util-mpm-b2gc.c index 63c8ec9f50..6739eaea44 100644 --- a/src/util-mpm-b2gc.c +++ b/src/util-mpm-b2gc.c @@ -64,7 +64,7 @@ static void *b2g_func; #define B2GC_PMINLEN_MAX 8 /* align pattern storage to these bytes. 1 disables. */ -#define B2GC_ALIGN_PATTERNS 16 +#define B2GC_ALIGN_PATTERNS 2 void B2gcInitCtx (MpmCtx *, int); void B2gcThreadInitCtx(MpmCtx *, MpmThreadCtx *, uint32_t); diff --git a/suricata.yaml b/suricata.yaml index 465e320924..e750af9b12 100644 --- a/suricata.yaml +++ b/suricata.yaml @@ -133,7 +133,7 @@ cuda: # compiled with --enable-cuda: b2g_cuda. Make sure to update your # max-pending-packets setting above as well if you use b2g_cuda. -mpm-algo: b2g +mpm-algo: b2gc # The memory settings for hash size of these algorithms can vary from lowest # (2048) - low (4096) - medium (8192) - high (16384) - highest (32768) - max