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-devel

Re: [Xen-devel] Re: [ANNOUNCE] virtbench now has xen support

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: [ANNOUNCE] virtbench now has xen support
From: Jan Michael <jan.michael@xxxxxxx>
Date: Wed, 23 May 2007 20:05:27 +0200
Cc: Anthony Liguori <aliguori@xxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 23 May 2007 11:04:03 -0700
Domainkey-signature: a=rsa-sha1; c=nofws; s=beta; d=cern.ch; q=dns; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding; b=ANFLELDTQPzbbwhLCgiq80TR9DNKGmMNitUBdwCpXU3B3To+yiviZPvpKWGYGLjWBFvqwon9NMPihBGG+rbkiSlFjGyOLyVfARn2CKSqtcyAf4CNzK7M1EQeeKOLhEAh;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4652B8EE.6070406@xxxxxxxx>
Keywords: CERN SpamKiller Note: -51 Charset: west-latin
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1179196706.27304.22.camel@xxxxxxxxxxxxxxxxxxxxx> <B8C22E46-2962-4702-A4DF-7A02CC576F5E@xxxxxxx> <464A0F01.5030900@xxxxxxxxxx> <B560AF89-CB82-4842-8B36-E2216A0D319D@xxxxxxx> <1179489064.17608.47.camel@xxxxxxxxxxxxxxxxxxxxx> <3C31E727-8C2D-4DBB-A16A-F40ADC0AE62A@xxxxxxx> <1179728188.20705.13.camel@xxxxxxxxxxxxxxxxxxxxx> <DB1C98A8-CBEE-44E3-99D5-BD74A413BB04@xxxxxxx> <1179791128.20705.30.camel@xxxxxxxxxxxxxxxxxxxxx> <6C46B0C9-2C62-431F-89C9-21A492E19DAD@xxxxxxx> <4652B8EE.6070406@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

as I found out it is a little bit tricky to use one's initrd. Because Virtbench is overriding the init command in the domU configuration file with rdinit and therefore it is not possible to load modules:

<virtbench-xen.cfg.in>
extra = "rdinit=/virtclient @VIRTBENCH_ID@ @SERVERIP@ @SERVERPORT@ /dev/xvda1 202 1 eth0 %s" % string.replace('@IP@', '.', '/')
</virtbench-xen.cfg.in>

The template file virtbench-xen.cfg.in is used to create an individual xen configuration file for each user domain. Despite this I tried to get the virtclient working with my own initrd. I was able to successfully load the xen network and block device driver. At the end of the init script I could start virtclient from the ramdisk.

So I modified the start_machine script in that way that it will manipulate the init start script of the ramdisk and after that it creates one initrd for each domU. The domU configuration uses now a prepared ramdisk rather than this one from virtbench.

The benchmark passed with the following outcome:

Time for one context switch via pipe: 8734 (8640 - 9575)
Time for one Copy-on-Write fault: 5898 (5814 - 8963)
Time to exec client once: 573046 (565921 - 615390)
Time for one fork/exit/wait: 347687 (345750 - 362250)
Time to send 4 MB from host: 55785000 (27069625 - 315191500)
Time for one int-0x80 syscall: 370 (370 - 403)
Time for one syscall via libc: 376 (376 - 377)
Time to walk linear 64 MB: 1790875 (1711750 - 3332875)
Time to walk random 64 MB: 2254500 (2246000 - 2266250)
Time for one outb PIO operation: 721 (717 - 733)
DISABLED pte-update: glibc version is too old
Time to read from disk (256 kB): 18810406 (14266718 - 24088906)
Time for one disk read: 56343 (38593 - 201718)
DISABLED vmcall: not a VT guest
DISABLED vmmcall: not an SVM guest
Time to send 4 MB between guests: 94326750 (79872250 - 729306500)
Time for inter-guest pingpong: 130316 (119722 - 186511)
Time to sendfile 4 MB between guests: 134768000 (86528000 - 417646000)
Time to receive 1000 1k UDPs between guests: 26010000 (23384000 - 66784000)

Last question for today: What is the unit of these time values?

Thanks,

        Jan

        
On 22.05.2007, at 11:33, Jeremy Fitzhardinge wrote:
Jan Michael wrote:
I can say that we are using a kernel builf from the attached kernel
config and a special initrd image for our domUs.
The initrd image contains the modules xenblk.ko and xennet.ko. So
netfront and blkfront are not compiled into the kernel.

Modular is OK if they're in the initrd you're using.

Our linux gurus made the kernel and the initrd image. I think I have
to integrate those modules into the initrd image you are using and
have to load them. But at this point I have no knowledge how to do
this...

It's distro-dependent, but mkinitrd works for RH-type systems.
Something like "mkinitrd --with=xenblk --with=xennet -v my-initrd.img
<kernel version>".

    J


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