From patchwork Fri Mar 1 01:28:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2115 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id B958F88B0B9 for ; Thu, 28 Feb 2019 14:29:55 +0000 (GMT) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 449FLq1lJbz5KgW0; Thu, 28 Feb 2019 14:29:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1551364195; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:list-id:list-unsubscribe:list-subscribe:list-post; bh=roLbMFafNBo0RPMdG+VNOBNKCs/jwNFMSkFrAfxF66o=; b=jPGpOZG3H9w2/K1EcDx2wv4kzmRjaIhIY9DBhAOoEUg/5p2N0IBf+5IeWqZTMd1dW0JOol YCjnFiXef7SxN98miBloLYuazcqrbEz8CD0pY9mFhnYgac741+lpgUFNSKO9ryTyjxxFR5 o8l0WyWV2AA2JJTD5HTiw2+XxKx188flrKmIIG2dmoF9biRkGraraO6fBxaM9JsOrW7706 ZsE2Mn4/gJPfDCI4K/JTkXIeFn93RgaD9F1XzZHRZDj+QpZ5xz4b3RWxLg2Y5q9Gm1SzUU CMWBKXD9JrjMRK53QOxMk0MGzDfLxpS8XQlvBJSxSRJkvIK7oHQKoFamJIwQgQ== Received: from ipfire.tremer.co.uk (unknown [88.215.19.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 449FKX3MP9z5KvHZ; Thu, 28 Feb 2019 14:28:48 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1551364128; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=roLbMFafNBo0RPMdG+VNOBNKCs/jwNFMSkFrAfxF66o=; b=gTURbAA79lDuMj2uYCvspHCLc66qvfnHACANp9oIS0lTV7iodz2LCpnAPEHNB8jQ9llodY aetJKjF+5qWPl0YfJRxputoj1NDFj1EpUfGXRpU0Cx0eDwuz28OCCiDR9kLOwRE++Ccydn Aa6V4dqVEz8AQpIzt4HrDQjqk/vfOezJA3leRpCswmEtWlBio0c3zm78JlzjlVZjb5qNNC zbharc5qCK5GEZq1ThQV9Lq+cvlH1O5UQbNh1off2BdTjgmu8kAz9RWNPWr/RYLgzdOZB5 FevmDbVpyv53PvZ5JrTlvUDuqk+sZMHLW4Epl+MVYQUF/z+la/MAg5E16j0ylQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 15/20] suricata: Use up to 256MB of RAM for the flow cache Date: Thu, 28 Feb 2019 14:28:20 +0000 Message-Id: <20190228142825.5153-16-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190228142825.5153-1-michael.tremer@ipfire.org> References: <20190228142825.5153-1-michael.tremer@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=ms smtp.mailfrom=michael.tremer@ipfire.org X-Spamd-Result: default: False [-8.79 / 11.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-2.69)[-0.897,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31655, ipnet:88.215.0.0/18, country:GB]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-8.79 X-Rspamd-Server: mail01.i.ipfire.org Cc: Michael Tremer X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- config/suricata/suricata.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index 397ddcb25..a6be53124 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -412,12 +412,12 @@ defrag: # in bytes. flow: - memcap: 128mb + memcap: 256mb hash-size: 65536 prealloc: 10000 emergency-recovery: 30 - #managers: 1 # default to one flow manager - #recyclers: 1 # default to one flow recycler thread + managers: 1 + recyclers: 1 # This option controls the use of vlan ids in the flow (and defrag) # hashing. Normally this should be enabled, but in some (broken)