From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: "Harry G. Coin" <hgcoin@gmail.com>
Cc: virtio-fs@redhat.com
Subject: Re: [Virtio-fs] Kudos: productivity boost using virtio-fs
Date: Thu, 1 Oct 2020 17:26:18 +0100 [thread overview]
Message-ID: <20201001162618.GN2807@work-vm> (raw)
In-Reply-To: <3deb375c-e234-f83c-159f-cebdd3a1876e@gmail.com>
* Harry G. Coin (hgcoin@gmail.com) wrote:
>
> On 10/1/20 8:51 AM, Dr. David Alan Gilbert wrote:
> > * Harry G. Coin (hgcoin@gmail.com) wrote:
> >> Though it's likely been written before:
> >>
> >> Virtio-fs is a wonderful productivity boost in development environments
> >> in which unrelated deadlocks, crashes and hard-lockups happen.  Why?Â
> >> Because the underlying file system is never corrupted (though individual
> >> file contents may be, the file system itself is protected).  For
> >> example, using btrfs' snapshot ability in the underlying file system and
> >> comparing 'before and after' crashes creates a powerful debugging tool.
> > Thanks!
> >
> > I'm curious, can you describe a bit more about how you're using it with
> > btrfs - I don't think we've had anyone describe that before.
> > (We mostly use it with overlayfs via the various container tools).
> >
> > Dave
>
> The 3 host chassis I've set up so far to work with this has a btrfs
> file system in a raid-1 setup. Btrfs does a good job with xattr support
> which virtio-fs can be set to use well.
>
> I have several vm's running on each chassis, each using virtio-fs. On
> the host, there is a sub-volume for each vm. The vms use kernel
> booting, and huge pages. So, on the bare-metal host, a simple 'btrfs su
> snapshot <vm sub volume> <snap name> generates an 'almost free' (from a
> resource perspective) look at the entire vm. Various risky experimental
> things go on in the vm, which could lead to file system corruption owing
> to deadlocks and hard freezes and race conditions. However with
> virtio-fs, when that happens, all I need to do on the host is make a
> another snapshot of the 'frozen' vm, stop the vm. Then I can compare
> the exact state of the files at the time of the freeze with the 'known
> good' versions at the snapshot time. Delete the 'frozen' state
> snapshot, make a new snapshot of the known good snapshot, reboot the vm
> and the dev cycle can continue.
OK, nice.
> Even if the cause of the freeze wasn't evident in the file system
> deltas, knowing there isn't corruption in the underlying fs is a big
> time saver.
>
> I expect when dax makes it out of the development bubble this
> configuration will be a very high performance, easy to maintain, high
> security arrangement. Much harder to 'break out' of a vm than the
> various container options.
Yeh; dealing with stuff that corrupts your install isn't fun;
thanks for the explanation!
Dave
>
>
>
>
> >> I suspect most folks involved in virtio-fs know this, but it's worth
> >> putting in the record for new folks.
> >>
> >> Harry
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Virtio-fs mailing list
> >> Virtio-fs@redhat.com
> >> https://www.redhat.com/mailman/listinfo/virtio-fs
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2020-10-01 16:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-29 18:50 [Virtio-fs] [RFC PATCH] fuse: update attributes on read() only on timeout Vivek Goyal
2020-09-29 18:50 ` Vivek Goyal
2020-09-29 19:58 ` [Virtio-fs] " Vivek Goyal
2020-09-29 19:58 ` Vivek Goyal
2020-09-30 4:35 ` [Virtio-fs] " Amir Goldstein
2020-09-30 4:35 ` Amir Goldstein
2020-09-30 6:40 ` [Virtio-fs] " Miklos Szeredi
2020-09-30 6:40 ` Miklos Szeredi
2020-09-30 11:57 ` [Virtio-fs] " Amir Goldstein
2020-09-30 11:57 ` Amir Goldstein
2020-10-01 13:47 ` [Virtio-fs] Kudos: productivity boost using virtio-fs Harry G. Coin
2020-10-01 13:51 ` Dr. David Alan Gilbert
2020-10-01 14:12 ` Harry G. Coin
2020-10-01 16:26 ` Dr. David Alan Gilbert [this message]
2020-10-02 14:47 ` Vivek Goyal
2020-09-30 13:02 ` [Virtio-fs] [RFC PATCH] fuse: update attributes on read() only on timeout Vivek Goyal
2020-09-30 13:02 ` Vivek Goyal
2020-09-30 13:19 ` [Virtio-fs] " Amir Goldstein
2020-09-30 13:19 ` Amir Goldstein
2020-09-30 13:38 ` [Virtio-fs] " Miklos Szeredi
2020-09-30 13:38 ` Miklos Szeredi
2020-09-30 9:03 ` [Virtio-fs] " Stefan Hajnoczi
2020-09-30 9:03 ` Stefan Hajnoczi
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=20201001162618.GN2807@work-vm \
--to=dgilbert@redhat.com \
--cc=hgcoin@gmail.com \
--cc=virtio-fs@redhat.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.