All of lore.kernel.org
 help / color / mirror / Atom feed
* reiserfs and IDE write cache
@ 2006-08-18  7:22 Francisco Javier Cabello
  2006-08-18 14:20   ` Toby Thain
  2006-08-18 15:45 ` David Masover
  0 siblings, 2 replies; 3+ messages in thread
From: Francisco Javier Cabello @ 2006-08-18  7:22 UTC (permalink / raw)
  To: reiserfs-list

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Hello,
I have been 'googling' and I have found a lot of people warning about the 
problems with IDE write cache and journaling filesystems. 
Should I disable write cache in my systems using reiserfs3+2.4.25?

I have tried to disable write cache with hdparm (hdparm -W0 /dev/hdc) but it 
is not working  ( you can see write cache is enabled with hdparm 
-i /dev/hdc).
Is there other way to disable write cache?

Regards,

Paco

-- 
One of my most productive days was throwing away 1000 lines of code (Ken 
Thompson)
-----------------
PGP fingerprint: AF69 62B4 97EB F5BB 2C60  B802 568A E122 BBBE 5820
PGP Key available at http://pgp.mit.edu
-----------------


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: reiserfs and IDE write cache
@ 2006-08-18 14:20   ` Toby Thain
  0 siblings, 0 replies; 3+ messages in thread
From: Toby Thain @ 2006-08-18 14:20 UTC (permalink / raw)
  To: Francisco Javier Cabello; +Cc: reiserfs-list


On 18-Aug-06, at 3:22 AM, Francisco Javier Cabello wrote:

> Hello,
> I have been 'googling' and I have found a lot of people warning  
> about the
> problems with IDE write cache and journaling filesystems.
> Should I disable write cache in my systems using reiserfs3+2.4.25?
>
> I have tried to disable write cache with hdparm (hdparm -W0 /dev/ 
> hdc) but it
> is not working  ( you can see write cache is enabled with hdparm
> -i /dev/hdc).
> Is there other way to disable write cache?


Get a UPS. :)

Here are some links I collected on this subject a few months ago.


    * _Due to loose interpretations and vendor uniqueness in the ATA  
Standard, there is no defined way that a driver can be assured that  
the disk's cache has been flushed._ (http://developer.apple.com/ 
technotes/tn/tn1040.html)

    * _if write back cache is turned on, it is not difficult to  
create metadata inconsistency or corruption at the file system upon  
power failure._ (http://sr5tech.com/write_back_cache_experiments.htm)

    * Apple forum [[http://lists.apple.com/archives/darwin-dev/2005/ 
Feb/msg00072.html post]] discussing the issues and OS X's F_FULLFSYNC  
feature, which tries hard to flush drive caches.

    * Linux kernel mailing list: _How long can the unwritten data  
linger in the drive cache if the drive is otherwise idle?_ http:// 
lkml.org/lkml/2003/11/2/73

    * Interesting blog [[http://peter-zaitsev.livejournal.com/ 
12639.html?mode=reply post]] on the issue by a !MySQL developer.  
_Transaction will be durable and database intact on the crash only if  
database will perform synchronous IO as synchronous - reporting it is  
done when data is physically on the disk._

    * Detailed [[http://www.opensolaris.org/os/community/arc/caselog/ 
2004/652/ post]] about Open Solaris' approach to the issue (see  
'spec' link)


>
> Regards,
>
> Paco
>
> -- 
> One of my most productive days was throwing away 1000 lines of code  
> (Ken
> Thompson)
> -----------------
> PGP fingerprint: AF69 62B4 97EB F5BB 2C60  B802 568A E122 BBBE 5820
> PGP Key available at http://pgp.mit.edu
> -----------------
>


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

* Re: reiserfs and IDE write cache
  2006-08-18  7:22 reiserfs and IDE write cache Francisco Javier Cabello
  2006-08-18 14:20   ` Toby Thain
@ 2006-08-18 15:45 ` David Masover
  1 sibling, 0 replies; 3+ messages in thread
From: David Masover @ 2006-08-18 15:45 UTC (permalink / raw)
  To: Francisco Javier Cabello; +Cc: reiserfs-list

Francisco Javier Cabello wrote:
> Hello,
> I have been 'googling' and I have found a lot of people warning about the 
> problems with IDE write cache and journaling filesystems. 

These problems exist with ANY filesystem, journaling or not.  They also 
exist with no filesystem at all.

> Should I disable write cache in my systems using reiserfs3+2.4.25?

I'm not sure if it will help.  At least with IDE drives, I often cannot 
get the write cache disabled -- it's as if it ignores hdparm.

So, like Toby says, get a UPS.  Or get a laptop instead, if that makes 
any sense.

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

end of thread, other threads:[~2006-08-18 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18  7:22 reiserfs and IDE write cache Francisco Javier Cabello
2006-08-18 14:20 ` Toby Thain
2006-08-18 14:20   ` Toby Thain
2006-08-18 15:45 ` David Masover

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.