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] Building unmodified_drivers fails in unstable x64XEN

To: "Steven Smith" <sos22-xen@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Building unmodified_drivers fails in unstable x64XEN
From: "Nowatzki, Thomas L" <Thomas.Nowatzki@xxxxxxxxxx>
Date: Thu, 16 Nov 2006 02:16:49 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, sos22@xxxxxxxxxxxxx, Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Delivery-date: Thu, 16 Nov 2006 00:17:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061115090851.GA1173@xxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccIlYyBkIHIfHYrTTCtKQ452IJJGQAdqKQg
Thread-topic: [Xen-devel] Building unmodified_drivers fails in unstable x64XEN
Steve,

First of all, thank you.  I did as you suggested and created a new block
device and the PV driver did claim it.

However, I am having a lot of trouble with it.  Everything I do with the
drive is sluggish.  For example, making a file system on it is slow.  I
am using Iometer to test I/O performance with sequential reads.  Iometer
(dynamo) will eventually recognize the drive but it takes a very long
time. It just doesn't seem right.  Maybe I got a debug version???

Regards,
Tom   




-----Original Message-----
From: Steven Smith [mailto:sos22@xxxxxxxxxxxxxxxx] On Behalf Of Steven
Smith
Sent: Wednesday, November 15, 2006 3:09 AM
To: Nowatzki, Thomas L
Cc: Ian Campbell; xen-devel@xxxxxxxxxxxxxxxxxxx; sos22@xxxxxxxxxxxxx
Subject: Re: [Xen-devel] Building unmodified_drivers fails in unstable
x64XEN

> I renamed the /usr/src/linux/include/xen subdirectory and I was able
to
> then compile the unmodified drivers.  (The filename of the PCI .ko
file
> was different than the one identified in the README file.)  I assumed
> the README was a bit out of date.  
It was, and it's now fixed, thanks.

> I then copied the four files over to my Linux VM. And did an insmod on
> the four .ko files.  They installed seemingly OK.  But when I did my
I/O
> test I got no performance difference whatsoever.  Did I miss something
> or are my expectations incorrect.
You should certainly notice something!  One thing which commonly
catches people out here is that the PV drivers show up as separate
devices to the ioemu ones, and it's easy to end up accidentally
testing the old ioemu devices by mistake.

In the case of network devices, switching over is fairly easy.  You
need to create a new entry in the vifs section of your xm
configuration which doesn't have type=ioemu, restart the domain, and
load the PV drivers.  You should find you have an extra eth device,
and that should perform a lot better than the old one.

Block devices are a little more tricky, since they're configured to
appear as specific devices (e.g. hda) and the Linux IDE driver doesn't
like letting go.  If you're just testing, you can create a new block
device called, say xvda, in your xm configuration file and use that.
The IDE driver won't see it, and so the PV driver can claim it.
Moving your root filesystem to PV devices is a little more involved,
and requires you to put the driver in an initrd and set something like
hda=noprobe on the kernel command line.

Hope that helps,

Steven.

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