From: zhou rui <zhourui.cn@gmail.com>
To: netdev@vger.kernel.org
Subject: profile my proto_hook.function
Date: Tue, 12 Apr 2011 22:00:24 +0800 [thread overview]
Message-ID: <BANLkTi==HczThr66Yr0-Rm-RkEUw44sqrg@mail.gmail.com> (raw)
hi
I used a prot_hook(added via dev_add_pack,protocol=ETH_P_ALL) to
process packets in kernel part.but the performance was bad
ksoftirqd used almost 100% cpu on my 1G nic(intel e1000,w/o RSS) XEON
5400 hypertown machine.
looks my packet processing is too slow. but how to profile this?
i.e. how many CPU resources used in softirq and normal kernel protocol
stack(tcp/ip,etc)
and how many used in my packet processing function?
and any idea to improve it?how about moving the processing function to driver?
thanks
rui
next reply other threads:[~2011-04-12 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 14:00 zhou rui [this message]
2011-04-12 14:03 ` profile my proto_hook.function 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='BANLkTi==HczThr66Yr0-Rm-RkEUw44sqrg@mail.gmail.com' \
--to=zhourui.cn@gmail.com \
--cc=netdev@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.