Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 09:25:24 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        vbox@freebsd.org
Subject:   Re: ZFS zvol support improved - VirtualBox gets unstable with it
Message-ID:  <CA%2BtpaK2gFC4O83N6bQ2A271gDUcP8d9-dAKFw_iqvS3z39GToA@mail.gmail.com>
In-Reply-To: <53EB570F.2000902@b1t.name>
References:  <53EB570F.2000902@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 13, 2014 at 7:16 AM, Volodymyr Kostyrko <c.kworr@gmail.com>
wrote:

> Hi all.
>
> There was a long time ago when I started to use pure zvol's as VirtualBox
> disks. This way virtual machines were working faster due to default smaller
> cluster size and I also can snapshot them and mount right from the OS. Too
> bad this also required setting 'use host i/o cache' at storage controller
> properties. Without that most guest OS would just break or hang.


I've been using ZVOL's as Vbox disks for maybe @ 3 years including some
exported as ISCSI.  The break/hang you describe is totally unfamiliar to me
even though my guests include various Linux distros, different
versions/types of BSD, and several flavors of Windows.  These included a
mixture of i386/amd64 guests.  I do not set "use host i/o cache" on any
systems(not all have ZVOL snapshots but most do).


>
> Recently 10-STABLE was shown some improvements:
>
> 1. zfs set volmode=dev <zvol>
>
> Now you can mark zvol as a dev node preventing system from touching it.
> Also this makes working with zvol simpler.
>
> 2. r269429 (MFC r269123): Implement separate I/O dispatch method for ZVOLs
> in "dev" mode.
>
> After this one if you have zvol's marked as volmode=dev you can turn off
> useHostIOCache for your virtual machines. And they would also work much
> faster! But alas after that VirtualBox becomes unstable and your machines
> can also fail on heavy IO.
>

1 & 2 look very interesting.  If that makes it into 10.1, I'll be giving it
a whirl.


-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK2gFC4O83N6bQ2A271gDUcP8d9-dAKFw_iqvS3z39GToA>