Linux virtualization list
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: libertas-dev@lists.infradead.org, Dan Williams <dcbw@redhat.com>,
	netdev@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	Roland Dreier <rolandd@cisco.com>, Divy Le Ray <divy@chelsio.com>,
	Pavel Emelianov <xemul@openvz.org>
Subject: Re: [PATCH 1/4] net: skb_orphan on dev_hard_start_xmit
Date: Mon, 1 Jun 2009 21:57:28 +0930	[thread overview]
Message-ID: <200906012157.29465.rusty@rustcorp.com.au> (raw)
In-Reply-To: <4A1FFB04.30305@gmail.com>

On Sat, 30 May 2009 12:41:00 am Eric Dumazet wrote:
> Rusty Russell a écrit :
> > DaveM points out that there are advantages to doing it generally (it's
> > more likely to be on same CPU than after xmit), and I couldn't find
> > any new starvation issues in simple benchmarking here.
>
> If really no starvations are possible at all, I really wonder why some
> guys added memory accounting to UDP flows. Maybe they dont run "simple
> benchmarks" but real apps ? :)

Well, without any accounting at all you could use quite a lot of memory as 
there are many places packets can be queued.

> For TCP, I agree your patch is a huge benefit, since its paced by remote
> ACKS and window control

I doubt that.  There'll be some cache friendliness, but I'm not sure it'll be 
measurable, let alone "huge".  It's the win to drivers which don't have a 
timely and batching tx free mechanism which I aim for.

> , but an UDP sender will likely be able to saturate
> a link.

I couldn't see any difference in saturation here (with default scheduler and an 
100MBit e1000e).  Two reasons come to mind: firstly, only the hardware queue is 
unregulated: the tx queue is still accounted.  And when you add scheduling to 
the mix, I can't in practice cause starvation of other senders.

Hope that clarifies,
Rusty.

  parent reply	other threads:[~2009-06-01 12:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200905292344.56814.rusty@rustcorp.com.au>
2009-05-29 15:11 ` [PATCH 1/4] net: skb_orphan on dev_hard_start_xmit Eric Dumazet
     [not found] ` <4A1FFB04.30305@gmail.com>
2009-06-01 12:27   ` Rusty Russell [this message]
2009-06-03 21:02     ` Eric Dumazet
     [not found]     ` <4A26E4FD.5010405@gmail.com>
2009-06-04  3:54       ` Rusty Russell
     [not found]       ` <200906041324.59118.rusty@rustcorp.com.au>
2009-06-04  4:00         ` David Miller
     [not found]         ` <20090603.210054.18839960.davem@davemloft.net>
2009-06-04  4:54           ` Eric Dumazet
2009-06-04  4:56             ` David Miller
2009-06-01 19:47 ` Patrick Ohly
     [not found] ` <1243885642.22917.35.camel@pohly-MOBL>
2009-06-02  7:25   ` David Miller
     [not found]   ` <20090602.002553.143476036.davem@davemloft.net>
2009-06-02 14:08     ` Rusty Russell
     [not found]     ` <200906022338.30618.rusty@rustcorp.com.au>
2009-06-03  0:14       ` David Miller
2009-07-03  7:55         ` Herbert Xu
     [not found]         ` <20090703075530.GA25190@gondor.apana.org.au>
2009-07-04  3:02           ` David Miller
2009-07-04  3:08             ` Herbert Xu
     [not found]             ` <20090704030830.GA32442@gondor.apana.org.au>
2009-07-04  3:13               ` David Miller
     [not found]               ` <20090703.201347.146036232.davem@davemloft.net>
2009-07-04  7:42                 ` Herbert Xu
     [not found]                 ` <20090704074245.GA1615@gondor.apana.org.au>
2009-07-04  9:09                   ` Herbert Xu
     [not found]                   ` <20090704090910.GA2185@gondor.apana.org.au>
2009-07-05  3:26                     ` Herbert Xu
2009-07-05  3:34                       ` Herbert Xu
     [not found]                       ` <20090705033408.GB7430@gondor.apana.org.au>
2009-08-18  1:47                         ` David Miller
     [not found]                         ` <20090817.184712.180559154.davem@davemloft.net>
2009-08-19  3:19                           ` Herbert Xu
     [not found]                           ` <20090819031926.GA17367@gondor.apana.org.au>
2009-08-19  3:34                             ` David Miller
2009-05-29 14:14 Rusty Russell

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=200906012157.29465.rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=dcbw@redhat.com \
    --cc=divy@chelsio.com \
    --cc=eric.dumazet@gmail.com \
    --cc=libertas-dev@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=rolandd@cisco.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=xemul@openvz.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox