User: Password:
|
|
Subscribe / Log in / New account

'hdparm -W 0'

'hdparm -W 0'

Posted May 22, 2008 19:10 UTC (Thu) by tarvin (subscriber, #4412)
In reply to: Battery backed caches / 'hdparm -W 0' by i3839
Parent article: Barriers and journaling filesystems

I'm glad to hear that turning off the write cache helps. I've done that for years on hosts
which house data which are important to me, if the hosts don't have battery-backed cache.

No doubt, I'm probably loosing performance, but I've never found it unacceptable.


(Log in to post comments)

'hdparm -W 0'

Posted May 24, 2008 20:13 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

To be precise: ordering of write commands, ordering of hardening to disk, and write caching (in the drive) are all separate things. With write caching turned off, the drive can still reorder the write commands and write the data to the platters in random order. But Linux will always know when the data has hit the platter and won't initiate the commit record until the journal data it covers is on the platter.

Linux can have multiple writes in progress at the disk drive (sent to the drive but the drive hasn't responded) at the same time, independent of write caching.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds