public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* profile my proto_hook.function
@ 2011-04-12 14:00 zhou rui
  2011-04-12 14:03 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: zhou rui @ 2011-04-12 14:00 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-12 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 14:00 profile my proto_hook.function zhou rui
2011-04-12 14:03 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox