* [Qemu-devel] virtio ssd caching
@ 2016-09-06 8:14 Aarian P. Aleahmad
2016-09-07 19:36 ` Stefan Hajnoczi
0 siblings, 1 reply; 3+ messages in thread
From: Aarian P. Aleahmad @ 2016-09-06 8:14 UTC (permalink / raw)
To: qemu-devel, kvm
Hi there
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?
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] virtio ssd caching
2016-09-06 8:14 [Qemu-devel] virtio ssd caching Aarian P. Aleahmad
@ 2016-09-07 19:36 ` Stefan Hajnoczi
2016-09-07 19:47 ` Richard W.M. Jones
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2016-09-07 19:36 UTC (permalink / raw)
To: Aarian P. Aleahmad; +Cc: qemu-devel, kvm, rjones
[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]
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/
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] virtio ssd caching
2016-09-07 19:36 ` Stefan Hajnoczi
@ 2016-09-07 19:47 ` Richard W.M. Jones
0 siblings, 0 replies; 3+ messages in thread
From: Richard W.M. Jones @ 2016-09-07 19:47 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Aarian P. Aleahmad, qemu-devel, kvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-07 19:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-06 8:14 [Qemu-devel] virtio ssd caching Aarian P. Aleahmad
2016-09-07 19:36 ` Stefan Hajnoczi
2016-09-07 19:47 ` Richard W.M. Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).