All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Heffner <jheffner@psc.edu>
To: Bill Fink <billfink@mindspring.com>
Cc: Rick Jones <rick.jones2@hp.com>,
	hadi@cyberus.ca, David Miller <davem@davemloft.net>,
	krkumar2@in.ibm.com, gaagaan@gmail.com,
	general@lists.openfabrics.org, herbert@gondor.apana.org.au,
	jagana@us.ibm.com, jeff@garzik.org, johnpol@2ka.mipt.ru,
	kaber@trash.net, mcarlson@broadcom.com, mchan@broadcom.com,
	netdev@vger.kernel.org, peter.p.waskiewicz.jr@intel.com,
	rdreier@cisco.com, Robert.Olsson@data.slu.se,
	shemminger@linux-foundation.org, sri@us.ibm.com, tgraf@suug.ch,
	xma@us.ibm.com
Subject: Re: [PATCH 0/9 Rev3] Implement batching skb API and support in IPoIB
Date: Fri, 24 Aug 2007 20:42:59 -0400	[thread overview]
Message-ID: <46CF7B13.3020701@psc.edu> (raw)
In-Reply-To: <20070823231820.2ae52cc0.billfink@mindspring.com>

Bill Fink wrote:
> Here you can see there is a major difference in the TX CPU utilization
> (99 % with TSO disabled versus only 39 % with TSO enabled), although
> the TSO disabled case was able to squeeze out a little extra performance
> from its extra CPU utilization.  Interestingly, with TSO enabled, the
> receiver actually consumed more CPU than with TSO disabled, so I guess
> the receiver CPU saturation in that case (99 %) was what restricted
> its performance somewhat (this was consistent across a few test runs).


One possibility is that I think the receive-side processing tends to do 
better when receiving into an empty queue.  When the (non-TSO) sender is 
the flow's bottleneck, this is going to be the case.  But when you 
switch to TSO, the receiver becomes the bottleneck and you're always 
going to have to put the packets at the back of the receive queue.  This 
might help account for the reason why you have both lower throughput and 
higher CPU utilization -- there's a point of instability right where the 
receiver becomes the bottleneck and you end up pushing it over to the 
bad side. :)

Just a theory.  I'm honestly surprised this effect would be so 
significant.  What do the numbers from netstat -s look like in the two 
cases?

   -John

  parent reply	other threads:[~2007-08-25  0:43 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17  6:06 [PATCH 0/9 Rev3] Implement batching skb API and support in IPoIB Krishna Kumar2
2007-08-21  7:18 ` David Miller
2007-08-21 12:30   ` [ofa-general] " jamal
2007-08-21 18:51     ` David Miller
2007-08-21 21:09       ` jamal
2007-08-21 22:50         ` David Miller
2007-08-22  4:11       ` [ofa-general] " Krishna Kumar2
2007-08-22  4:22         ` David Miller
2007-08-22  7:03           ` Krishna Kumar2
2007-08-22  9:14             ` David Miller
2007-08-23  2:43               ` Krishna Kumar2
2007-08-22 17:09           ` [ofa-general] " Rick Jones
2007-08-22 20:21             ` David Miller
2007-08-23 22:04               ` [ofa-general] " jamal
2007-08-23 22:25                 ` jamal
2007-08-23 22:35                   ` [ofa-general] " Rick Jones
2007-08-23 22:41                     ` jamal
2007-08-24  3:18                     ` Bill Fink
2007-08-24 12:14                       ` jamal
2007-08-24 18:08                         ` Bill Fink
2007-08-24 21:25                         ` David Miller
2007-08-24 23:11                           ` Herbert Xu
2007-08-25 23:45                             ` Bill Fink
2007-08-24 18:46                       ` [ofa-general] " Rick Jones
2007-08-25  0:42                       ` John Heffner [this message]
2007-08-26  8:41                         ` Bill Fink
2007-08-27  1:32                           ` John Heffner
2007-08-27  2:04                             ` David Miller
2007-08-27 23:23                               ` jamal
2007-09-14  7:20                                 ` [ofa-general] " Bill Fink
2007-09-14 13:44                                   ` TSO, TCP Cong control etc jamal
2007-09-14 17:24                                   ` [PATCH 0/9 Rev3] Implement batching skb API and support in IPoIB David Miller
2007-08-23 22:30                 ` David Miller
2007-08-23 22:38                   ` [ofa-general] " jamal
2007-08-24  3:34                     ` Stephen Hemminger
2007-08-24 12:36                       ` jamal
2007-08-24 16:25                       ` Rick Jones
     [not found] <20070828.215150.98552996.davem@davemloft.net>
     [not found] ` <OF46DAD75A.5ADE5863-ON65257346.001C9AA3-65257346.001CB0F4@in.ibm.com>
     [not found]   ` <20070828.221448.123919361.davem@davemloft.net>
2007-08-29 16:43     ` Waskiewicz Jr, Peter P
2007-09-03  9:21 ` Krishna Kumar2
  -- strict thread matches above, loose matches on Subject: below --
2007-08-14  9:39 Krishna Kumar2
2007-08-08 22:01 [ofa-general] " David Miller
2007-08-09  4:19 ` Krishna Kumar2
2007-08-09  4:27   ` David Miller
2007-08-09  6:26     ` Krishna Kumar2
2007-08-08 13:42 [ofa-general] " Herbert Xu
2007-08-09  0:06 ` Shirley Ma
2007-08-08 10:49 [ofa-general] " David Miller
2007-08-08 11:09 ` Krishna Kumar2

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=46CF7B13.3020701@psc.edu \
    --to=jheffner@psc.edu \
    --cc=Robert.Olsson@data.slu.se \
    --cc=billfink@mindspring.com \
    --cc=davem@davemloft.net \
    --cc=gaagaan@gmail.com \
    --cc=general@lists.openfabrics.org \
    --cc=hadi@cyberus.ca \
    --cc=herbert@gondor.apana.org.au \
    --cc=jagana@us.ibm.com \
    --cc=jeff@garzik.org \
    --cc=johnpol@2ka.mipt.ru \
    --cc=kaber@trash.net \
    --cc=krkumar2@in.ibm.com \
    --cc=mcarlson@broadcom.com \
    --cc=mchan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    --cc=rdreier@cisco.com \
    --cc=rick.jones2@hp.com \
    --cc=shemminger@linux-foundation.org \
    --cc=sri@us.ibm.com \
    --cc=tgraf@suug.ch \
    --cc=xma@us.ibm.com \
    /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.