From: "Richard W.M. Jones" <rjones@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "Aarian P. Aleahmad" <arian.spidey@gmail.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: virtio ssd caching
Date: Wed, 7 Sep 2016 20:47:32 +0100 [thread overview]
Message-ID: <20160907194732.GJ26315@redhat.com> (raw)
In-Reply-To: <20160907193638.GB19639@stefanha-x1.localdomain>
On Wed, Sep 07, 2016 at 03:36:38PM -0400, Stefan Hajnoczi wrote:
> On Tue, Sep 06, 2016 at 12:44:39PM +0430, Aarian P. Aleahmad wrote:
> > I am looking for a solution to cache a VM on a SSD without the guest
> > knowing about it. We can do it by caching the disk on which the VM's disk
> > is lcoated with a SSD or we can do it through the hypervisor (i.e. Qemu,
> > KVM, etc.).
> >
> > I was thinking about passing an ssd device to the hypervisor as a cache
> > disk (e.g. passing /dev/sdb to the hypervisor) or making a new virtual disk
> > image and storing it on a SSD and passing the SSD located vDisk to the
> > hypervisor as a cache.
> >
> > Thus, I would like to know whether is it possible or not, and if not, if I
> > wish to implement such a thing, what should I do and whether is there any
> > reusable code to do so or not?
>
> QEMU itself doesn't offset tiering/caching but you can use the host
> kernel's bcache or dm-cache features to achieve this.
>
> I haven't tried them myself so I can't give exact command-lines.
> Richard Jones posted a tutorial in 2014:
> https://rwmj.wordpress.com/2014/05/22/using-lvms-new-cache-feature/
I sure hope it works better today than it did back in 2014 :-(
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
WARNING: multiple messages have this Message-ID (diff)
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "Aarian P. Aleahmad" <arian.spidey@gmail.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] virtio ssd caching
Date: Wed, 7 Sep 2016 20:47:32 +0100 [thread overview]
Message-ID: <20160907194732.GJ26315@redhat.com> (raw)
In-Reply-To: <20160907193638.GB19639@stefanha-x1.localdomain>
On Wed, Sep 07, 2016 at 03:36:38PM -0400, Stefan Hajnoczi wrote:
> On Tue, Sep 06, 2016 at 12:44:39PM +0430, Aarian P. Aleahmad wrote:
> > I am looking for a solution to cache a VM on a SSD without the guest
> > knowing about it. We can do it by caching the disk on which the VM's disk
> > is lcoated with a SSD or we can do it through the hypervisor (i.e. Qemu,
> > KVM, etc.).
> >
> > I was thinking about passing an ssd device to the hypervisor as a cache
> > disk (e.g. passing /dev/sdb to the hypervisor) or making a new virtual disk
> > image and storing it on a SSD and passing the SSD located vDisk to the
> > hypervisor as a cache.
> >
> > Thus, I would like to know whether is it possible or not, and if not, if I
> > wish to implement such a thing, what should I do and whether is there any
> > reusable code to do so or not?
>
> QEMU itself doesn't offset tiering/caching but you can use the host
> kernel's bcache or dm-cache features to achieve this.
>
> I haven't tried them myself so I can't give exact command-lines.
> Richard Jones posted a tutorial in 2014:
> https://rwmj.wordpress.com/2014/05/22/using-lvms-new-cache-feature/
I sure hope it works better today than it did back in 2014 :-(
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
next prev parent reply other threads:[~2016-09-07 19:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 8:14 virtio ssd caching Aarian P. Aleahmad
2016-09-06 8:14 ` [Qemu-devel] " Aarian P. Aleahmad
2016-09-07 19:36 ` Stefan Hajnoczi
2016-09-07 19:47 ` Richard W.M. Jones [this message]
2016-09-07 19:47 ` Richard W.M. Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160907194732.GJ26315@redhat.com \
--to=rjones@redhat.com \
--cc=arian.spidey@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.