A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Storage (alternative)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

A question on write caching



 
 
Thread Tools Display Modes
  #1  
Old May 10th 04, 03:42 PM
Robert Mischke
external usenet poster
 
Posts: n/a
Default A question on write caching

I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache? I'm thinking along the lines that if more data is cached, more
time is needed to write it away, so the "window of opportunity" for
data loss is longer. I also seem to remember a windows bug where an
ATX system would power down too fast for disk writes to complete.

So my questions a

- Is the risk of data loss really higher with a larger cache?

- Is write caching enabled by default on today's drives? (I'm planning
to get either a WD1200BB (2mb) or WD1200JB (8mb).)

- If there's write caching, is it set to write-through or write-back
by default?


Thanks,
Robert

  #2  
Old May 10th 04, 04:52 PM
CWatters
external usenet poster
 
Posts: n/a
Default


"Robert Mischke" wrote in message
...
I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache?


The data doesn't stay in the cache for long. Anyway why worry about 2 vs 8
MByte when you have 512 MByte of main memory? Perhaps you should take some
of that out and send it to me :-)


  #3  
Old May 11th 04, 05:38 AM
Ron Reaugh
external usenet poster
 
Posts: n/a
Default


"Robert Mischke" wrote in message
...
I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache?


Yes.

I'm thinking along the lines that if more data is cached, more
time is needed to write it away, so the "window of opportunity" for
data loss is longer. I also seem to remember a windows bug where an
ATX system would power down too fast for disk writes to complete.


Fixed.

So my questions a

- Is the risk of data loss really higher with a larger cache?


Probably but that doesn't specify the absolute value of the overall risk
which is generally low in many average situations.

- Is write caching enabled by default on today's drives?


Yes.

(I'm planning
to get either a WD1200BB (2mb) or WD1200JB (8mb).)

- If there's write caching, is it set to write-through or write-back
by default?


Write back. On board writethrough is what happens when onboard caching is
off.


  #4  
Old May 11th 04, 12:49 PM
CWatters
external usenet poster
 
Posts: n/a
Default


"Ron Reaugh" wrote in message
...

If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache?


Yes.


No. I don't believe it makes any difference. The only "safe" place for data
is on the drive platter itself and a larger cache DOES NOT slow down the
overall process of writing data to the platter - that's fixed by the bit
rate/rpm etc.





  #5  
Old May 15th 04, 08:17 AM
Mr. Grinch
external usenet poster
 
Posts: n/a
Default

(Robert Mischke) wrote in news:409f92d8.24865563
@news.individual.de:

I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache? I'm thinking along the lines that if more data is cached, more
time is needed to write it away, so the "window of opportunity" for
data loss is longer. I also seem to remember a windows bug where an
ATX system would power down too fast for disk writes to complete.

So my questions a

- Is the risk of data loss really higher with a larger cache?

- Is write caching enabled by default on today's drives? (I'm planning
to get either a WD1200BB (2mb) or WD1200JB (8mb).)


Usually it is enabled, or has been on every drive I've bothered to check.
Can't say for your WD drives.


- If there's write caching, is it set to write-through or write-back
by default?


Many drive vendors have tools you can use to view and set the caching info.
That's where I'd look.

I remember Exchange 5.0 used to come with "Exchange Optimizer". On Compaq
Proliant SCSI arrays it would go to each drive and try to turn off the cache.
At least that's what the MS technician for the support call said. Problem
was, on some vendors drives, they ended up changing things other than the
cache setting. I guess MS thought caching was dangerous enough to Exchange
5.0 stores to try and disable it, but I don't think they bother trying to do
that anymore. There are definately other apps out there that recommend
disabling of caches, but in some situations it's just not practical.





  #6  
Old May 15th 04, 05:37 PM
CJT
external usenet poster
 
Posts: n/a
Default

CWatters wrote:

"Robert Mischke" wrote in message
...

I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache?



The data doesn't stay in the cache for long. Anyway why worry about 2 vs 8
MByte when you have 512 MByte of main memory? Perhaps you should take some
of that out and send it to me :-)


I think that misses the point. Losing data in the drive cache
can leave the drive in an inconsistent state. Losing data in
the main memory, even if it's cached disk writes, won't result
in an inconsistent state if you use a logging file system.

--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form .
  #7  
Old May 15th 04, 05:39 PM
CJT
external usenet poster
 
Posts: n/a
Default

Robert Mischke wrote:

I'm planning to add a new 120gb drive to my system, but I'm not sure
if I should take a 2Mb or 8Mb cache version. What bothers me is the
following thought: If current hard drives cache writing operations,
isn't the risk of data loss (by power failure etc.) higher with 8mb of
cache? I'm thinking along the lines that if more data is cached, more
time is needed to write it away, so the "window of opportunity" for
data loss is longer. I also seem to remember a windows bug where an
ATX system would power down too fast for disk writes to complete.

So my questions a

- Is the risk of data loss really higher with a larger cache?

- Is write caching enabled by default on today's drives? (I'm planning
to get either a WD1200BB (2mb) or WD1200JB (8mb).)

- If there's write caching, is it set to write-through or write-back
by default?


Thanks,
Robert

The real problem with some IDE drives is you can't turn the
write cache off (at least I've seen drives where I couldn't --
the software would say it had done so, but when I checked
afterwards the cache was still on).

--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form .
  #8  
Old May 17th 04, 04:25 PM
Robert Mischke
external usenet poster
 
Posts: n/a
Default

Thanks for all the answers!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
couple of Dimension XPS Gen4 question Matt Dell Computers 3 March 4th 05 02:20 AM
Question: Reliability of physical snapshots on SANs Erik H. Storage & Hardrives 3 October 29th 04 04:31 PM
ScanDisk found errors but could not fix all of them Hupjack Storage (alternative) 7 February 10th 04 10:27 AM
Does Promise Ultra 133 IDE controller provide/enable write caching? Frank Jelenko Storage (alternative) 1 December 27th 03 12:18 AM
CD-R write speed question George W. Dell Computers 6 July 13th 03 04:50 PM


All times are GMT +1. The time now is 10:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.