netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* same application has different performance with kernel 2.6.32/34/36
@ 2011-04-29 14:46 zhou rui
  2011-04-29 15:48 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: zhou rui @ 2011-04-29 14:46 UTC (permalink / raw)
  To: netdev; +Cc: jon.zhou

hi
my test application add a packet hook via  dev_add_pack(&prot_hook);
then copy the packet to a shared memory between userspace and kernel

tests wereperformed at same machine(DL380 G7, 12cores, intel X520 10G
nic),same traffic,same nic driver(ixgbe 3.3.9)

kernel 2.6.32.12 (SUSE SLES11,SP1)
APPlication cpu usage: 5-6%


kernel updated to  2.6.34.7
APPlication cpu usage: 19-25%

kernel 2.6.36.4 (enable/disable RPS)
APPlication cpu usage 35-40%


before I installing profile tool to find the root cause, any idea about it?
'top' result is not accurate  in older kernel? or any kernel
module/feature impact this?

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

* Re: same application has different performance with kernel 2.6.32/34/36
  2011-04-29 14:46 same application has different performance with kernel 2.6.32/34/36 zhou rui
@ 2011-04-29 15:48 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2011-04-29 15:48 UTC (permalink / raw)
  To: zhou rui; +Cc: netdev, jon.zhou

On Fri, 29 Apr 2011 22:46:04 +0800
zhou rui <zhourui.cn@gmail.com> wrote:

> hi
> my test application add a packet hook via  dev_add_pack(&prot_hook);
> then copy the packet to a shared memory between userspace and kernel
> 
> tests wereperformed at same machine(DL380 G7, 12cores, intel X520 10G
> nic),same traffic,same nic driver(ixgbe 3.3.9)
> 
> kernel 2.6.32.12 (SUSE SLES11,SP1)
> APPlication cpu usage: 5-6%
> 
> 
> kernel updated to  2.6.34.7
> APPlication cpu usage: 19-25%
> 
> kernel 2.6.36.4 (enable/disable RPS)
> APPlication cpu usage 35-40%
> 
> 
> before I installing profile tool to find the root cause, any idea about it?
> 'top' result is not accurate  in older kernel? or any kernel
> module/feature impact this?

The report is appreciated, but since your application is not part of the main
kernel, developers are going to be unable to provide much direct help.
If it is closed source, go away we won't help with closed kernel components.
If it is open source, post a link where people can download it.

This is the kind of problem that requires effort and running multiple
times and using kernel bisection can show which change had the most impact.
It could be driver, scheduling or the change to packet steering.


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

end of thread, other threads:[~2011-04-29 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 14:46 same application has different performance with kernel 2.6.32/34/36 zhou rui
2011-04-29 15:48 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).