Skip to contentSkip to conversation

To promote PV SCSI posted before ...

RFC New Tomonari Horikoshi 1 participant 1 message Aug 1, 2007

lore
Share & tools
lore
#0 lore raw

RFC 1/1 To promote PV SCSI posted before ...

Hi all.

To promote PV SCSI posted before, I post this patch.

http://lists.xensource.com/archives/html/xen-devel/2007-07/msg00450.html
http://lists.xensource.com/archives/html/xen-devel/2007-07/msg00451.html
http://lists.xensource.com/archives/html/xen-devel/2007-07/msg00452.html
http://lists.xensource.com/archives/html/xen-devel/2007-07/msg00453.html
http://lists.xensource.com/archives/html/xen-devel/2007-07/msg00561.html

PV SCSI has the structure like VBD.
Frontend driver is registered as SCSI HBA driver by Guest OS,
it passes SCSI CDB as is by using RING.
Frontend driver accesses all disks connected with 1HBA of Dom0. Now, the whole of 1HBA of Dom0 is used by the guest
but in the future, 1HBA will be able to be shared with some Guest OS by NPIV. (see, http://www.xensource.com/files/xensummit_4/Xen_Summit_8_Matsumoto.pdf)

I activated some SCSI devices( tape drive, media changer) by using this PV-on-HVM(PV SCSI). So Guest domain can backup data to tape directly. And Guest domain works as a Backup Server by this function.

* LTO Tape Library ( Ultrium 2 drive of FC )

  # cat /proc/scsi/scsi
  Attached devices:
  Host: scsi0 Channel: 00 Id: 00 Lun: 00
    Vendor: HP       Model: Ultrium 2-SCSI   Rev: F45H
    Type:   Sequential-Access                ANSI SCSI revision: 03
  Host: scsi0 Channel: 00 Id: 00 Lun: 01
    Vendor: HP       Model: Ultrium 2-SCSI   Rev: F45H
    Type:   Sequential-Access                ANSI SCSI revision: 03

* DAT Library (SCSI)

  # cat /proc/scsi/scsi
  Attached devices:
  Host: scsi0 Channel: 02 Id: 00 Lun: 00
    Vendor: LSI      Model: MegaRAID SAS RMB Rev: 1.02
    Type:   Direct-Access                    ANSI SCSI revision: 05
  Host: scsi6 Channel: 00 Id: 00 Lun: 00
    Vendor: HP       Model: C7438A           Rev: ZU68
    Type:   Sequential-Access

The performance of PVSCSI is almost the same as VBD. The following value is a performance ratio of pvscsi and vbd. ( pv-scsi/vbd )

random read:write=1:1 3disk 1prosecs/1disk
blksize = 8k 1.00
blksize = 128k 1.00

random read:write=1:1 3disk 5prosecs/1disk
blksize = 8k 1.08
blksize = 128k 1.15

sequential blksize=128k 1prosecs/1disk
read = 0.85
write = 0.93

Best regards,
Horikoshi

# HG changeset patch
# User [email protected]
# Date 1185876252 -32400
# Node ID d9011bd250e667b46e4cc5b36a47a6326b2b05c4 # Parent 5682f899c7ae7fa945085aaded75cd1220fd8d17 add scsifront driver in PV-on-HVM

unmodified_drivers/linux-2.6/Makefile +1 -0
diff -r 5682f899c7ae -r d9011bd250e6 unmodified_drivers/linux-2.6/Makefile
@@ -4,3 +4,4 @@ obj-m += balloon/
 obj-m += balloon/
 obj-m += blkfront/
 obj-m += netfront/
+obj-m += scsifront/
unmodified_drivers/linux-2.6/scsifront/Kbuild new file +5 -0
diff -r 5682f899c7ae -r d9011bd250e6 unmodified_drivers/linux-2.6/scsifront/Kbuild
@@ -0,0 +1,5 @@
+include $(M)/overrides.mk
+
+obj-m += xen-scsifront.o
+
+xen-scsifront-objs := scsifront.o
unmodified_drivers/linux-2.6/scsifront/Makefile new file +3 -0
diff -r 5682f899c7ae -r d9011bd250e6 unmodified_drivers/linux-2.6/scsifront/Makefile
@@ -0,0 +1,3 @@
+ifneq ($(KERNELRELEASE),)
+include $(src)/Kbuild
+endif

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel