linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ext4 barrier on SCSI vs SATA?
@ 2012-05-07 10:35 Daniel Pocock
  2012-05-09 19:50 ` Jan Kara
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Pocock @ 2012-05-07 10:35 UTC (permalink / raw)
  To: linux-ext4



I understand that for barriers to work, the fs needs to be able to tell
the drive when to move data from hardware cache to the platter.

I notice various pages mention the SYNCHRONIZE CACHE command (SCSI) and
the FLUSH_CACHE_EXT command (ATA) as if they are equivalent.

Looking more closely, I found the SYNCHRONIZE CACHE supports a block
range, whereas it appears that FLUSH_CACHE_EXT always flushes the entire
cache (maybe 32MB or 64MB on a SATA drive)

Does ext4 always flush all of the cache contents?  Or if the system is
SCSI, does it only selectively flush the blocks that must be flushed to
maintain coherency?


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

end of thread, other threads:[~2012-05-14 10:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-07 10:35 ext4 barrier on SCSI vs SATA? Daniel Pocock
2012-05-09 19:50 ` Jan Kara
2012-05-11  5:08   ` Asdo
2012-05-14  9:02     ` Jan Kara
2012-05-14 10:33       ` Asdo
2012-05-14 10:51         ` Jan Kara

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