All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Welte <laforge@gnumonks.org>
To: zhengchuanbo <zhengcb@netpower.com.cn>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: about the performance of netfilter
Date: Thu, 25 Jul 2002 09:28:11 +0200	[thread overview]
Message-ID: <20020725092811.Z15533@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <200207242128878.SM00796@zhengcb>; from zhengcb@netpower.com.cn on Wed, Jul 24, 2002 at 09:24:56PM +0800

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

On Wed, Jul 24, 2002 at 09:24:56PM +0800, zhengchuanbo wrote:
> 
> we use a linux router. i just tested the performance of the router. when the
> kernel  is build without netfilter support,the throughput of 64bytes frame is
> about 45%. when i build the kernel with netfilter (only the ip_filter
> module),the throughput dropped to 24%, without any rules.

I assume you are talking about the iptable_filter module? 

The loss from 45 to 25 percent sounds reasonable.  You add computational 
overhead to the codepath for every packet.  

That initially you only achieve 45% (of what input packet rate?) indicates that
your system is in severe need of tuning.  

Please look through the mailinglist archives to find out about NAPI and
related work.

> zhengcb@netpower.com.cn

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2002-07-25 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24 13:24 about the performance of netfilter zhengchuanbo
2002-07-25  7:27 ` Rusty Russell
2002-07-25  7:28 ` Harald Welte [this message]
2002-07-30 16:29 ` Bill Davidsen

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=20020725092811.Z15533@sunbeam.de.gnumonks.org \
    --to=laforge@gnumonks.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhengcb@netpower.com.cn \
    /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.