WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] network CPU consumption question

To: "Tim Freeman" <tfreeman@xxxxxxxxxxx>
Subject: Re: [Xen-users] network CPU consumption question
From: "Tim Wood" <twwood@xxxxxxxxx>
Date: Fri, 2 Jun 2006 08:51:14 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Jun 2006 05:51:52 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Q88dJ2lPdfXKDivY3AHwnl1W2yhv+bWGoSb/hLRMp3yLE5jtahIwGEjdK49zZ6J1x8n/FKQCqc5SovNxkCOto+e96vxuhztr8VndO1dCc/ab2YB2sEZur3YN/z3B2lVU6Tdh9cVVRtyhQUEcURv1DrlrdbeCGT6TbUalO+V531A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060531173956.12def1bb.tfreeman@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20060531173956.12def1bb.tfreeman@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Sorry I don't have full concrete answers, but you might be able to get some ideas from either of these papers if you haven't seen them:

XenMon - http://www.hpl.hp.com/techreports/2005/HPL-2005-187.html
Measuring CPU Overhead for IO - http://www.hpl.hp.com/personal/Lucy_Cherkasova/projects/papers/final-perf-study-usenix.pdf

They show how the scheduling parameters can have a pretty large effect on performance mainly due to wasted context switches between domains.


On 5/31/06, Tim Freeman <tfreeman@xxxxxxxxxxx> wrote:
Running into a mysterious situation here...

I have a Xen3 setup running SEDF measuring bandwidth offnode on a
non-VMM machine. Running one guest domain bridged through domain
0, transfers from memory (/dev/zero) to the non-VMM machine.  Another
domain runs pure CPU bound activity, as much as it can (this avoids the
non-interrupt-batching context-switching-heavy situation that exists
otherwise).

On these computers, getting roughly 12.3 MB/s with this distribution
of CPU consumption (measured with XenMon):

dom0: 17.79%, dom1 (net): 11.41%, dom2 (cpu): 69.48%

(these are means from many runs)

I get an extremely similar bandwidth reading in another scenario with
two net transferring domains (their bandwidths are halved, talking
about the *sum* of the two).  However, the CPU consumption did not
scale very well:

dom0: 19.38%, dom1 (net): 9.61%, dom2 (net): 9.55%, dom3 (cpu): 60.18%

In the previous scenario dom1 used around 11.5 percent of the CPU to
accomplish what here takes roughly 19 percent.

Any ideas what this extra CPU work is?  There is extra context
switching in the second situation (which could account for the dom0
increase), but the network bound guest disparity seems a little extreme
to only be that?

Thanks,
Tim


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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>