mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Egon Alter <egon.alter@gmx.net>
To: linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH] bcache: ver 3
Date: Sat, 24 Apr 2010 17:47:40 +0200	[thread overview]
Message-ID: <201004241747.41045.egon.alter@gmx.net> (raw)


I'm wondering if this is similar to the "Cleancache" patches send a few days 
before. 

Could bcache provide a (block-dev) backend to cleancache? Also there is fs-
cache (for networks-fs only currently). Can these caches be combined somehow?

Egon

Kent Overstreet:
> The core code is getting close to stable and feature complete. Garbage
> collection is done, and locking is mostly done (I'm not refcounting data
> buckets yet, and it does need to be stared at a whole lot more but it
> passes lockdep and seems to be working).
> 
> Basic bucket priority calculation is done (right now it acts as an LRU);
> you can fill the cache up and everything works like it ought to. And,
> I've yet to see it return bad data; I think it's not all that far off
> from being useful.
> 
> The one thing that has me at a loss right now is the performance isn't
> where it should be, and for no obvious reason. The problem is most
> succinctly demonstrated thusly:
> 
> With cache, no cache misses:
> root@utumno:~# mount -o ro /dev/sdb /mnt/
> root@utumno:~# cd /mnt/
> root@utumno:/mnt# time find > /dev/null
> 
>  real	0m29.618s
>  user	0m0.000s
>  sys	0m0.840s
> 
> No cache device:
> root@utumno:~# mount -o ro /dev/sdb /mnt/
> root@utumno:~# cd /mnt/
> root@utumno:/mnt# time find > /dev/null
> 
> real	0m1.597s
> user	0m0.050s
> sys	0m1.240s
> 
> This is a vm, so the wall clock time in the latter case doesn't mean
> much, it's all in the hosts's cache. But the former case is bewildering;
> the cache device lives on a tmpfs so it shouldn't be waiting on IO, and
> cpu time is less than the uncached case. Clearly it's waiting on
> something, but I haven't been able to figure out what the heck to trace;
> there's no lock contention, blktrace shows nothing unexpected, I keep
> running into dead ends. Any pointers here would be much appreciated.
> 
> Besides that, there shouldn't be anything complex left before I add
> write support, and that should be pretty straightforward too.
> 
> This patch does have some changes to the generic bio code for completion
> of split bios, I'm going to split it out and submit it seperately after
> I've gone over it more and it's actually been tested.
> 
> Any comments/review much appreciated.
> [patch sniped]

             reply	other threads:[~2010-04-24 15:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24 15:47 Egon Alter [this message]
2010-04-24 20:08 ` Kent Overstreet
  -- strict thread matches above, loose matches on Subject: below --
2010-04-23 19:41 Kent Overstreet
2010-04-23 20:07 ` Randy Dunlap
2010-04-23 20:17   ` Kent Overstreet
2010-04-23 20:19     ` Randy Dunlap
2010-04-23 20:46       ` Kent Overstreet
2010-04-23 20:39 ` Randy Dunlap
2010-04-23 21:05   ` Kent Overstreet
2010-04-25 11:48 ` Pavel Machek

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=201004241747.41045.egon.alter@gmx.net \
    --to=egon.alter@gmx.net \
    --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

Powered by JetHome