From: Thomas Mader <thezema@gmail.com>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Netfilter Development Mailinglist
<netfilter-devel@vger.kernel.org>,
Patrick McHardy <kaber@trash.net>
Subject: Re: Throughput test for kernelspace module vs. userspace daemon with strange results
Date: Fri, 11 Apr 2008 17:01:01 +0200 [thread overview]
Message-ID: <47FF7D2D.20804@gmail.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0804111509140.21182@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
> You are using a raw socket in userspace, which effectively
> bypasses Netfilter.
> To make a meaningful test of it, the PF_RAW code would need
> an NF_HOOK into iptables to make a more accurate comparison I think.
I don't understand what you mean since I also have a raw socket in
kernelspace. Is it because I use kernel_sendmsg to send the icmp packet
in kernelspace? I cannot believe that I get a ~5mbit/s decrease in
throughput only because the sent icmp packets go through my module in
kernelspace but not in userspace.
Nevertheless I removed the icmp send stuff from both and tested again.
Now I get 95.60mbit/s for kernelspace and 95.69mbit/s for userspace. I
think I can conclude that there is no drawback in throughput performance
by using the userspace daemon, though the reason for it is still unknown.
prev parent reply other threads:[~2008-04-11 15:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 13:01 Throughput test for kernelspace module vs. userspace daemon with strange results Thomas Mader
2008-04-11 13:10 ` Jan Engelhardt
2008-04-11 13:16 ` Patrick McHardy
2008-04-11 15:01 ` Thomas Mader [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=47FF7D2D.20804@gmail.com \
--to=thezema@gmail.com \
--cc=jengelh@computergmbh.de \
--cc=kaber@trash.net \
--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.