public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Chetan Loke <chetanloke@gmail.com>
Cc: Bhavesh Davda <bhavesh@vmware.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"pv-drivers@vmware.com" <pv-drivers@vmware.com>,
	"therbert@google.com" <therbert@google.com>
Subject: Re: [Pv-drivers] rps and pvdrivers
Date: Sat, 04 Sep 2010 15:51:51 +0200	[thread overview]
Message-ID: <1283608311.3402.30.camel@edumazet-laptop> (raw)
In-Reply-To: <AANLkTimC4z7mCKwyK8=LaacjTtZGEGN_BYsFMydQiwBk@mail.gmail.com>

Le samedi 04 septembre 2010 à 09:38 -0400, Chetan Loke a écrit :

> I see. Ok then that's whats happening. I guess I will have to look at
> the napi/ksoftirq/rps block in detail to understand this. But I would
> think that even w/o the rps settings I should still get the same
> numbers as compared to non-rps case, correct?
> 
> On a VM(virtual machine) using a 1G vNIC I can capture ~250K
> pkts/sec(even higher in some cases). But I can't go beyond 100K
> pkts/sec on a 10G vNIC because ksoftirqd consumes 1-cpu 100% of the
> time. That's why I thought of switching to the 2.6.35 kernel to see if
> I could scale on 10G.
> 
> It's possible that a VM cannot handle that much load. So I tried
> sending only 10% of line-rate(10G) which is 1G. It still doesn't work.
> I still can't capture that many pkts.

If packets have same rxhash, (same src IP, dst IP, src port, dst port),
they are directed on a single CPU, and this might explain you cannot
handle the load, RPS or not.

cat /proc/net/softnet_stat

RPS is good to handle multiple flows, because it can distribute load on
several cpus. But with a single flow, I guess it might be not that
useful.




  reply	other threads:[~2010-09-04 13:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 19:49 rps and pvdrivers Chetan Loke
2010-09-03 21:05 ` [Pv-drivers] " Bhavesh Davda
2010-09-03 22:39   ` Chetan Loke
2010-09-04  6:51     ` Eric Dumazet
2010-09-04  7:00       ` Eric Dumazet
2010-09-04 13:38       ` Chetan Loke
2010-09-04 13:51         ` Eric Dumazet [this message]
2010-09-04 14:02           ` Chetan Loke
2010-09-04 14:31             ` Eric Dumazet
2010-09-04 15:27               ` Chetan Loke

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=1283608311.3402.30.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=bhavesh@vmware.com \
    --cc=chetanloke@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pv-drivers@vmware.com \
    --cc=therbert@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox