public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
From: Dirk Geschke <dirk-WMiem5eIfR0n5izryJqWLw@public.gmane.org>
To: Rolf Fokkens <rolf-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
Cc: Dirk Geschke <dirk-WMiem5eIfR0n5izryJqWLw@public.gmane.org>,
	linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: bcache not working on large files?
Date: Tue, 22 Oct 2013 20:03:16 +0200	[thread overview]
Message-ID: <20131022180316.GA24473@euve30603.vserver.de> (raw)
In-Reply-To: <5266B774.6040202-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>

Hi Rolf,

> >I was just playing a little bit with bcache and it works fine. But
> >if I try random IOPS writes (writeback) on a file larger than the
> >cache, it seems not to work? At least I get a performance as without
> >bcache.
> >
> >Did I miss something? Is caching disabled in such cases?
> >
> >Has anyone a hint for me, what is going wrong?
> Bcache has some specific handling of sequential I/O:
> 
> http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt
> 
> Could this explain what you're seeing?

no, I was explicitly testing random I/O writes of 4k blocks, 
no sequential writing. With a file of 1000 GB it does work, but
if I use a 10000 GB file, it seems to fail. I would expect, that
the size should not really matter here, at least until the cache
is filled up.

The only thing I can imagine is a problem with the RAID controller.
Both RAIDs (HDDs and SSDs) are on the same controller. Maybe the
controller slows down the SSD cache if it writes to the HDDs?

Hmm, maybe I should do two test prarallel, benchmarking random
writes of 4k blocks to a 1000 GB file on the SSD RAID and random
writes on the HDD RAID. Maybe with random I/O on a 10000 GB file 
would take too long and slow down the SSD RAID?

I will see if I can test it. So maybe it is not an issue of BCache
at all...

Best regards

Dirk
-- 
+----------------------------------------------------------------------+
| Dr. Dirk Geschke       / Plankensteinweg 61    / 85435 Erding        |
| Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
| dirk-tpR6ahGJfjwEZ6m2XrtfILNAH6kLmebB@public.gmane.org / dirk-WMiem5eIfR0n5izryJqWLw@public.gmane.org  / kontakt-WMiem5eIfR0n5izryJqWLw@public.gmane.org |
+----------------------------------------------------------------------+

  parent reply	other threads:[~2013-10-22 18:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-22  7:08 bcache not working on large files? Dirk Geschke
     [not found] ` <20131022070830.GA20286-TGNR7510c4H9eX/OD4jYIkzuTB+3w3uf@public.gmane.org>
2013-10-22 17:35   ` Rolf Fokkens
     [not found]     ` <5266B774.6040202-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
2013-10-22 18:03       ` Dirk Geschke [this message]
     [not found]         ` <20131022180316.GA24473-TGNR7510c4H9eX/OD4jYIkzuTB+3w3uf@public.gmane.org>
2013-10-22 21:11           ` matthew patton
     [not found]             ` <1382476284.36900.YahooMailNeo-XYahOdtEMNlRBbKmAC7my5OW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2013-10-22 21:45               ` Dirk Geschke
     [not found]                 ` <20131022214553.GC26186-TGNR7510c4H9eX/OD4jYIkzuTB+3w3uf@public.gmane.org>
2013-10-22 22:27                   ` matthew patton
     [not found]                     ` <1382480829.46079.YahooMailNeo-XYahOdtEMNkbWpotXP+qY5OW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2013-10-23  2:06                       ` Paul B. Henson
2013-10-23 14:47                   ` Dirk Geschke
2013-10-22 22:16               ` matthew patton

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=20131022180316.GA24473@euve30603.vserver.de \
    --to=dirk-wmiem5eifr0n5izryjqwlw@public.gmane.org \
    --cc=linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rolf-6w2rdlBuEQTpMFipWq+H6g@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