From mboxrd@z Thu Jan 1 00:00:00 1970 From: TooMeeK Subject: Virtual drives performance Date: Wed, 07 Sep 2011 00:25:26 +0200 Message-ID: <4E669DD6.5010805@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: KVM list Return-path: Received: from moh2-ve1.go2.pl ([193.17.41.186]:60581 "EHLO moh2-ve1.go2.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987Ab1IFWZq (ORCPT ); Tue, 6 Sep 2011 18:25:46 -0400 Received: from moh2-ve1.go2.pl (unknown [10.0.0.186]) by moh2-ve1.go2.pl (Postfix) with ESMTP id 2793044C1C0 for ; Wed, 7 Sep 2011 00:25:30 +0200 (CEST) Received: from unknown (unknown [10.0.0.108]) by moh2-ve1.go2.pl (Postfix) with SMTP for ; Wed, 7 Sep 2011 00:25:30 +0200 (CEST) Sender: kvm-owner@vger.kernel.org List-ID: Hello, I'm trying to set up a fast virtualized Samba file server. I'm using Debian Sqeeze 64 bit as hypervisor. First, I created mirrored storage in hypervisor from one 600-gig partition (yes, that's correct - I have only one drive currently), details: sudo mdadm --detail /dev/md3 /dev/md3: Version : 1.2 Creation Time : Thu Jul 28 20:07:00 2011 Raid Level : raid1 Array Size : 664187352 (633.42 GiB 680.13 GB) Used Dev Size : 664187352 (633.42 GiB 680.13 GB) Raid Devices : 2 Total Devices : 1 Persistence : Superblock is persistent Update Time : Thu Jul 28 22:07:10 2011 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 Name : Server:3 (local to host Server) UUID : 87184170:2d9102b1:ca16a5d7:1f23fe2e Events : 3276 Number Major Minor RaidDevice State 0 8 23 0 active sync /dev/sdb7 1 0 0 1 removed Partition type is Linux RAID autodetect and this drive can do 80MB/s write and 100 MB/s read seq. QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5) Next, I've tried following combinations with virt-manager 0.8.4 (from XML of VM): 1.on Debian VM with virtio drivers for both storage and NIC: partition type used in guest: EXT4 result: poor performance, 9-10MB/s sequentional copy via SMB 2.on Debian VM with virtio drivers: partition type used: EXT4 result: poor performance, 10-15MB/s sequentional copy via SMB 3.Direct attached partition to FreeBSD VM without virtio support (e1000 NIC and SCSI disk): partition type used: ZFS result: poor performance, 20-25MB/s sequentional copy via SMB 4.Direct attached whole physical disk to FreeBSD VM (/dev/sdc 2,5") partition type used in VM: ZFS good performance, 60MB/s sequentional copy via SMB I find that way it's not possible to direct attach PARTITION from host to VM using virt-manager, this only works for whole device (like /dev/sdc). Anyway, any storage advices for performance?