Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: Steve Fink <sphink@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: CPU usage of simple DROP rule
Date: Wed, 30 Sep 2009 10:02:02 +0200	[thread overview]
Message-ID: <20090930100202.7f86497f@catlap> (raw)
In-Reply-To: <7d7f2e8c0909291245i5c9bf0bal93757ce374c406d6@mail.gmail.com>

Hello,

>Well, I was originally having a problem with the CPU load distribution
>independent of netfilter. Initially, one CPU was getting the bulk of
>..
>(single) sending thread was running on CPU0, which mattered more than
>the smp_affinity of the irqs themselves.

Well, in my line of work I'm mostly dealing with routed/bridged traffic
not localy generated. That would explain different results of
setting smp_affinity.

>How would I know if I'm using intel i/o dma or whatever? 4 of my 6
>total gigabit NICs are using the e1000e driver. The other two are the
>'igb' driver, whatever that is.  modinfo says "Intel(R) PRO/1000
>Network Driver" for e1000e and "Intel(R) Gigabit Ethernet Network
>Driver" for igb. lspci says

There is some info about i/o at:
http://downloadmirror.intel.com/10959/eng/README.txt
... but it seems it can speed up receiving
not transimitting :(

>By "nic coalesce parameters", do you mean TxIntDelay and
>TxAbsIntDelay, or InterruptThrottleRate, or IntMode (all for e1000e)?
>Or something else? How can I tell what the current settings are?
>(Sorry, that's probably a basic question.)

I mean those settings: tx-usecs, tx-frames, tx-usecs-irq,
tx-frames-irq. They can be set by ethtool binary. AFAIK by default
there is no coalescence enabled (at least at my boxes I don't see any).
Meaning of parameters is well described here:
http://www.mail-archive.com/netdev@vger.kernel.org/msg14995.html

"> tx-usecs: 400
> tx-frames: 53
> tx-usecs-irq: 490
> tx-frames-irq: 5

The first tx interrupt will be generated after 53 packets are
transmitted or 400 microseconds after the nth packet is transmitted (1
<= n < 53). When irq is disabled, 5 packets or 490 micosecs before
updating status."

Cheers
Marek Kierdelewicz

      reply	other threads:[~2009-09-30  8:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29 18:31 CPU usage of simple DROP rule Steve Fink
2009-09-29 19:27 ` Marek Kierdelewicz
2009-09-29 19:45   ` Steve Fink
2009-09-30  8:02     ` Marek Kierdelewicz [this message]

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=20090930100202.7f86497f@catlap \
    --to=marek@piasta.pl \
    --cc=netfilter@vger.kernel.org \
    --cc=sphink@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox