public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
* Raid5 slower with bcache
@ 2013-03-27 10:03 Javier Marcet
       [not found] ` <CAAnFQG9Uafe2PLgA33Uve95W06hb_EHMOqC5FQg9mUbuH-hznw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Javier Marcet @ 2013-03-27 10:03 UTC (permalink / raw)
  To: Linux BCache Mailing List

Hi,

I've been using bcache since last summer, caching a 4x3TB raid5.

Last week one of my disks died so after replacing it, I also got a new
SSD and began to do some tests. There is something which, while not
proving anything, worries me anyway. Better than describing it, just
see this (caches were flushed before each hdparm):

 # hdparm -tT /dev/md0

/dev/md0:
 Timing cached reads:   23860 MB in  2.00 seconds = 11941.98 MB/sec
 Timing buffered disk reads: 996 MB in  3.00 seconds = 331.85 MB/sec

# hdparm -tT /dev/bcache0

/dev/bcache0:
 Timing cached reads:   22944 MB in  2.00 seconds = 11482.63 MB/sec
 Timing buffered disk reads: 488 MB in  3.00 seconds = 162.49 MB/sec

This is without any caching devices attached, that is, in pass-through
mode. My md raid5 is bottlenecked by the 3Gbps of the SATA controller
but with bcache, even in pass-through mode, seems to have a degrading
effect.

With a caching device attached, I know random I/O improves, but it
seems I'm degrading sequential access considerably. See now with a
fresh 128GB Crucial M4 SSD attached:

# hdparm -tT /dev/sdb

/dev/sdb:
 Timing cached reads:   23964 MB in  2.00 seconds = 11994.69 MB/sec
 Timing buffered disk reads: 1594 MB in  3.00 seconds = 530.72 MB/sec

 # hdparm -tT /dev/bcache0

/dev/bcache0:
 Timing cached reads:   23830 MB in  2.00 seconds = 11927.29 MB/sec
 Timing buffered disk reads: 626 MB in  3.00 seconds = 208.64 MB/sec

# hdparm -tT /dev/bcache0

/dev/bcache0:
 Timing cached reads:   24156 MB in  2.00 seconds = 12089.18 MB/sec
 Timing buffered disk reads: 542 MB in  3.05 seconds = 177.53 MB/sec

I would like to try more suited testing tools directly over the RAID,
without any bcache but it looks like I'd need to recreate the whole
array, sigh.

I would appreciate any more info about these numbers.


-- 
Javier Marcet <jmarcet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-27 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27 10:03 Raid5 slower with bcache Javier Marcet
     [not found] ` <CAAnFQG9Uafe2PLgA33Uve95W06hb_EHMOqC5FQg9mUbuH-hznw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-27 18:25   ` Kent Overstreet
     [not found]     ` <20130327182536.GA22232-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2013-03-27 18:42       ` Javier Marcet
2013-03-27 18:54       ` Javier Marcet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox