linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bill Speirs <bill.speirs@gmail.com>
To: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Userspace Block Device
Date: Tue, 19 May 2015 11:33:54 -0400	[thread overview]
Message-ID: <CAB_f4-Wg9tGCV=jENe+92-2EZpfT-Jpwx8EcB6eZe+iXN4Vkug@mail.gmail.com> (raw)
In-Reply-To: <20150519161902.10881f9b@lxorguk.ukuu.org.uk>

On Tue, May 19, 2015 at 11:19 AM, One Thousand Gnomes
<gnomes@lxorguk.ukuu.org.uk> wrote:
>> ... rack up a huge bill with Amazon or Google
>
> And you probably would because the block layer will see a lot of I/O
> requests that you would really want to process locally, as well as stuff
> caused by working at the block not file level (like readaheads).
>
> You also can't deal with coherency this way - eg sharing the virtual disk
> between two systems because the file system code isn't expecting other
> clients to modify the disk under it.
>
> Rather than nbd you could also look at drbd or some similar kind of
> setup where you keep the entire filestore locally and write back changes
> to the remote copy. As you can never share the filestore when mounted you
> can cache it pretty aggressively.

What kinds of things could I process locally? I was thinking I could
keep a bitmap of "sectors" that have never been written to, then just
return zeroed-out sectors for those. What else I could do? Thoughts?

I'm not looking to share the filesystem, just never have to buy a
bigger disk again and get pseudo-backup along with it (I realize
things in my cache would be lost if my house burned to the ground).

drbd isn't really what I'm looking for, because I don't want to have
to buy a disk that's large enough to fit everything. Just a small fast
SSD (or RAM disk) to cache commonly used files, then spill-over to the
cloud for everything else. In theory, I would have a /home that is
"infinite", and fairly fast for things that are cached.

Thanks for the thoughts/points!

Bill-

      reply	other threads:[~2015-05-19 15:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 19:01 Userspace Block Device Bill Speirs
2015-05-19  5:34 ` Rob Landley
2015-05-19 14:42   ` Bill Speirs
2015-05-19 15:19     ` One Thousand Gnomes
2015-05-19 15:33       ` Bill Speirs [this message]

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='CAB_f4-Wg9tGCV=jENe+92-2EZpfT-Jpwx8EcB6eZe+iXN4Vkug@mail.gmail.com' \
    --to=bill.speirs@gmail.com \
    --cc=gnomes@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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 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).