linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs RAID-1 vs md RAID-1?
@ 2016-05-15 10:24 Tomasz Chmielewski
  2016-05-15 12:07 ` Anand Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tomasz Chmielewski @ 2016-05-15 10:24 UTC (permalink / raw)
  To: linux-btrfs

I'm trying to read two large files in parallel from a 2-disk RAID-1 
btrfs setup (using kernel 4.5.3).

According to iostat, one of the disks is 100% saturated, while the other 
disk is around 0% busy.

Is it expected?

With two readers from the same disk, each file is being read with ~50 
MB/s from disk (with just one reader from disk, the speed goes up to 
around ~150 MB/s).


In md RAID, with many readers, it will try to distribute the reads - 
after md manual on http://linux.die.net/man/4/md:

     Raid1
     (...)
     Data is read from any one device. The driver attempts to distribute 
read requests across all devices
     to maximise performance.

     Raid5
     (...)
     This also allows more parallelism when reading, as read requests are 
distributed over all the devices
     in the array instead of all but one.


Are there any plans to improve this is btrfs?


Tomasz Chmielewski
http://wpkg.org


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

end of thread, other threads:[~2016-05-15 23:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-15 10:24 btrfs RAID-1 vs md RAID-1? Tomasz Chmielewski
2016-05-15 12:07 ` Anand Jain
2016-05-15 20:40 ` Duncan
2016-05-15 23:29 ` Kai Krakow

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).