From: Ravi Chamarti <ravi_chamarti@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Ref: zerocopy +netfilter performance problem.
Date: Tue, 16 Oct 2001 09:08:28 -0700 (PDT) [thread overview]
Message-ID: <20011016160828.26155.qmail@web20901.mail.yahoo.com> (raw)
In-Reply-To: <20011016175908.A2258@se1.cogenit.fr>
Hi all.
I am kind of new to this forum and am not sure whether
to pose this question in linux-kernel or linux-net
I am using linux kernel 2.4.4 and having performance
problem using zerocopy code and netfilter code in the
kernel.
I have been using zerocopy path through network stack
and things are going fine with that. Until I tried
enabling netfilter support in the kernel. The way I am
using zerocopy code is by passing kernel physical
pages directly to tcp_sendpage and letting network
code and NIC do the rest.
I enabled only network packet filter option inorder to
register my own nf_hook. I haven't enabled other
options like netfitler debugging/socket
filtering/conntrack/iptables/ipchains compt.
Idea is to register my hook and do a little work with
the packet header but not with the data. I do have one
small hook which just return NF_ACCEPT and do nothing
with the packet.
I am not intending to use any netfilter hooks for
zerocopy path, however would like to use netfiler
hooks for some non-zerocopy path traffic.
What I see that a skb with frag list is getting copied
in the netfilter hook call (nf_hook_slow) ( I guess
skb_linearize routine is remapping all physical pages
and copies into a kernel buffer).
My question is that is this copy is required for
netfilter to work? Do we somehow get around
with netfilter to work such that the zerocopy path
passes the packet without any copy?
Thanks
Ravi Chamarti.
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
next prev parent reply other threads:[~2001-10-16 16:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-13 18:26 2.4.13pre2aa1 Andrea Arcangeli
2001-10-15 17:31 ` new VM: what is classzone ? Martin Devera
2001-10-15 18:11 ` How many versions of VM are there? M. Edward (Ed) Borasky
2001-10-15 20:58 ` Slo Mo Snail
2001-10-15 21:15 ` Mike Fedyk
2001-10-15 22:24 ` Tim Moore
2001-10-15 22:29 ` Mike Fedyk
2001-10-15 22:41 ` Gerhard Mack
2001-10-16 11:23 ` snpe
2001-10-16 10:39 ` Very old kernel Kirill Ratkin
2001-10-16 13:30 ` David Weinehall
2001-10-16 12:45 ` sendto syscall is slow Martin Devera
2001-10-16 13:00 ` Martin Dalecki
2001-10-16 13:56 ` Martin Devera
2001-10-16 15:59 ` Francois Romieu
2001-10-16 16:08 ` Ravi Chamarti [this message]
2001-10-16 16:15 ` Martin Devera
2001-10-16 17:02 ` Francois Romieu
2001-10-16 17:11 ` Martin Devera
[not found] <200110171818.WAA22378@ms2.inr.ac.ru>
2001-10-18 18:41 ` Ref: zerocopy +netfilter performance problem Ravi Chamarti
2001-10-18 18:47 ` kuznet
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=20011016160828.26155.qmail@web20901.mail.yahoo.com \
--to=ravi_chamarti@yahoo.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®