You are not logged in.
Pages: 1
How can I turn off write caching? Is it possible?
Last edited by SealsRock12 (2018-04-24 14:37:54)
-- SealsRock12
Offline
At what level do you want to disable write caching? The device level, the ioscheduler level, the filesystem level, the application level?
Offline
Is it dangerous to turn off write caching?
-- SealsRock12
Offline
You did not answer my first question. What are you trying to achieve by disabling write caching? It may be increase the risk of data corruption in the event of a hardlockup / powerloss
depending on the whole configuration of the system and what other methods are in use to preserve write ordering and general data consistency.
Offline
I heard that turning off write caching will write data directly to the drive. That is why I want it.
-- SealsRock12
Offline
Have a look at the mount option sync, the man page for hdparm for device write caching. At the application level look for options for O_DIRECT , fsync, fdatasync.
This may lead to your system becoming less much less responsive as you are attempting to force all asynchronous data writes to become synchronous.
Offline
Ok, I won't turn off write caching. Thank you.
-- SealsRock12
Offline
Pages: 1