linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Justin Sharp <sharp@sharpone.net>
To: Kiran Patil <kirantpatil@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: bcache with SSD instead of battery powered raid cards
Date: Tue, 20 Mar 2012 22:47:44 -0600	[thread overview]
Message-ID: <4F695D70.8030106@sharpone.net> (raw)
In-Reply-To: <CANT588ujRWQtreA07dPK9ynj7dXVGykRMXjcQy_kFd3mFimZ6w@mail.gmail.com>

On 03/13/2012 04:06 AM, Kiran Patil wrote:
> Hi,
>
> Is anybody using bcache with SSD instead of battery powered raid cards
> with Btrfs ?
>
> Hard drives are cheap and big, SSDs are fast but small and expensive.
> Wouldn't it be nice if you could transparently get the advantages of
> both? With Bcache, you can have your cake and eat it too.
>
> Bcache is a patch for the Linux kernel to use SSDs to cache other
> block devices. It's analogous to L2Arc for ZFS, but Bcache also does
> writeback caching, and it's filesystem agnostic. It's designed to be
> switched on with a minimum of effort, and to work well without
> configuration on any setup. By default it won't cache sequential IO,
> just the random reads and writes that SSDs excel at. It's meant to be
> suitable for desktops, servers, high end storage arrays, and perhaps
> even embedded.
>
> http://bcache.evilpiepirate.org/
Did you ever experiment with this? What results did you find?

There is also something similar called flashcache developed by some 
facebook engineer that I'm interested in trying. They are supposedly 
using this to speed up mysql+innodb. It is out of mainline tree code 
though, and I don't think there is much of an effort to get it in. It 
supports writeback, writethrough and writearound (blocks are never 
cached on write, only on read) caching. It uses dm-mapper to combine 
your 'cache block' with your 'slow spinning block' and then you put your 
filesystem on top of that dm device. https://github.com/facebook/flashcache

Regards,
--Justin

      reply	other threads:[~2012-03-21  4:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 10:06 bcache with SSD instead of battery powered raid cards Kiran Patil
2012-03-21  4:47 ` Justin Sharp [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=4F695D70.8030106@sharpone.net \
    --to=sharp@sharpone.net \
    --cc=kirantpatil@gmail.com \
    --cc=linux-btrfs@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).