How do I check if the proper sata drivers are being loaded? If they are not what can I do other then rebuilding the kernel? Thank you in advance, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
ps - I did: # lspci | grep -y sata 00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02) # lspci 00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:03.0 Communication controller: Intel Corporation 4 Series Chipset HECI Controller (rev 03) 00:03.2 IDE interface: Intel Corporation 4 Series Chipset PT IDER Controller (rev 03) 00:03.3 Serial controller: Intel Corporation 4 Series Chipset Serial KT Controller (rev 03) 00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5 (rev 02) 00:1a.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2 (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a2) 00:1f.0 ISA bridge: Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller (rev 02) 00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02) On 2/25/2011 11:50 PM, Randy Katz wrote:> How do I check if the proper sata drivers are being loaded? > If they are not what can I do other then rebuilding the kernel? > Thank you in advance, > Randy > > _______________________________________________ > 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
On Sat, Feb 26, 2011 at 3:33 PM, Randy Katz <rkatz@simplicityhosting.com> wrote:> ps - I did: > > # lspci | grep -y sata > 00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller > (rev 02)Try grep AHCI /boot/config-* lsmod | egrep "piix|hci" hdparm -i /dev/sd? dmesg | grep DMA -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/26/2011 3:33 AM, Fajar A. Nugraha wrote:> On Sat, Feb 26, 2011 at 3:33 PM, Randy Katz<rkatz@simplicityhosting.com> wrote: >> ps - I did: >> >> # lspci | grep -y sata >> 00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller >> (rev 02) > Try > > grep AHCI /boot/config-* > lsmod | egrep "piix|hci" > hdparm -i /dev/sd? > dmesg | grep DMA >ok, thanks, here goes: # grep AHCI /boot/config-2.6.18-194.* /boot/config-2.6.18-194.32.1.el5:CONFIG_SATA_AHCI=m /boot/config-2.6.18-194.32.1.el5xen:CONFIG_SATA_AHCI=m /boot/config-2.6.18-194.el5:CONFIG_SATA_AHCI=m # lsmod | egrep "piix|hci" ahci 69705 7 libata 209361 1 ahci uhci_hcd 57689 0 ohci_hcd 56437 0 ehci_hcd 66253 0 # hdparm -i /dev/sda /dev/sda: Model=ST31500341AS , FwRev=CC1H , SerialNo= 9VS1P3C6 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=?16? CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 AdvancedPM=no WriteCache=enabled Drive conforms to: unknown: ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 * signifies the current active mode # hdparm -i /dev/sdb /dev/sdb: Model=ST31500341AS , FwRev=CC1H , SerialNo= 9VS1CBWX Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=?16? CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 AdvancedPM=no WriteCache=enabled Drive conforms to: unknown: ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 * signifies the current active mode # dmesg | grep DMA DMA zone: 1917411 pages, LIFO batch:31 PCI-DMA: Using software bounce buffering for IO (SWIOTLB) ata1: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970100 irq 253 ata2: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970180 irq 253 ata3: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970200 irq 253 ata6: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970380 irq 253 ata1.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 ata1.00: configured for UDMA/133 ata2.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 ata2.00: configured for UDMA/133 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Feb 26, 2011 at 11:20 PM, Randy Katz <rkatz@simplicityhosting.com> wrote:> # lsmod | egrep "piix|hci" > ahci 69705 7> ata1: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970100 irq 253 > ata1.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 > ata1.00: configured for UDMA/133A quick glance seems to show no driver problems. Did you experience any problem? Is your problem xen-specific? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/26/2011 4:41 PM, Fajar A. Nugraha wrote:> On Sat, Feb 26, 2011 at 11:20 PM, Randy Katz > <rkatz@simplicityhosting.com> wrote: >> # lsmod | egrep "piix|hci" >> ahci 69705 7 >> ata1: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970100 irq 253 >> ata1.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 >> ata1.00: configured for UDMA/133 > A quick glance seems to show no driver problems. Did you experience > any problem? Is your problem xen-specific? >I have very slow access in Xen for file based access. If I use LVM volumes it is quite fast. Using the same machine with OpenVZ has no problems and performance is great. Will go ahead and use LVM volumes and assume Xen likes them! :) Not sure what else to do or look at, any comments? Regards, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Feb 27, 2011 at 8:16 AM, Randy Katz <rkatz@simplicityhosting.com> wrote:> On 2/26/2011 4:41 PM, Fajar A. Nugraha wrote: >> >> On Sat, Feb 26, 2011 at 11:20 PM, Randy Katz >> <rkatz@simplicityhosting.com> wrote: >>> >>> # lsmod | egrep "piix|hci" >>> ahci 69705 7 >>> ata1: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970100 irq 253 >>> ata1.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 >>> ata1.00: configured for UDMA/133 >> >> A quick glance seems to show no driver problems. Did you experience >> any problem? Is your problem xen-specific? >> > I have very slow access in Xen for file based access. If I use LVM volumes > it is quite fast.Then why didn''t you say so in the first post? It shouldn''t be related to drivers. using file-based images are known to be slow or unreliable in some circumstances.> Using the same machine with OpenVZ > has no problems and performance is great.OpenVZ has different method to provide guest filesystem.> Will go ahead and use LVM volumes > and assume Xen likes them! :) Not sure what > else to do or look at, any comments?If you still need file-based image, try using non-sparse image and use tap:aio instead of file:/ Stick with LVs whenever you can though. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/26/2011 5:24 PM, Fajar A. Nugraha wrote:> On Sun, Feb 27, 2011 at 8:16 AM, Randy Katz<rkatz@simplicityhosting.com> wrote: >> On 2/26/2011 4:41 PM, Fajar A. Nugraha wrote: >>> On Sat, Feb 26, 2011 at 11:20 PM, Randy Katz >>> <rkatz@simplicityhosting.com> wrote: >>>> # lsmod | egrep "piix|hci" >>>> ahci 69705 7 >>>> ata1: SATA max UDMA/133 abar m2048@0xff970000 port 0xff970100 irq 253 >>>> ata1.00: ATA-8: ST31500341AS, CC1H, max UDMA/133 >>>> ata1.00: configured for UDMA/133 >>> A quick glance seems to show no driver problems. Did you experience >>> any problem? Is your problem xen-specific? >>> >> I have very slow access in Xen for file based access. If I use LVM volumes >> it is quite fast. > Then why didn''t you say so in the first post? It shouldn''t be related > to drivers. using file-based images are known to be slow or unreliable > in some circumstances. > >> Using the same machine with OpenVZ >> has no problems and performance is great. > OpenVZ has different method to provide guest filesystem. > >> Will go ahead and use LVM volumes >> and assume Xen likes them! :) Not sure what >> else to do or look at, any comments? > If you still need file-based image, try using non-sparse image and use > tap:aio instead of file:/ > Stick with LVs whenever you can though. >it seems I am using tap:aio on what appears to be quite slow: disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] Is there a good way to convert from tap:aio to lvm? I tried stop vm, dd if=server3.img of=/dev/vg1/newlv3 but it is very very slow, much quicker to blow away the whole thing (vm) and reinstall and then add data from backups. Regards, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Feb 26, 2011, at 6:11 PM, Randy Katz wrote:> it seems I am using tap:aio on what appears to be quite slow: > > disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] > > Is there a good way to convert from tap:aio to lvm?Hi Randy, I don''t use LVM and my performance is fine. Have you looked into the domU itself troubleshooting as if it were a non virtual host? Things like vmstat, top, tcpdump, dstat, etc... just to get a snapshot of what your system is doing. - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Feb 26, 2011, at 6:25 PM, Brian Krusic wrote:> On Feb 26, 2011, at 6:11 PM, Randy Katz wrote: > >> it seems I am using tap:aio on what appears to be quite slow: >> >> disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] >> >> Is there a good way to convert from tap:aio to lvm? > > > Hi Randy, > > I don''t use LVM and my performance is fine. > > Have you looked into the domU itself troubleshooting as if it were a > non virtual host? > > Things like vmstat, top, tcpdump, dstat, etc... just to get a > snapshot of what your system is doing.Apply the same approach to dom0 as well. I''ve used both fixed and non fixed disk images w/o issue. My env is Centos using the bundled version of Xen as well as Gitcos latest 3.X versions. - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> On Feb 26, 2011, at 6:25 PM, Brian Krusic wrote: > >> On Feb 26, 2011, at 6:11 PM, Randy Katz wrote: >> >>> it seems I am using tap:aio on what appears to be quite slow: >>> >>> disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] >>> >>> Is there a good way to convert from tap:aio to lvm? >> >> >> Hi Randy, >> >> I don''t use LVM and my performance is fine. >> >> Have you looked into the domU itself troubleshooting as if it were >> a non virtual host? >> >> Things like vmstat, top, tcpdump, dstat, etc... just to get a >> snapshot of what your system is doing. > > > Apply the same approach to dom0 as well. > > I''ve used both fixed and non fixed disk images w/o issue. > > My env is Centos using the bundled version of Xen as well as Gitcos > latest 3.X versions.And my opinion is to keep your domU isolated and not have it use an fs that the dom0 can see (minus NFS, etc...), treating your domU as a real machine with the advantages of being virtualized. - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/26/2011 6:40 PM, Brian Krusic wrote:> On Feb 26, 2011, at 6:25 PM, Brian Krusic wrote: > >> On Feb 26, 2011, at 6:11 PM, Randy Katz wrote: >> >>> it seems I am using tap:aio on what appears to be quite slow: >>> >>> disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] >>> >>> Is there a good way to convert from tap:aio to lvm? >> >> >> Hi Randy, >> >> I don''t use LVM and my performance is fine. >> >> Have you looked into the domU itself troubleshooting as if it were a >> non virtual host? >> >> Things like vmstat, top, tcpdump, dstat, etc... just to get a >> snapshot of what your system is doing. > > > Apply the same approach to dom0 as well. > > I''ve used both fixed and non fixed disk images w/o issue. > > My env is Centos using the bundled version of Xen as well as Gitcos > latest 3.X versions. >Hi Brian my env is the same. How do I get into dom0 to look into it? xm console Domain-0 does not work for me. Thanks, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Feb 27, 2011 at 9:11 AM, Randy Katz <rkatz@simplicityhosting.com> wrote:> it seems I am using tap:aio on what appears to be quite slow: > > disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] > > Is there a good way to convert from tap:aio to lvm? I tried stop vm, dd > if=server3.img of=/dev/vg1/newlv3 > but it is very very slow, much quicker to blow away the whole thing (vm) and > reinstall and then add data > from backups.dd is the generic way. You might want to use dd_rescue (available as rpm from EPEL), which should at least show you what it''s doing and how fast it''s doing it. 6 - 10MBps is quite normal if you only have one disk. If your image is still empty-ish (e.g 20GB file image with only 2GB used), it might be faster to copy MBR first (which includes partition table), setup your system so you could access the partition on LVM (using something like kpartx), and use something like partclone or clone2fs to copy only used blocks. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/27/2011 2:25 AM, Fajar A. Nugraha wrote:> On Sun, Feb 27, 2011 at 9:11 AM, Randy Katz<rkatz@simplicityhosting.com> wrote: >> it seems I am using tap:aio on what appears to be quite slow: >> >> disk = [ "tap:aio:/disk0/server3.img,xvda,w" ] >> >> Is there a good way to convert from tap:aio to lvm? I tried stop vm, dd >> if=server3.img of=/dev/vg1/newlv3 >> but it is very very slow, much quicker to blow away the whole thing (vm) and >> reinstall and then add data >> from backups. > dd is the generic way. You might want to use dd_rescue (available as > rpm from EPEL), which should at least show you what it''s doing and how > fast it''s doing it. 6 - 10MBps is quite normal if you only have one > disk. > > If your image is still empty-ish (e.g 20GB file image with only 2GB > used), it might be faster to copy MBR first (which includes partition > table), setup your system so you could access the partition on LVM > (using something like kpartx), and use something like partclone or > clone2fs to copy only used blocks. >Cool stuff Fajar, thank you much! Regards, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users