From: Tomonari Horikoshi Subject: [RFC] To promote PV SCSI posted before ... Date: Wed, 01 Aug 2007 19:09:34 +0900 Message-ID: <58C7D4240F2144t.horikoshi@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-k8A2Xcgyo9uIk0NZcLjsF" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --Boundary-k8A2Xcgyo9uIk0NZcLjsF Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body 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 --Boundary-k8A2Xcgyo9uIk0NZcLjsF Content-Type: application/octet-stream; name="pv-on-hvm-add_scsifront.patch" Content-Disposition: attachment; filename="pv-on-hvm-add_scsifront.patch" Content-Transfer-Encoding: base64 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHQuaG9yaWtvc2hpQGpwLmZ1aml0c3UuY29t CiMgRGF0ZSAxMTg1ODc2MjUyIC0zMjQwMAojIE5vZGUgSUQgZDkwMTFiZDI1MGU2NjdiNDZl NGNjNWIzNmE0N2E2MzI2YjJiMDVjNAojIFBhcmVudCAgNTY4MmY4OTljN2FlN2ZhOTQ1MDg1 YWFkZWQ3NWNkMTIyMGZkOGQxNwphZGQgc2NzaWZyb250IGRyaXZlciBpbiBQVi1vbi1IVk0K ClNpZ25lZC1vZmYtYnk6IFRvbW9uYXJpIEhvcmlrb3NoaSA8dC5ob3Jpa29zaGlAanAuZnVq aXRzdS5jb20+CgpkaWZmIC1yIDU2ODJmODk5YzdhZSAtciBkOTAxMWJkMjUwZTYgdW5tb2Rp ZmllZF9kcml2ZXJzL2xpbnV4LTIuNi9NYWtlZmlsZQotLS0gYS91bm1vZGlmaWVkX2RyaXZl cnMvbGludXgtMi42L01ha2VmaWxlCUZyaSBKdWwgMjcgMDk6MDY6NTggMjAwNyArMDEwMAor KysgYi91bm1vZGlmaWVkX2RyaXZlcnMvbGludXgtMi42L01ha2VmaWxlCVR1ZSBKdWwgMzEg MTk6MDQ6MTIgMjAwNyArMDkwMApAQCAtNCwzICs0LDQgQEAgb2JqLW0gKz0gYmFsbG9vbi8K IG9iai1tICs9IGJhbGxvb24vCiBvYmotbSArPSBibGtmcm9udC8KIG9iai1tICs9IG5ldGZy b250Lworb2JqLW0gKz0gc2NzaWZyb250LwpkaWZmIC1yIDU2ODJmODk5YzdhZSAtciBkOTAx MWJkMjUwZTYgdW5tb2RpZmllZF9kcml2ZXJzL2xpbnV4LTIuNi9zY3NpZnJvbnQvS2J1aWxk Ci0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDowMDowMCAxOTcwICswMDAwCisrKyBiL3Vu bW9kaWZpZWRfZHJpdmVycy9saW51eC0yLjYvc2NzaWZyb250L0tidWlsZAlUdWUgSnVsIDMx IDE5OjA0OjEyIDIwMDcgKzA5MDAKQEAgLTAsMCArMSw1IEBACitpbmNsdWRlICQoTSkvb3Zl cnJpZGVzLm1rCisKK29iai1tICs9IHhlbi1zY3NpZnJvbnQubworCit4ZW4tc2NzaWZyb250 LW9ianMgOj0gc2NzaWZyb250Lm8KZGlmZiAtciA1NjgyZjg5OWM3YWUgLXIgZDkwMTFiZDI1 MGU2IHVubW9kaWZpZWRfZHJpdmVycy9saW51eC0yLjYvc2NzaWZyb250L01ha2VmaWxlCi0t LSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDowMDowMCAxOTcwICswMDAwCisrKyBiL3VubW9k aWZpZWRfZHJpdmVycy9saW51eC0yLjYvc2NzaWZyb250L01ha2VmaWxlCVR1ZSBKdWwgMzEg MTk6MDQ6MTIgMjAwNyArMDkwMApAQCAtMCwwICsxLDMgQEAKK2lmbmVxICgkKEtFUk5FTFJF TEVBU0UpLCkKK2luY2x1ZGUgJChzcmMpL0tidWlsZAorZW5kaWYK --Boundary-k8A2Xcgyo9uIk0NZcLjsF Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-k8A2Xcgyo9uIk0NZcLjsF--