Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B65FB200C03 for ; Sat, 21 Jan 2017 10:46:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B50AF160B4A; Sat, 21 Jan 2017 09:46:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 089A5160B3C for ; Sat, 21 Jan 2017 10:46:47 +0100 (CET) Received: (qmail 22647 invoked by uid 500); 21 Jan 2017 09:46:46 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 22635 invoked by uid 99); 21 Jan 2017 09:46:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2017 09:46:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1FA871A02C0 for ; Sat, 21 Jan 2017 09:46:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BNHR9nFN3KfM for ; Sat, 21 Jan 2017 09:46:42 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9006B5F405 for ; Sat, 21 Jan 2017 09:46:41 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id r126so68660988wmr.0 for ; Sat, 21 Jan 2017 01:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OcUbjZzxsXgAadHnOU9fETbMgNRNrodp/e7y9egvJpk=; b=UY4Q683Dui+4zMgvSwwlrrK9XFt+jk1iQm9kHP4G9PAZRAsX1fiG3JuZadOKD3ms9T 3+KjoJTs85D8ET3hZDKbWg7I3qeAklvs/jZWIle178rXbfR/a4PlKk/QbP+dWXq8BaTm eJjGsgACULoNRLP3khcYvX7fEXZLKp2dKOE3SAr7EGbU7QvyXSUyhkSOcUs5nelBGWdy N86ZOjKa/VgpSL0beaTj86bwy76Ise1KLg7LZFy6KzXqOFYQB2tmoupG7FhyUuzrh/kI WlHX4jJXSBRhtPHKO+Ga4bhLGLvxHHWBe3xIJt31oDPQ8/B0g7SOJ7LjO91iQQHbp3C9 LM1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OcUbjZzxsXgAadHnOU9fETbMgNRNrodp/e7y9egvJpk=; b=PWvgcWXybv4PiG3R2W1DonVR/sBEY7zmTemFaOhtUKb6/mgSO4cW8tnM9NnxL3MOYi /KC2bpnKNj8UP6UULF+3BKKNz4jSs7vP8l2+acmwl1zTVTMiFvVD6C2EuyvquILxopK7 bawlBPtOGnk2bugIUoJZ+tS/2n3732FyMgtgcU43xaKLuMWxp1tFj44aw3AeEd/a9T/m X8JwvfYVYyeQzwVkWh1BKht9bVSarDn0bj0/ctTQ+wKk+oMW4Dkw44RwfnvuUqOSDONc Ydqbf+24bEsl3GXm0FKjvpzc0ccEzLqgUB3KIFChCGqr30Asq/FbhCcXQjVbUVlWa8U3 V9CQ== X-Gm-Message-State: AIkVDXKW3LWECx/1+S0eE6parmiu1TpZOL68epEJqlc9yHq7iXcxwPWCXdmjUIyelgC4vjOw4aG0DWgXYEmULg== X-Received: by 10.223.136.155 with SMTP id f27mr14936231wrf.98.1484991997928; Sat, 21 Jan 2017 01:46:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.151.9 with HTTP; Sat, 21 Jan 2017 01:46:37 -0800 (PST) In-Reply-To: <1628480622.7768.1484947288957@ox.pcextreme.nl> References: <1628480622.7768.1484947288957@ox.pcextreme.nl> From: Laszlo Hornyak Date: Sat, 21 Jan 2017 10:46:37 +0100 Message-ID: Subject: Re: Adding VirtIO SCSI to KVM hypervisors To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=001a1149125487eb02054697a449 archived-at: Sat, 21 Jan 2017 09:46:48 -0000 --001a1149125487eb02054697a449 Content-Type: text/plain; charset=UTF-8 Hi Wido, If I understand correctly from the documentation and your examples, virtio provides virtio interface to the guest while virtio-scsi provides scsi interface, therefore an IaaS service should not replace it without user request / approval. It would be probably better to let the user set what kind of IO interface the VM needs. Best regards, Laszlo On Fri, Jan 20, 2017 at 10:21 PM, Wido den Hollander wrote: > Hi, > > VirtIO SCSI [0] has been supported a while now by Linux and all kernels, > but inside CloudStack we are not using it. There is a issue for this [1]. > > It would bring more (theoretical) performance to VMs, but one of the > motivators (for me) is that we can support TRIM/DISCARD [2]. > > This would allow for RBD images on Ceph to shrink, but it can also give > back free space on QCOW2 images if quests run fstrim. Something all modern > distributions all do weekly in a CRON. > > Now, it is simple to swap VirtIO for VirtIO SCSI. This would however mean > that disks inside VMs are then called /dev/sdX instead of /dev/vdX. > > For GRUB and such this is no problems. This usually work on UUIDs and/or > labels, but for static mounts on /dev/vdb1 for example things break. > > We currently don't have any configuration method on how we want to present > a disk to a guest, so when attaching a volume we can't say that we want to > use a different driver. If we think that a Operating System supports VirtIO > we use that driver in KVM. > > Any suggestion on how to add VirtIO SCSI support? > > Wido > > > [0]: http://wiki.qemu.org/Features/VirtioSCSI > [1]: https://issues.apache.org/jira/browse/CLOUDSTACK-8239 > [2]: https://issues.apache.org/jira/browse/CLOUDSTACK-8104 > -- EOF --001a1149125487eb02054697a449--