public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
From: Kent Overstreet <koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
To: matthew patton <pattonme-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: block activity stats
Date: Tue, 30 Apr 2013 13:31:34 -0700	[thread overview]
Message-ID: <20130430203134.GI9931@google.com> (raw)
In-Reply-To: <1367293610.13617.YahooMailClassic-XYahOdtEMNn35Xbc4wGBzZOW+3bF1jUfVpNB7YpNyf8@public.gmane.org>

On Mon, Apr 29, 2013 at 08:46:50PM -0700, matthew patton wrote:
> Is block activity tracked exclusively by Bcache code or is Bcache
> piggy-backing on already existing statistics tracking that is
> implemented in LVM or the VM or (scsi?) block layers? If the first, I
> was wondering how hard it would be to move it into the lower levels
> and turned on/off with sysfs.

What sort of activity? Do you mean which blocks are cached and which
aren't?

That sort of thing is tracked entirely within bcache.

Maybe you could tell me more specifically what you're trying to do?

> Is there a whitepaper that goes into the mechanics of the tracking,
> the granularity (eg. block region size), (de)promotion trigger logic,
> etc? Or is this a question best answered by "go read the code"?

There might be a more concise description of this stuff in the wiki, but
probably the best documentation is going to be in the code - I wrote a
lot of high level documentation and stuck it at the top of various
files:

http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/drivers/md/bcache/bcache.h?h=bcache-dev

http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/drivers/md/bcache/alloc.c?h=bcache-dev

http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/drivers/md/bcache/btree.h?h=bcache-dev

Let me know what's missing!

  parent reply	other threads:[~2013-04-30 20:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29 15:43 Very poor performances with the bcache-for-upstream branch Leslie Basmid
     [not found] ` <CA+XuAnJO4BCE0yj0i_CZ_iQvDj56FHwFZH302XrisD45P5R3Tw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-29 17:52   ` Kent Overstreet
     [not found]     ` <CAC7rs0t4uKx37i7pxMoMQgVeUT6spDeridfdC+R6mqLbf1dwug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-30  3:46       ` block activity stats matthew patton
     [not found]         ` <1367293610.13617.YahooMailClassic-XYahOdtEMNn35Xbc4wGBzZOW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2013-04-30 20:31           ` Kent Overstreet [this message]
     [not found]             ` <20130430203134.GI9931-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2013-05-01  1:10               ` Jason Warr
2013-05-01 13:30       ` Very poor performances with the bcache-for-upstream branch Leslie Basmid
     [not found]         ` <CA+XuAnK4nNOG_tSuuteDThbj5L+5xmDsxQLfrHj314z1fr+bUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-01 15:36           ` matthew patton
     [not found]             ` <1367422594.24900.YahooMailClassic-XYahOdtEMNm2Y7dhQGSVAJOW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2013-05-01 16:56               ` Leslie Basmid
     [not found]                 ` <CA+XuAn+Z-gxkfeE8D-A1-EJ4_QEBUqPJYfc40jevkJFbMzQ+Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-01 18:56                   ` Kent Overstreet
     [not found]                     ` <20130501185638.GB4057-jC9Py7bek1znysI04z7BkA@public.gmane.org>
2013-05-01 19:50                       ` Leslie Basmid
2013-05-02  5:50 ` Gabriel de Perthuis
2013-05-02 16:13   ` Leslie Basmid

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=20130430203134.GI9931@google.com \
    --to=koverstreet-hpiqsd4aklfqt0dzr+alfa@public.gmane.org \
    --cc=linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pattonme-/E1597aS9LQAvxtiuMwx3w@public.gmane.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