raid(1) and block caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

There is holywar once again on nginx maillist about standalone drives
vs raid1 arrays for serving static files. By standalone drives it is
assumed that file "Filename1" exist on /mnt/disk1, /mnt/disk2,
/mnt/diskN where /mnt/diskX is mountpoint for drives /dev/sdY.

As there are some pros and cons on both sides (at least theoretically)
 I have dumb question - let's say our array md1 consists on 3 drives -
/dev/sd{a,b,c} - and when data read from md1 occurs, which block is
cached in VFS (or may be other cache in system, it would be nice to
know which part of system is doing caching)  - the block from md1
itself or from certain drive? If it is drive-based block cache, it's
gonna be potentially memory wasting to keep 3 similar data copies, so
I assume md does data reads with something like O_DIRECT flag, but as
I 1) don't know C 2) don't know kernel, I'm asking this on the list to
make this clean for myself.

-- 
Best regards,
[COOLCOLD-RIPN]
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux