Hi, Who can tell me the detail of installing pv drivers for centos domU. I have installed xen 3.4.3 based on centos5.4, and I installed centos5.4 for domU aslo. All of domU is HVM, now I have some tests on my computer, but network shows bad performance. So I have to install pv drivers for domU. I have tried to search some methods, but no good results. Thanks a lot. Qiang Ma _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jorge Armando Medina
2010-Sep-19 02:29 UTC
Re: [Xen-users] how to install pv driver for guest os?
On 09/18/2010 09:24 PM, ma qiang wrote:> Hi, > Who can tell me the detail of installing pv drivers for centos domU. > I have installed xen 3.4.3 based on centos5.4, and I installed > centos5.4 for domU aslo. All of domU is HVM, now I have some tests on my > computer, but network shows bad performance. So I have to install pv > drivers for domU. I have tried to search some methods, but no good results.Check this http://pastebin.com/f6a5022bf I did''t write it.> > Thanks a lot. > > Qiang Ma > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Compugraf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I need to edit these in dom0? right? 2010/9/19 Jorge Armando Medina <jmedina@e-compugraf.com>> On 09/18/2010 09:24 PM, ma qiang wrote: > >> Hi, >> Who can tell me the detail of installing pv drivers for centos domU. >> I have installed xen 3.4.3 based on centos5.4, and I installed >> centos5.4 for domU aslo. All of domU is HVM, now I have some tests on my >> computer, but network shows bad performance. So I have to install pv >> drivers for domU. I have tried to search some methods, but no good >> results. >> > > Check this http://pastebin.com/f6a5022bf > > > I did''t write it. > > >> Thanks a lot. >> >> Qiang Ma >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > -- > Compugraf > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I have failed when I restart domU as the link. Is there some official introduction about that? Best Wishes Qiang Ma 2010/9/19 Jorge Armando Medina <jmedina@e-compugraf.com>> On 09/18/2010 09:24 PM, ma qiang wrote: > >> Hi, >> Who can tell me the detail of installing pv drivers for centos domU. >> I have installed xen 3.4.3 based on centos5.4, and I installed >> centos5.4 for domU aslo. All of domU is HVM, now I have some tests on my >> computer, but network shows bad performance. So I have to install pv >> drivers for domU. I have tried to search some methods, but no good >> results. >> > > Check this http://pastebin.com/f6a5022bf > > > I did''t write it. > > >> Thanks a lot. >> >> Qiang Ma >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > -- > Compugraf > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Sep-19 05:32 UTC
Re: [Xen-users] how to install pv driver for guest os?
On Sun, Sep 19, 2010 at 12:16 PM, ma qiang <maqiang1984@gmail.com> wrote:> Hi, > I have failed when I restart domU as the link. > Is there some official introduction about that?Did you what I suggested on your previous thread? The correct link for PV drivers on HVM domU should be http://pastebin.com/fb6fe631 , and if you have a HVM domU already running then all modification is done on domU side. If you follow http://pastebin.com/f6a5022bf then you''d basically convert it to PV domU. It requires modification on domU side (installing new package and adjusting some configs) as well as dom0 side (creating new PV domU config). You need to make sure what is it that you want first: convert HVM to PV domU, or use PV drivers for HVM domU. Then you need to find the right instructions for that, making sure you follow it correctly (e.g. if the example says normal, non-xen, 2-6.18-*.el5 kernel, then don''t attempt to run it for kernel-xen 2-6.18-*.el5xen). If you still have problems, post the error message you got when following the instructions. Cause if you got some errors in some part of it, then most likely you won''t be able to restart domU. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for your replies again. I have a HVM domU already running. So I have tried http://pastebin.com/fb6fe631, and reboot domU successfully. But when I run iozone in this domU, I found the performance is worse. So I have no idea why. I will test the network IO later. Best Wishes! Qiang Ma On Sun, Sep 19, 2010 at 1:32 PM, Fajar A. Nugraha <list@fajar.net> wrote:> On Sun, Sep 19, 2010 at 12:16 PM, ma qiang <maqiang1984@gmail.com> wrote: > > Hi, > > I have failed when I restart domU as the link. > > Is there some official introduction about that? > > Did you what I suggested on your previous thread? The correct link for > PV drivers on HVM domU should be http://pastebin.com/fb6fe631 , and if > you have a HVM domU already running then all modification is done on > domU side. > > If you follow http://pastebin.com/f6a5022bf then you''d basically > convert it to PV domU. It requires modification on domU side > (installing new package and adjusting some configs) as well as dom0 > side (creating new PV domU config). > > You need to make sure what is it that you want first: convert HVM to > PV domU, or use PV drivers for HVM domU. Then you need to find the > right instructions for that, making sure you follow it correctly (e.g. > if the example says normal, non-xen, 2-6.18-*.el5 kernel, then don''t > attempt to run it for kernel-xen 2-6.18-*.el5xen). > > If you still have problems, post the error message you got when > following the instructions. Cause if you got some errors in some part > of it, then most likely you won''t be able to restart domU. > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Sep-19 10:45 UTC
Re: [Xen-users] how to install pv driver for guest os?
On Sun, Sep 19, 2010 at 12:58 PM, ma qiang <maqiang1984@gmail.com> wrote:> Thanks for your replies again. > I have a HVM domU already running. So I have > tried http://pastebin.com/fb6fe631, and reboot domU successfully. But when I > run iozone in this domU, I found the performance is worse.This is a different issue then? Previously you only mention network throughput problem.> So I have no idea > why. I will test the network IO later.First, make sure that the PV drivers is indeed active, as shown from that link. # ls -la /sys/class/net/eth0/device lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/class/net/eth0/device -> ../../../devices/xen/vif-0 # ls -la /sys/block/hda/device lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/block/hda/device -> ../../devices/xen/vbd-768 Obviously adjust the device names according to your setup (e.g. you might have hda1, sda1, or xvda instead of hda). If the output is not similar, then something''s wrong. After that, check your domU setup. IIRC it''s quite "normal" to have higher performance on domU compared to dom0 when you''re using file-backed domUs (i.e. domU''s disk is located as a file on dom0). This is due to caching effect, and does not show real performance. You should either use LVM (or partition, or some other block-device), or use "tap:aio:/" instead of "file:/" on domU config file. Next, try the same benchmark on dom0. It''s normal to have dom0 throughput >= PV domU throughput > HVM with PV drivers > HVM without PV drivers. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I am sure I completely followed what http://pastebin.com/fb6fe631 teaches me to do, but sadly, it doesn''t seem to work out good. Both the network and disk performance get a little bit worse than before. I still got some puzzles which I hope you could shed some light on: (1) the guest os kernel version in http://pastebin.com/fb6fe631 is 2.6.18-128 , while I was doing experiment on CentOS 5.4, whose kernel version is 2.6.18-164. Don''t know if this could be a reason why I failed? (2) I installed the domain0 xen environment by "yum install xen kernel-xen", instead of building from xen source code. So I am wondering is there any domain0 factor that might have affected my result? or is there anything I should do, or at least check on domain0? Best Wishes! Qiang Ma On Sun, Sep 19, 2010 at 6:45 PM, Fajar A. Nugraha <list@fajar.net> wrote:> On Sun, Sep 19, 2010 at 12:58 PM, ma qiang <maqiang1984@gmail.com> wrote: > > Thanks for your replies again. > > I have a HVM domU already running. So I have > > tried http://pastebin.com/fb6fe631, and reboot domU successfully. But > when I > > run iozone in this domU, I found the performance is worse. > > This is a different issue then? Previously you only mention network > throughput problem. > > > So I have no idea > > why. I will test the network IO later. > > First, make sure that the PV drivers is indeed active, as shown from that > link. > > # ls -la /sys/class/net/eth0/device > lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/class/net/eth0/device -> > ../../../devices/xen/vif-0 > # ls -la /sys/block/hda/device > lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/block/hda/device -> > ../../devices/xen/vbd-768 > > Obviously adjust the device names according to your setup (e.g. you > might have hda1, sda1, or xvda instead of hda). If the output is not > similar, then something''s wrong. > > After that, check your domU setup. IIRC it''s quite "normal" to have > higher performance on domU compared to dom0 when you''re using > file-backed domUs (i.e. domU''s disk is located as a file on dom0). > This is due to caching effect, and does not show real performance. You > should either use LVM (or partition, or some other block-device), or > use "tap:aio:/" instead of "file:/" on domU config file. > > Next, try the same benchmark on dom0. It''s normal to have > > dom0 throughput >= PV domU throughput > HVM with PV drivers > HVM > without PV drivers. > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sorry, I made a mistake. The performance of network is better, but the disk IO is worse. On Mon, Sep 20, 2010 at 10:11 AM, ma qiang <maqiang1984@gmail.com> wrote:> Hi, > > I am sure I completely followed what http://pastebin.com/fb6fe631 teaches > me to do, but sadly, it doesn''t seem to work out good. Both the network and > disk performance get a little bit worse than before. > I still got some puzzles which I hope you could shed some light on: > (1) the guest os kernel version in http://pastebin.com/fb6fe631 is > 2.6.18-128 , while I was doing experiment on CentOS 5.4, whose kernel > version is 2.6.18-164. Don''t know if this could be a reason why I failed? > (2) I installed the domain0 xen environment by "yum install xen > kernel-xen", instead of building from xen source code. So I am wondering is > there any domain0 factor that might have affected my result? or is there > anything I should do, or at least check on domain0? > > Best Wishes! > Qiang Ma > > > On Sun, Sep 19, 2010 at 6:45 PM, Fajar A. Nugraha <list@fajar.net> wrote: > >> On Sun, Sep 19, 2010 at 12:58 PM, ma qiang <maqiang1984@gmail.com> wrote: >> > Thanks for your replies again. >> > I have a HVM domU already running. So I have >> > tried http://pastebin.com/fb6fe631, and reboot domU successfully. But >> when I >> > run iozone in this domU, I found the performance is worse. >> >> This is a different issue then? Previously you only mention network >> throughput problem. >> >> > So I have no idea >> > why. I will test the network IO later. >> >> First, make sure that the PV drivers is indeed active, as shown from that >> link. >> >> # ls -la /sys/class/net/eth0/device >> lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/class/net/eth0/device -> >> ../../../devices/xen/vif-0 >> # ls -la /sys/block/hda/device >> lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/block/hda/device -> >> ../../devices/xen/vbd-768 >> >> Obviously adjust the device names according to your setup (e.g. you >> might have hda1, sda1, or xvda instead of hda). If the output is not >> similar, then something''s wrong. >> >> After that, check your domU setup. IIRC it''s quite "normal" to have >> higher performance on domU compared to dom0 when you''re using >> file-backed domUs (i.e. domU''s disk is located as a file on dom0). >> This is due to caching effect, and does not show real performance. You >> should either use LVM (or partition, or some other block-device), or >> use "tap:aio:/" instead of "file:/" on domU config file. >> >> Next, try the same benchmark on dom0. It''s normal to have >> >> dom0 throughput >= PV domU throughput > HVM with PV drivers > HVM >> without PV drivers. >> >> -- >> Fajar >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Sep-20 03:42 UTC
Re: [Xen-users] how to install pv driver for guest os?
On Mon, Sep 20, 2010 at 9:11 AM, ma qiang <maqiang1984@gmail.com> wrote:> Hi, > I am sure I completely followed what http://pastebin.com/fb6fe631 teaches > me to doDid you do what I asked to check in my previous mail? Quote: ">> First, make sure that the PV drivers is indeed active, as shown from that >> link. >> >> # ls -la /sys/class/net/eth0/device >> lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/class/net/eth0/device -> >> ../../../devices/xen/vif-0 >> # ls -la /sys/block/hda/device >> lrwxrwxrwx 1 root root 0 Apr 25 11:50 /sys/block/hda/device -> >> ../../devices/xen/vbd-768 >> >> Obviously adjust the device names according to your setup (e.g. you >> might have hda1, sda1, or xvda instead of hda). If the output is not >> similar, then something''s wrong. >> >> After that, check your domU setup. IIRC it''s quite "normal" to have >> higher performance on domU compared to dom0 when you''re using >> file-backed domUs (i.e. domU''s disk is located as a file on dom0). >> This is due to caching effect, and does not show real performance. You >> should either use LVM (or partition, or some other block-device), or >> use "tap:aio:/" instead of "file:/" on domU config file."> I still got some puzzles which I hope you could shed some light on: > (1) the guest os kernel version in http://pastebin.com/fb6fe631 is > 2.6.18-128 , while I was doing experiment on CentOS 5.4, whose kernel > version is 2.6.18-164. Don''t know if this could be a reason why I failed?"Failed" and "perform worse" are two different things. Check wheter the drivers is correctly used first (see first quote above)> (2) I installed the domain0 xen environment by "yum install xen kernel-xen", > instead of building from xen source code. So I am wondering is there any > domain0 factor that might have affected my result? or is there anything I > should do, or at least check on domain0?Check what dom0''s performance numbers are. Other than that, I can''t think of anything else right now. As an alternative though, for network you might want to try specifying e1000 as NIC model on domU config file. Others have mentioned that it performs better compared to the default realtek emulated model. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users