All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jorrit Kronjee <j.kronjee@infopact.nl>
To: Eric Dumazet <eric.dumazet@gmail.com>, netfilter-devel@vger.kernel.org
Subject: Re: debugging kernel during packet drops
Date: Fri, 26 Mar 2010 16:54:05 +0100	[thread overview]
Message-ID: <4BACD89D.4090404@infopact.nl> (raw)
In-Reply-To: <1269613065.2839.74.camel@edumazet-laptop>

Eric,

Changing the "expire"-value doesn't seem to have much effect, since the
traffic I'm sending updates the expiration value too regularly anyway.
However, changing the garbage collector interval made the amount of
interrupts drop from ~1900 irqs/s to ~50 irqs/s according to perf top.

I tried cranking up the traffic to see how far I can push it, but I'm
starting to reach the limitations of my DoS machine. I can now bridge
about 390 kpps without any packet drops.

Regards,

Jorrit Kronjee

On 3/26/2010 3:17 PM, Eric Dumazet wrote:
> Le vendredi 26 mars 2010 à 11:41 +0100, Jorrit Kronjee a écrit :
>
>   
>> And iptables-save -c produced this:
>> # Generated by iptables-save v1.4.4 on Fri Mar 26 11:24:59 2010
>> *filter
>> :INPUT ACCEPT [1043:60514]
>> :FORWARD ACCEPT [0:0]
>> :OUTPUT ACCEPT [942:282723]
>> [99563191:3783420610] -A FORWARD -m hashlimit --hashlimit-upto 10000/sec
>> --hashlimit-burst 100 --hashlimit-mode dstip --hashlimit-name hashtable
>> --hashlimit-htable-max 131072 --hashlimit-htable-expire 1000 -j ACCEPT
>> [0:0] -A FORWARD -m limit --limit 5/sec -j LOG --log-prefix "HASHLIMITED
>> -- "
>>     
> Hmm, --hashlimit-htable-expire 1000 & gcinterval 1000 (default) are very
> aggressive.
>
> That might explain high number of spinlocks/unlocks (many entries are
> inserted/deleted per second)
>
> I would let entries forever in table (no more expensive locks/unlocks)
>
> --hashlimit-htable-expire 100000
> --hashlimit-htable-gcinterval 3600000   (garbage collect every hour)
> --hashlimit-htable-size 65536
>
>
>   

-- 
Manager ICT

Infopact Network Solutions
Hoogvlietsekerkweg 170
3194 AM  Rotterdam Hoogvliet
tel. +31 (0)88 - 4636700
fax. +31 (0)88 - 4636799
j.kronjee@infopact.nl
http://www.infopact.nl/ 


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-03-26 15:54 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22 10:41 debugging kernel during packet drops Jorrit Kronjee
2010-03-22 17:16 ` Patrick McHardy
2010-03-22 17:53   ` Jan Engelhardt
2010-03-22 18:02     ` Patrick McHardy
2010-03-23 15:14   ` Jorrit Kronjee
2010-03-23 15:39     ` Patrick McHardy
2010-03-23 17:21     ` Eric Dumazet
2010-03-23 20:07       ` Eric Dumazet
2010-03-24 15:20       ` Jorrit Kronjee
2010-03-24 16:21         ` Eric Dumazet
2010-03-24 16:28           ` Jan Engelhardt
2010-03-24 17:04             ` Eric Dumazet
2010-03-24 17:25               ` Jan Engelhardt
2010-03-25  9:32           ` Eric Dumazet
2010-03-25 10:35             ` Patrick McHardy
2010-03-25 11:02               ` Eric Dumazet
2010-03-31 12:23                 ` [PATCH nf-next-2.6] xt_hashlimit: RCU conversion Eric Dumazet
2010-04-01 11:03                   ` Patrick McHardy
2010-04-01 12:10                     ` Eric Dumazet
2010-04-01 12:36                       ` Patrick McHardy
2010-03-25 12:42               ` debugging kernel during packet drops Jan Engelhardt
2010-03-30 12:06               ` Jan Engelhardt
2010-03-30 14:12                 ` Patrick McHardy
2010-03-26 10:41             ` Jorrit Kronjee
2010-03-26 11:21               ` Eric Dumazet
2010-03-26 14:17               ` Eric Dumazet
2010-03-26 15:54                 ` Jorrit Kronjee [this message]
2010-03-23 17:04 ` James King
2010-03-23 17:23   ` Eric Dumazet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BACD89D.4090404@infopact.nl \
    --to=j.kronjee@infopact.nl \
    --cc=eric.dumazet@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.