All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Ayres <matta@tektonic.net>
To: Winston Chang <winston@stdout.org>
Cc: soltesz@CS.Princeton.EDU,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Very slow domU network performance - Moved to xen-devel
Date: Wed, 05 Apr 2006 13:11:07 -0400	[thread overview]
Message-ID: <4433FA2B.8050005@tektonic.net> (raw)
In-Reply-To: <BA0FFF2C-49C1-48A7-B0DE-4C8B6DFB5B74@stdout.org>



Winston Chang wrote:
>>> I ran the test with the latest xen-unstable build.  The results are 
>>> the same.
>>> When I ran 'xm sched-sedf 0 0 0 0 1 1' to prevent  domU CPU 
>>> starvation, network performance was good.  The numbers in this case 
>>> are the same as in my other message where I detail the results using 
>>> the week-old xen build -- it could handle 90Mb/s with no datagram 
>>> loss.  So it looks like the checksum patches had no effect on this 
>>> phenomenon; the only thing that mattered was the scheduling.
>>
>> What was the previous weight of domain 0?  What is the weight assigned 
>> to the domU's and do the domU's have bursting enabled?
> 
> I'm not really sure the answer to either of these questions.  The weight 
> is whatever is the default is with Fedora Core 5 and xen-unstable.  I 
> don't know anything about bursting. How do you find out?
> 

I'd like to be corrected if I am wrong, but the last number (weight) is 
set to 0 for all domains by default.  By giving it a value of 1 you are 
giving dom0 more CPU. The second to last number is a boolean that 
decides whether a domain is hard locked to it's weight or if can burst 
using idle CPU cycles.  The 3 before that are generally set to 0 and the 
first number is the domain name.  I do not know of a way to grab the 
weights personally. It is documented in the Xen distribution tgz.

I ran my own tests. I have dom0 with a weight of 512 (double it's memory 
allocation) and each VM also has a weight equal to it's memory 
allocation.  My dom0 can transfer at 10MB/s+ over the LAN, but domU's 
with 100% CPU used on the host could only transfer over the LAN at a 
peak of 800KB/s.  When I gave dom0 a weight of 1 domU transfers 
decreased to a peak of 100KB/s over the "LAN" (quoted because due to 
proxy ARP the host acts as a router)

The problem does not matter if you use bridged or routed mode.

I would have to believe the problem is in the hypervisor itself and 
scheduling and CPU usage greatly affect it.  Network bandwidth should 
not be affected unless wanted (ie. by using the rate vif parameter).

Stephen Soltesz has experienced the same problem and has some graphs to 
back it up.  Stephen, will you share at least that one CPU + IPerf graph 
with the community and perhaps elaborate on your weight configuration 
(if any).

Thank you,
Matt Ayres

       reply	other threads:[~2006-04-05 17:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0EDDFD7D-2C5D-4D47-880D-E7DC268EA149@stdout.org>
     [not found] ` <1144173588.3411.19.camel@orbit.scot.redhat.com>
     [not found]   ` <24147773-D20E-4280-8699-C1C163CAE9CF@stdout.org>
     [not found]     ` <4433EBA2.7000003@tektonic.net>
     [not found]       ` <BA0FFF2C-49C1-48A7-B0DE-4C8B6DFB5B74@stdout.org>
2006-04-05 17:11         ` Matt Ayres [this message]
2006-04-06  6:40           ` Very slow domU network performance - Moved to xen-devel Winston Chang

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=4433FA2B.8050005@tektonic.net \
    --to=matta@tektonic.net \
    --cc=soltesz@CS.Princeton.EDU \
    --cc=winston@stdout.org \
    --cc=xen-devel@lists.xensource.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.