All of lore.kernel.org
 help / color / mirror / Atom feed
* n/w performance degradation
@ 2005-12-05 23:11 Diwaker Gupta
  2005-12-05 23:23 ` Keir Fraser
  2005-12-06  0:09 ` Nivedita Singhvi
  0 siblings, 2 replies; 14+ messages in thread
From: Diwaker Gupta @ 2005-12-05 23:11 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]

Hi folks,

I was to post this over the weekend, but didn't get around to it, and
look in the meanwhile Xen 3.0.0 was released! Good work all around,
but I got some performance problems to report :)

I'm running Changeset 00c349d5b40d269da4fec9510f1dd7c6bb3b3327. This
is a dual CPU machine but I'm currently running with noht, nosmp. All
tests are done using iperf -- both endpoints are sitting on the same
switch on our cluster. The machines have Broadcom BCM5704 NICs.

N/W performance from dom0 seems fine (though I used to get 930+ until
a few days back):

[  6]  0.0-20.0 sec  1.95 GBytes    835 Mbits/sec

However, from a VM, the throughput is really bad:

[  5]  0.0-20.0 sec  1.05 GBytes    450 Mbits/sec

The above numbers are using the BVT scheduler. With the SEDF
scheduler, the numbers are even worse (a VM can't get more than
300Mbps in my tests). I can post concrete figures if people are
interested. I'm _not_ running pipelined netback.

Is anyone else observing such performance problems?

Diwaker
--
Web/Blog/Gallery: http://floatingsun.net

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: n/w performance degradation
@ 2005-12-05 23:49 Ian Pratt
  2005-12-06  0:06 ` Diwaker Gupta
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-12-05 23:49 UTC (permalink / raw)
  To: Diwaker Gupta, xen-devel

 
> I'm running Changeset 
> 00c349d5b40d269da4fec9510f1dd7c6bb3b3327. This is a dual CPU 
> machine but I'm currently running with noht, nosmp. All tests 
> are done using iperf -- both endpoints are sitting on the 
> same switch on our cluster. The machines have Broadcom BCM5704 NICs.
> 
> N/W performance from dom0 seems fine (though I used to get 
> 930+ until a few days back):
> 
> [  6]  0.0-20.0 sec  1.95 GBytes    835 Mbits/sec
> 
> However, from a VM, the throughput is really bad:
> 
> [  5]  0.0-20.0 sec  1.05 GBytes    450 Mbits/sec
> 
> The above numbers are using the BVT scheduler. With the SEDF 
> scheduler, the numbers are even worse (a VM can't get more 
> than 300Mbps in my tests). I can post concrete figures if 
> people are interested. I'm _not_ running pipelined netback.
> 
> Is anyone else observing such performance problems?

We haven't really done much tuing for the single CPU case recently as
the vast majority of platforms that Xen is used on are either
hyperthreaded, dual core or SMP.

The main focus of the 3.0.0 release has been corectness rather than
performance tuning. We plan to do some tweaking over the coming weeks to
address this. We used to get 900Mb/s with a single CPU core, and there's
absoloutely no reason why we shouldn't do so again -- in fact, we should
do better in terms of CPU usage than 2.0 as as we now have checksum
offload.

Now we have great performance monitoring tools like xen-oprofile,
xenperf, xenmon etc it should be wuite straightforward to optimize
things.  Let's just wait until we've delt with any critical bugs arising
from the release...

Ian

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: n/w performance degradation
@ 2005-12-06  1:42 Ian Pratt
  2005-12-06  2:07 ` Diwaker Gupta
  2005-12-06  2:26 ` Nivedita Singhvi
  0 siblings, 2 replies; 14+ messages in thread
From: Ian Pratt @ 2005-12-06  1:42 UTC (permalink / raw)
  To: Diwaker Gupta, Nivedita Singhvi; +Cc: xen-devel

 > > What are your memory allocations? How much of a bump do you 
> get if you 
> > increase memory?
> 
> Currently, both dom0 and the vm have 128MB. I rebooted with 
> dom0 having 512MB and VM with 256 MB. Here are the numbers:
> 
> dom0:
> [  5]  0.0-10.0 sec    987 MBytes    828 Mbits/sec
> 
> VM:
> [  5]  0.0-10.0 sec    938 MBytes    787 Mbits/sec
> 
> So getting slightly better. I haven't run these with SEDF 
> though, above are using BVT.

Ah, I expect I know what's going on here.

Linux sizes the default socket buffer size based on how much 'system'
memory it has.

With a 128MB domU it probably defaults to just 64K. For 256MB it
probably steps up to 128KB. You can prove this by setting
/proc/sys/net/core/{r,w}mem_{max,default}.

For a gigabit network you need at least 128KB.

Ian

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: n/w performance degradation
@ 2005-12-06 10:42 Ian Pratt
  0 siblings, 0 replies; 14+ messages in thread
From: Ian Pratt @ 2005-12-06 10:42 UTC (permalink / raw)
  To: Diwaker Gupta, Nivedita Singhvi; +Cc: xen-devel

> > Fow low mem systems, the default size of the tcp read buffer
> > (tcp_rmem[1]) is 43689, and max size (tcp_rmem[2]) is 
> 2*43689, which 
> > is really too low to do network heavy lifting.
> 
> Just as an aside, I wanted to point out that my dom0's were 
> running at the exact same configuration (memory, socket 
> sizes) as the VM. And I can mostly saturate a gig link from 
> dom0. So while socket sizes might certainly have an impact, 
> there are still additional bottlenecks that need to be fine tuned.

Xen is certainly going to be more sensitive to small socket buffer sizes
when you're trying to run dom0 and the guest on the same CPU thread. If
you're running a single TCP connection the socket buffer size basically
determines how frequently you're forced to switch between domains.
Switching every 43KB at 1Gb/s amounts to thoudands of domain switches a
second which burns CPU. Doubling the socket buffer size halves the rate
of domain switches. Under Xen this would be a more sensible default.

Ian

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

end of thread, other threads:[~2005-12-06 11:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 23:11 n/w performance degradation Diwaker Gupta
2005-12-05 23:23 ` Keir Fraser
2005-12-06  0:04   ` Diwaker Gupta
2005-12-06 11:20     ` Keir Fraser
2005-12-06  0:09 ` Nivedita Singhvi
2005-12-06  1:32   ` Diwaker Gupta
2005-12-06  2:15     ` Nivedita Singhvi
  -- strict thread matches above, loose matches on Subject: below --
2005-12-05 23:49 Ian Pratt
2005-12-06  0:06 ` Diwaker Gupta
2005-12-06  1:42 Ian Pratt
2005-12-06  2:07 ` Diwaker Gupta
2005-12-06  2:26 ` Nivedita Singhvi
2005-12-06  8:02   ` Diwaker Gupta
2005-12-06 10:42 Ian Pratt

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.