Linux RAID subsystem development
 help / color / mirror / Atom feed
* raid(1) and block caching
@ 2011-10-29  4:49 CoolCold
  2011-10-29  5:20 ` Stan Hoeppner
  2011-10-29  6:26 ` NeilBrown
  0 siblings, 2 replies; 6+ messages in thread
From: CoolCold @ 2011-10-29  4:49 UTC (permalink / raw)
  To: Linux RAID

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]

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

end of thread, other threads:[~2011-10-31 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29  4:49 raid(1) and block caching CoolCold
2011-10-29  5:20 ` Stan Hoeppner
2011-10-29  6:26 ` NeilBrown
2011-10-30 11:07   ` CoolCold
2011-10-30 12:36   ` John Robinson
2011-10-31 18:53     ` CoolCold

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