lkml.org 
[lkml]   [2003]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: libata in 2.4.24?
From
Date
Jeff Garzik <jgarzik@pobox.com> writes:

> Some IDE _and/or_ SCSI drives do not cache writes. For these drives,
> the _absence_ of an OS flush-cache command still means your data gets
> to the platter.

In theory you could have an IDE drive that didn't cache writes, or a SCSI
drive that did. Except in practice it seems all IDE drives cache writes by
default and perform like dogs if they don't. And in practice all SCSI drives
appear to not cache writes and perform fine.

I guess my question is whether a new round of ATA drives will be coming out
where you can turn off write caching and still get decent performance because
the interface is more SCSI-like with deep enough queues. If so they'll
probably disable write caching altogether, but if they don't the user could
always do it.

And if such a new round of ATA drives will be coming out, exactly what should
I be watching for. SATA alone isn't enough, what featureset will this feature
come along with?

> The core problem is not issuing a flush-cache command, it sounds like.
> The drive technology (wcache, or no) is largely irrelevant.

Well issuing a flush-cache is a much bigger performance hit than merely not
caching the writes in the first place. There could be lots of other writes to
other files in the system. In fact it's likely there are lots of other writes
to other files in postgres itself, most of the time it's only fsyncing the
transaction log.

--
greg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.059 / U:7.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site