[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oisf-users
Subject:    Re: [Oisf-users] memcap drops etc
From:       Peter Manev <petermanev () gmail ! com>
Date:       2012-12-06 13:30:05
Message-ID: CAMhe82Lhhf9eK+Sh=g0XMHr=KCZKgoaPMdkJK0A3ixuF8pnDMg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Dec 6, 2012 at 1:18 PM, Christophe Vandeplas <
christophe@vandeplas.com> wrote:

> On Thu, Dec 6, 2012 at 12:58 PM, Peter Manev <petermanev@gmail.com> wrote:
> >
> >
> > On Thu, Dec 6, 2012 at 12:26 PM, Christophe Vandeplas
> > <christophe@vandeplas.com> wrote:
> >>
> >> trying to reply to all the questions, also from Anoop.
> >>
> >> On Thu, Dec 6, 2012 at 11:55 AM, Peter Manev <petermanev@gmail.com>
> wrote:
> >> > Hi Cristophe,
> >> >
> >> > sorry  - i missed the info from you.
> >> > Ok HW is definitely enough for that traffic.
> >> >
> >> > Do you use af_packet?
> >>
> >> no, I'll activate it on this IDS by using the  eth2 interface only.
> >> Fortunately that's an IDS where the bond0 was not really necessary,
> >> but we prefer to keep every IDS as identical as possible. I'll have to
> >> dig into the AF_PACKET documentation to understand how I should
> >> configure it to receive on two physical interfaces.
> >>
> >> > Is Suriata running on all 8 cores?
> >>
> >> yep, on every machine it uses CPU from all cores.
> >>
> >> > bond0 interface - is that bridged by any chance?
> >>
> >> nope, that is/was not bridged. As I just switched to direct interface
> >> usage with AF_PACKET to eth2. This is not relevant anymore.
> >>
> >> /etc/network/interfaces is
> >> auto eth2
> >> iface eth2 inet manual
> >>     pre-up ifconfig $IFACE up promisc
> >>     post-down ifconfig $IFACE down
> >>     bond-master bond0
> >>
> >> # bonding interfaces for easier sniffing
> >> auto bond0
> >> iface bond0 inet manual
> >>     pre-up ifconfig $IFACE up promisc
> >>     post-down ifconfig $IFACE down
> >>     bond-mode balance-rr
> >>     bond-miimon 100
> >>     bond-slaves none
> >>
> >>
> >> > Do you have checksums enabled or disabled?
> >>
> >> enabled (as shown below)
> >>
> >> > FlowTimeout values - you should try to lower them.
> >>
> >> ok,
> >>
> >> > Can you describe the ruleset you're using?
> >>
> >>  44538 signatures processed. 711 are IP-only rules, 43495 are
> >> inspecting packet payload, 13901 inspect application layer, 0 are
> >> decoder event only
> >
> > do i read this correctly - 44K rules? :)
>
> yep :-)   we mainly use privately-shared lists of dns names/ips, ...
> of targeted attacks.
> Hostnames generate http, dns (udp/tcp) rules, so it grows quite fast)
>
> > But more importantly - which Suriacta ver are you using?
>
> Suricata 1.3.4 from the ubuntu ppa repo.
>
I am glad to hear that you are using PPA :)
you should/could also give 1.4rc1 a try - located in our suricata-beta
repository

>
> New config is reloaded with suricata -D --pidfile
> /var/run/suricata.pid -c /etc/suricata/suricata.yaml --af-packet=eth2
> --runmode=workers
> raised flow.memcap to 3gb   (was 2gb)
> raised stream.memcap to 3gb (was 2gb)
> lowered stream.reassembly.memcap to 1mb (default)
>
> So that 6 GB of the 8 GB, that gives 2 GB for the rest of suri and the
> OS. Is that a correct interpretation?
>
>
> From the new stats (http://pastebin.com/HNWRUBEM ) I see that the
> tcp.reassembly_gap is raising quickly (997)
> There are no drops
> capture.kernel_drops      | AFPacketeth21             | 0
> tcp.ssn_memcap_drop       | AFPacketeth21             | 0
> tcp.segment_memcap_drop   | AFPacketeth21             | 0
>
> But this seems weird, the decoder sees less packets (272) than the
> kernel. While the kernel reports no drops. Or that's perhaps because
> it's somewhere in between?
> capture.kernel_packets    | AFPacketeth21             | 948484
> capture.kernel_drops      | AFPacketeth21             | 0
> decoder.pkts              | AFPacketeth21             | 948756
>
>
>
>
>
> At startup suri now says:
> 6/12/2012 -- 13:04:11 - <Info> - 11 rule files processed. 43201 rules
> succesfully loaded, 60 rules failed
> 6/12/2012 -- 13:05:49 - <Info> - 44538 signatures processed. 711 are
> IP-only rules, 43495 are inspecting packet payload, 13901 inspect
> application layer, 0 are decoder event only
> 6/12/2012 -- 13:05:49 - <Info> - building signature grouping
> structure, stage 1: adding signatures to signature source addresses...
> complete
> 6/12/2012 -- 13:05:50 - <Info> - building signature grouping
> structure, stage 2: building source address list... complete
> 6/12/2012 -- 13:06:16 - <Info> - building signature grouping
> structure, stage 3: building destination address lists... complete
> 6/12/2012 -- 13:06:29 - <Info> - Threshold config parsed: 0 rule(s) found
> 6/12/2012 -- 13:06:29 - <Info> - Core dump size set to unlimited.
> 6/12/2012 -- 13:06:29 - <Info> - fast output device (regular)
> initialized: fast.log
> 6/12/2012 -- 13:06:29 - <Info> - Unified2-alert initialized: filename
> unified2.alert, limit 32 MB
> 6/12/2012 -- 13:06:29 - <Info> - http-log output device (regular)
> initialized: http.log
> 6/12/2012 -- 13:06:29 - <Info> - Using round-robin cluster mode for
> AF_PACKET (iface eth2)
> 6/12/2012 -- 13:06:29 - <Info> - Enabling mmaped capture on iface eth2
> 6/12/2012 -- 13:06:29 - <Info> - Going to use 1 thread(s)
> 6/12/2012 -- 13:06:29 - <Info> - RunModeIdsAFPSingle initialised
> 6/12/2012 -- 13:06:29 - <Info> - stream "max-sessions": 262144
> 6/12/2012 -- 13:06:29 - <Info> - stream "prealloc-sessions": 32768
> 6/12/2012 -- 13:06:29 - <Info> - stream "memcap": 3221225472
> 6/12/2012 -- 13:06:29 - <Info> - stream "midstream" session pickups:
> disabled
> 6/12/2012 -- 13:06:29 - <Info> - stream "async-oneside": disabled
> 6/12/2012 -- 13:06:29 - <Info> - stream "checksum-validation": enabled
> 6/12/2012 -- 13:06:29 - <Info> - stream."inline": disabled
> 6/12/2012 -- 13:06:29 - <Info> - Enabling zero copy mode
> 6/12/2012 -- 13:06:29 - <Info> - stream.reassembly "memcap": 1073741824
> 6/12/2012 -- 13:06:29 - <Info> - stream.reassembly "depth": 1048576
> 6/12/2012 -- 13:06:29 - <Info> - stream.reassembly "toserver-chunk-size":
> 2560
> 6/12/2012 -- 13:06:29 - <Info> - stream.reassembly "toclient-chunk-size":
> 2560
> 6/12/2012 -- 13:06:29 - <Info> - AF_PACKET RX Ring params:
> block_size=32768 block_nr=52 frame_size=1584 frame_nr=1040
> 6/12/2012 -- 13:06:30 - <Info> - all 1 packet processing threads, 3
> management threads initialized, engine started.
>
you mention you have 8 cores. Did you configure 8 threads for AF_PACKET in
the yaml section?

af-packet:

    - interface: eth0

      # Number of receive threads (>1 will enable experimental flow pinned

      # runmode)

      threads: 1


you could try changing threads:1 to threads:8
that however should not be an issue in this case ...since your traffic is
only 15Mbs


>
>
> >>
> >>
> >> the ruleset is very simple with tcp, http and udp filters. Nothing
> >> really spectacular.
> >> I wouldn't expect the ruleset to be a problem because CPU load is very
> >> very low. (even on the 130Mbps IDS it's only at 150-180% of the 800%
> >> available)
> >>
> >>
> >> I'll re-read what Victor said and will continue hunting for the cause.
> >> Thanks for all these fast replies !
> >>
> >> Christophe
> >>
> >> >
> >> > thank you
> >> >
> >> >
> >> > On Thu, Dec 6, 2012 at 11:40 AM, Christophe Vandeplas
> >> > <christophe@vandeplas.com> wrote:
> >> >>
> >> >> On Thu, Dec 6, 2012 at 11:21 AM, Peter Manev <petermanev@gmail.com>
> >> >> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > what (how much) traffic do you average?
> >> >>
> >> >> Hello Peter,
> >> >>
> >> >> That was written in my mail, one of the IDSses sees only 15Mbps
> during
> >> >> the day on average. Spikes up to 40Mbps (but very short spikes 4
> times
> >> >> a day). That should certainly be feasible with such a system.
> >> >>
> >> >> Once I get that IDS working fine I'll finetune the settings of the
> >> >> others. (150 Mbps and 80 Mbps on average during the day)
> >> >>
> >> >>
> >> >> > On Thu, Dec 6, 2012 at 11:17 AM, Christophe Vandeplas
> >> >> > <christophe@vandeplas.com> wrote:
> >> >> >>
> >> >> >> Hello,
> >> >> >>
> >> >> >>
> >> >> >> Almost all my IDSses are having
> >> >> >> tcp.segment_memcap_drop
> >> >> >> tcp.reassembly_gap
> >> >> >>
> >> >> >> And some of them have
> >> >> >> tcp.ssn_memcap_drop
> >> >> >>
> >> >> >> I have been playing around with the memory settings in suricata,
> but
> >> >> >> I
> >> >> >> must admit it still looks very unclear to me, any help would
> really
> >> >> >> be
> >> >> >> appreciated.
> >> >> >>
> >> >> >> To attack this problem I'm now concentrating my efforts on the IDS
> >> >> >> dealing with the least traffic: during the day average of 15 Mbps.
> >> >> >> The IDS has 8 virtual-cores (4-core + ht = 8 ), and 8 GB of ram.
> And
> >> >> >> is sniffing using -i on a bond0 interface.
> >> >> >>
> >> >> >> The stats file is here: http://pastebin.com/kSVFDHRM
> >> >> >>
> >> >> >>
> >> >> >> Outputs that are on: fast, unified2, http, stats, syslog.
> >> >> >> I did not change anything in the threading section.
> >> >> >> Defrag is also default:
> >> >> >> defrag:
> >> >> >>   max-frags: 65535
> >> >> >>   prealloc: yes
> >> >> >>   timeout: 60
> >> >> >>
> >> >> >> Raised flow:
> >> >> >> flow:
> >> >> >>   memcap: 2gb
> >> >> >>   hash-size: 65536
> >> >> >>   prealloc: 10000
> >> >> >>   emergency-recovery: 30
> >> >> >>   prune-flows: 5
> >> >> >>
> >> >> >> Flow-timeouts are default, and I raised stream memcaps:
> >> >> >> stream:
> >> >> >>   memcap: 2gb
> >> >> >>   checksum-validation: yes      # reject wrong csums
> >> >> >>   inline: no                    # no inline mode
> >> >> >>   reassembly:
> >> >> >>     memcap: 1gb
> >> >> >>     depth: 8mb                  # reassemble 1mb into a stream
> >> >> >>     toserver-chunk-size: 2560
> >> >> >>     toclient-chunk-size: 2560
> >> >> >>
> >> >> >>
> >> >> >> Any advice to further finetune is welcome !
> >> >> >>
> >> >> >> Thanks a lot
> >> >> >> Christophe
> >> >> >> _______________________________________________
> >> >> >> Suricata IDS Users mailing list:
> >> >> >> oisf-users@openinfosecfoundation.org
> >> >> >> Site: http://suricata-ids.org | Support:
> >> >> >> http://suricata-ids.org/support/
> >> >> >> List:
> >> >> >>
> https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> >> >> >> OISF: http://www.openinfosecfoundation.org/
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Regards,
> >> >> > Peter Manev
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Regards,
> >> > Peter Manev
> >> >
> >
> >
> >
> >
> > --
> > Regards,
> > Peter Manev
> >
>



-- 
Regards,
Peter Manev

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 1:18 PM, Christophe Vandeplas \
<span dir="ltr">&lt;<a href="mailto:christophe@vandeplas.com" \
target="_blank">christophe@vandeplas.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div class="HOEnZb"><div class="h5">On Thu, Dec 6, 2012 at \
12:58 PM, Peter Manev &lt;<a \
href="mailto:petermanev@gmail.com">petermanev@gmail.com</a>&gt; wrote:<br> &gt;<br>
&gt;<br>
&gt; On Thu, Dec 6, 2012 at 12:26 PM, Christophe Vandeplas<br>
&gt; &lt;<a href="mailto:christophe@vandeplas.com">christophe@vandeplas.com</a>&gt; \
wrote:<br> &gt;&gt;<br>
&gt;&gt; trying to reply to all the questions, also from Anoop.<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Dec 6, 2012 at 11:55 AM, Peter Manev &lt;<a \
href="mailto:petermanev@gmail.com">petermanev@gmail.com</a>&gt; wrote:<br> &gt;&gt; \
&gt; Hi Cristophe,<br> &gt;&gt; &gt;<br>
&gt;&gt; &gt; sorry  - i missed the info from you.<br>
&gt;&gt; &gt; Ok HW is definitely enough for that traffic.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Do you use af_packet?<br>
&gt;&gt;<br>
&gt;&gt; no, I&#39;ll activate it on this IDS by using the  eth2 interface only.<br>
&gt;&gt; Fortunately that&#39;s an IDS where the bond0 was not really necessary,<br>
&gt;&gt; but we prefer to keep every IDS as identical as possible. I&#39;ll have \
to<br> &gt;&gt; dig into the AF_PACKET documentation to understand how I should<br>
&gt;&gt; configure it to receive on two physical interfaces.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Is Suriata running on all 8 cores?<br>
&gt;&gt;<br>
&gt;&gt; yep, on every machine it uses CPU from all cores.<br>
&gt;&gt;<br>
&gt;&gt; &gt; bond0 interface - is that bridged by any chance?<br>
&gt;&gt;<br>
&gt;&gt; nope, that is/was not bridged. As I just switched to direct interface<br>
&gt;&gt; usage with AF_PACKET to eth2. This is not relevant anymore.<br>
&gt;&gt;<br>
&gt;&gt; /etc/network/interfaces is<br>
&gt;&gt; auto eth2<br>
&gt;&gt; iface eth2 inet manual<br>
&gt;&gt;     pre-up ifconfig $IFACE up promisc<br>
&gt;&gt;     post-down ifconfig $IFACE down<br>
&gt;&gt;     bond-master bond0<br>
&gt;&gt;<br>
&gt;&gt; # bonding interfaces for easier sniffing<br>
&gt;&gt; auto bond0<br>
&gt;&gt; iface bond0 inet manual<br>
&gt;&gt;     pre-up ifconfig $IFACE up promisc<br>
&gt;&gt;     post-down ifconfig $IFACE down<br>
&gt;&gt;     bond-mode balance-rr<br>
&gt;&gt;     bond-miimon 100<br>
&gt;&gt;     bond-slaves none<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; Do you have checksums enabled or disabled?<br>
&gt;&gt;<br>
&gt;&gt; enabled (as shown below)<br>
&gt;&gt;<br>
&gt;&gt; &gt; FlowTimeout values - you should try to lower them.<br>
&gt;&gt;<br>
&gt;&gt; ok,<br>
&gt;&gt;<br>
&gt;&gt; &gt; Can you describe the ruleset you&#39;re using?<br>
&gt;&gt;<br>
&gt;&gt;  44538 signatures processed. 711 are IP-only rules, 43495 are<br>
&gt;&gt; inspecting packet payload, 13901 inspect application layer, 0 are<br>
&gt;&gt; decoder event only<br>
&gt;<br>
&gt; do i read this correctly - 44K rules? :)<br>
<br>
</div></div>yep :-)   we mainly use privately-shared lists of dns names/ips, ...<br>
of targeted attacks.<br>
Hostnames generate http, dns (udp/tcp) rules, so it grows quite fast)<br>
<div class="im"><br>
&gt; But more importantly - which Suriacta ver are you using?<br>
<br>
</div>Suricata 1.3.4 from the ubuntu ppa repo.<br></blockquote><div>I am glad to hear \
that you are using PPA :)<br>you should/could also give 1.4rc1 a try - located in our \
suricata-beta repository <br></div><blockquote class="gmail_quote" style="margin:0 0 \
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
New config is reloaded with suricata -D --pidfile<br>
/var/run/suricata.pid -c /etc/suricata/suricata.yaml --af-packet=eth2<br>
--runmode=workers<br>
raised flow.memcap to 3gb   (was 2gb)<br>
raised stream.memcap to 3gb (was 2gb)<br>
lowered stream.reassembly.memcap to 1mb (default)<br>
<br>
So that 6 GB of the 8 GB, that gives 2 GB for the rest of suri and the<br>
OS. Is that a correct interpretation?<br>
<br>
<br>
From the new stats (<a href="http://pastebin.com/HNWRUBEM" \
target="_blank">http://pastebin.com/HNWRUBEM</a> ) I see that the<br> \
tcp.reassembly_gap is raising quickly (997)<br> There are no drops<br>
capture.kernel_drops      | AFPacketeth21             | 0<br>
tcp.ssn_memcap_drop       | AFPacketeth21             | 0<br>
tcp.segment_memcap_drop   | AFPacketeth21             | 0<br>
<br>
But this seems weird, the decoder sees less packets (272) than the<br>
kernel. While the kernel reports no drops. Or that&#39;s perhaps because<br>
it&#39;s somewhere in between?<br>
capture.kernel_packets    | AFPacketeth21             | 948484<br>
capture.kernel_drops      | AFPacketeth21             | 0<br>
decoder.pkts              | AFPacketeth21             | 948756<br>
<br>
<br>
<br>
<br>
<br>
At startup suri now says:<br>
6/12/2012 -- 13:04:11 - &lt;Info&gt; - 11 rule files processed. 43201 rules<br>
succesfully loaded, 60 rules failed<br>
6/12/2012 -- 13:05:49 - &lt;Info&gt; - 44538 signatures processed. 711 are<br>
<div class="im">IP-only rules, 43495 are inspecting packet payload, 13901 inspect<br>
application layer, 0 are decoder event only<br>
</div>6/12/2012 -- 13:05:49 - &lt;Info&gt; - building signature grouping<br>
structure, stage 1: adding signatures to signature source addresses...<br>
complete<br>
6/12/2012 -- 13:05:50 - &lt;Info&gt; - building signature grouping<br>
structure, stage 2: building source address list... complete<br>
6/12/2012 -- 13:06:16 - &lt;Info&gt; - building signature grouping<br>
structure, stage 3: building destination address lists... complete<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Threshold config parsed: 0 rule(s) found<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Core dump size set to unlimited.<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - fast output device (regular)<br>
initialized: fast.log<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Unified2-alert initialized: filename<br>
unified2.alert, limit 32 MB<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - http-log output device (regular)<br>
initialized: http.log<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Using round-robin cluster mode for<br>
AF_PACKET (iface eth2)<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Enabling mmaped capture on iface eth2<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - Going to use 1 thread(s)<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - RunModeIdsAFPSingle initialised<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream &quot;max-sessions&quot;: 262144<br>
6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream &quot;prealloc-sessions&quot;: \
32768<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream &quot;memcap&quot;: \
3221225472<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream &quot;midstream&quot; \
session pickups: disabled<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream \
&quot;async-oneside&quot;: disabled<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream \
&quot;checksum-validation&quot;: enabled<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - \
stream.&quot;inline&quot;: disabled<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - \
Enabling zero copy mode<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - stream.reassembly \
&quot;memcap&quot;: 1073741824<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; - \
stream.reassembly &quot;depth&quot;: 1048576<br> 6/12/2012 -- 13:06:29 - &lt;Info&gt; \
- stream.reassembly &quot;toserver-chunk-size&quot;: 2560<br> 6/12/2012 -- 13:06:29 - \
&lt;Info&gt; - stream.reassembly &quot;toclient-chunk-size&quot;: 2560<br> 6/12/2012 \
-- 13:06:29 - &lt;Info&gt; - AF_PACKET RX Ring params:<br> block_size=32768 \
block_nr=52 frame_size=1584 frame_nr=1040<br> 6/12/2012 -- 13:06:30 - &lt;Info&gt; - \
all 1 packet processing threads, 3<br> management threads initialized, engine \
started.<br></blockquote><div>you mention you have 8 cores. Did you configure 8 \
threads for AF_PACKET in the yaml section?<br><table class="filecontent \
syntaxhl"><tbody><tr><td class="line-code"> <pre><font size="4">af-packet:
</font></pre>
    </td>
  </tr>
  <tr>
    
      
    
    <td class="line-code">
      <pre><font size="4">  - interface: eth0
</font></pre>
    </td>
  </tr>
  <tr>
    
      
    
    <td class="line-code">
      <pre><font size="4">    # Number of receive threads (&gt;1 will enable \
experimental flow pinned </font></pre>
    </td>
  </tr>
  <tr>
    
      
    
    <td class="line-code">
      <pre><font size="4">    # runmode)
</font></pre>
    </td>
  </tr>
  <tr>
    
      
    
    <td class="line-code">
      <pre><font size="4">    threads: 1
</font></pre></td></tr></tbody></table><br>you could try changing threads:1 to \
threads:8 <br>that however should not be an issue in this case ...since your traffic \
is only 15Mbs<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; the ruleset is very simple with tcp, http and udp filters. Nothing<br>
&gt;&gt; really spectacular.<br>
&gt;&gt; I wouldn&#39;t expect the ruleset to be a problem because CPU load is \
very<br> &gt;&gt; very low. (even on the 130Mbps IDS it&#39;s only at 150-180% of the \
800%<br> &gt;&gt; available)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ll re-read what Victor said and will continue hunting for the \
cause.<br> &gt;&gt; Thanks for all these fast replies !<br>
&gt;&gt;<br>
&gt;&gt; Christophe<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; thank you<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Dec 6, 2012 at 11:40 AM, Christophe Vandeplas<br>
&gt;&gt; &gt; &lt;<a \
href="mailto:christophe@vandeplas.com">christophe@vandeplas.com</a>&gt; wrote:<br> \
&gt;&gt; &gt;&gt;<br> &gt;&gt; &gt;&gt; On Thu, Dec 6, 2012 at 11:21 AM, Peter Manev \
&lt;<a href="mailto:petermanev@gmail.com">petermanev@gmail.com</a>&gt;<br> &gt;&gt; \
&gt;&gt; wrote:<br> &gt;&gt; &gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; what (how much) traffic do you average?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hello Peter,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; That was written in my mail, one of the IDSses sees only 15Mbps \
during<br> &gt;&gt; &gt;&gt; the day on average. Spikes up to 40Mbps (but very short \
spikes 4 times<br> &gt;&gt; &gt;&gt; a day). That should certainly be feasible with \
such a system.<br> &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Once I get that IDS working fine I&#39;ll finetune the settings of \
the<br> &gt;&gt; &gt;&gt; others. (150 Mbps and 80 Mbps on average during the \
day)<br> &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; On Thu, Dec 6, 2012 at 11:17 AM, Christophe Vandeplas<br>
&gt;&gt; &gt;&gt; &gt; &lt;<a \
href="mailto:christophe@vandeplas.com">christophe@vandeplas.com</a>&gt; wrote:<br> \
&gt;&gt; &gt;&gt; &gt;&gt;<br> &gt;&gt; &gt;&gt; &gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Almost all my IDSses are having<br>
&gt;&gt; &gt;&gt; &gt;&gt; tcp.segment_memcap_drop<br>
&gt;&gt; &gt;&gt; &gt;&gt; tcp.reassembly_gap<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; And some of them have<br>
&gt;&gt; &gt;&gt; &gt;&gt; tcp.ssn_memcap_drop<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; I have been playing around with the memory settings in \
suricata, but<br> &gt;&gt; &gt;&gt; &gt;&gt; I<br>
&gt;&gt; &gt;&gt; &gt;&gt; must admit it still looks very unclear to me, any help \
would really<br> &gt;&gt; &gt;&gt; &gt;&gt; be<br>
&gt;&gt; &gt;&gt; &gt;&gt; appreciated.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; To attack this problem I&#39;m now concentrating my \
efforts on the IDS<br> &gt;&gt; &gt;&gt; &gt;&gt; dealing with the least traffic: \
during the day average of 15 Mbps.<br> &gt;&gt; &gt;&gt; &gt;&gt; The IDS has 8 \
virtual-cores (4-core + ht = 8 ), and 8 GB of ram. And<br> &gt;&gt; &gt;&gt; &gt;&gt; \
is sniffing using -i on a bond0 interface.<br> &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; The stats file is here: <a \
href="http://pastebin.com/kSVFDHRM" \
target="_blank">http://pastebin.com/kSVFDHRM</a><br> &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Outputs that are on: fast, unified2, http, stats, \
syslog.<br> &gt;&gt; &gt;&gt; &gt;&gt; I did not change anything in the threading \
section.<br> &gt;&gt; &gt;&gt; &gt;&gt; Defrag is also default:<br>
&gt;&gt; &gt;&gt; &gt;&gt; defrag:<br>
&gt;&gt; &gt;&gt; &gt;&gt;   max-frags: 65535<br>
&gt;&gt; &gt;&gt; &gt;&gt;   prealloc: yes<br>
&gt;&gt; &gt;&gt; &gt;&gt;   timeout: 60<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Raised flow:<br>
&gt;&gt; &gt;&gt; &gt;&gt; flow:<br>
&gt;&gt; &gt;&gt; &gt;&gt;   memcap: 2gb<br>
&gt;&gt; &gt;&gt; &gt;&gt;   hash-size: 65536<br>
&gt;&gt; &gt;&gt; &gt;&gt;   prealloc: 10000<br>
&gt;&gt; &gt;&gt; &gt;&gt;   emergency-recovery: 30<br>
&gt;&gt; &gt;&gt; &gt;&gt;   prune-flows: 5<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Flow-timeouts are default, and I raised stream \
memcaps:<br> &gt;&gt; &gt;&gt; &gt;&gt; stream:<br>
&gt;&gt; &gt;&gt; &gt;&gt;   memcap: 2gb<br>
&gt;&gt; &gt;&gt; &gt;&gt;   checksum-validation: yes      # reject wrong csums<br>
&gt;&gt; &gt;&gt; &gt;&gt;   inline: no                    # no inline mode<br>
&gt;&gt; &gt;&gt; &gt;&gt;   reassembly:<br>
&gt;&gt; &gt;&gt; &gt;&gt;     memcap: 1gb<br>
&gt;&gt; &gt;&gt; &gt;&gt;     depth: 8mb                  # reassemble 1mb into a \
stream<br> &gt;&gt; &gt;&gt; &gt;&gt;     toserver-chunk-size: 2560<br>
&gt;&gt; &gt;&gt; &gt;&gt;     toclient-chunk-size: 2560<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Any advice to further finetune is welcome !<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thanks a lot<br>
&gt;&gt; &gt;&gt; &gt;&gt; Christophe<br>
&gt;&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt;&gt; Suricata IDS Users mailing list:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a \
href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
 &gt;&gt; &gt;&gt; &gt;&gt; Site: <a href="http://suricata-ids.org" \
target="_blank">http://suricata-ids.org</a> | Support:<br> &gt;&gt; &gt;&gt; &gt;&gt; \
<a href="http://suricata-ids.org/support/" \
target="_blank">http://suricata-ids.org/support/</a><br> &gt;&gt; &gt;&gt; &gt;&gt; \
List:<br> &gt;&gt; &gt;&gt; &gt;&gt; <a \
href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" \
target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
 &gt;&gt; &gt;&gt; &gt;&gt; OISF: <a href="http://www.openinfosecfoundation.org/" \
target="_blank">http://www.openinfosecfoundation.org/</a><br> &gt;&gt; &gt;&gt; \
&gt;<br> &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; --<br>
&gt;&gt; &gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt;&gt; &gt; Peter Manev<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Peter Manev<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Peter Manev<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Regards,</div>
<div>Peter Manev</div><br>



_______________________________________________
Suricata IDS Users mailing list: oisf-users@openinfosecfoundation.org
Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
OISF: http://www.openinfosecfoundation.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic