Am Samstag 17 März 2007 schrieb Jason White:
> This might be slightly off-topic, but in choosing a SATA drive for a
> desktop machine, what features/standard-complaince should one look for
> in order to ensure that write barriers work? I know this involves
> flushing the drive cache, but is this support mandatory in any of the
> applicable standards?
I have no exact idea. I just now that dmesg usually tells you whether
cache flushes are supported.
But shouldn't modern SATA drives support NCQ anyway? Since NCQ doesn't
make any sense without the ability to flush the cache, I *think* any SATA
drive with NCQ support should do. NCQ support would allow the block layer
to offload the write barrier request ordering at least partly to the
"ii. For devices which have queue depth greater than 1 but don't
support ordered tags, block layer ensures that the requests preceding
a barrier request finishes before issuing the barrier request. Also,
it defers requests following the barrier until the barrier request is
finished. Older SCSI controllers/drives and SATA drives fall in this
(Documentation/block/barrier.txt of Linux Kernel 184.108.40.206)
This also indicates that SATA drives should support NCQ.
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7