Skip to contentSkip to conversation

io performance...

DISCUSSION Robert Hancock 4 participants 6 messages Jan 19, 2006 – Jan 20, 2006 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 10 lines · Jeff V. Merkey
Quoted 6 lines · Max Waterman

One further question. I get these messages 'in' dmesg :

sda: asking for cache data failed
sda: assuming drive cache: write through

How can I force it to be 'write back'?

Forcing write back is a very bad idea unless you have a battery backed up RAID controller.

This is not what these messages are referring to. Those write through vs. write back messages are referring to detecting the drive write cache mode, not setting it. Whether or not the write cache is enabled is used to determine whether the sd driver uses SYNCHRONIZE CACHE commands to flush the write cache on the device. If the drive says its write cache is off or doesn't support determining the cache status, the kernel will not issue SYNCHRONIZE CACHE commands. This may be a bad thing if the device is really using write caching..

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/
#4 lore raw
Quoted 5 lines · Robert Hancock
Quoted 4 lines · Jeff V. Merkey
Quoted 2 lines · Max Waterman

One further question. I get these messages 'in' dmesg :

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

sda: asking for cache data failed
sda: assuming drive cache: write through

How can I force it to be 'write back'?

Forcing write back is a very bad idea unless you have a battery backed up RAID controller.

This is not what these messages are referring to. Those write through vs. write back messages are referring to detecting the drive write cache mode, not setting it. Whether or not the write cache is enabled is used to determine whether the sd driver uses SYNCHRONIZE CACHE commands to flush the write cache on the device. If the drive says its write cache is off or doesn't support determining the cache status, the kernel will not issue SYNCHRONIZE CACHE commands. This may be a bad thing if the device is really using write caching..

So, if I have my raid controller set to use write-back, it *is* caching the writes, and so this *is* a bad thing, right?

If so, how to fix?

Max.

#5 lore raw
Quoted 2 lines · Max Waterman

So, if I have my raid controller set to use write-back, it *is* caching the writes, and so this *is* a bad thing, right?

Depends on your raid controller. If it is battery backed it may well all be fine.

Alan

#6 lore raw
Quoted 5 lines · Alan Cox
Quoted 1 line · Max Waterman

So, if I have my raid controller set to use write-back, it *is* caching the writes, and so this *is* a bad thing, right?

Depends on your raid controller. If it is battery backed it may well all be fine.

Eh? Why?

I'm not sure what difference it makes if the controller is battery backed or not; if the drives are gone, then the card has nothing to write to...will it make the writes when the power comes back on?

Max.

#7 lore raw
Quoted 5 lines · Max Waterman
Quoted 4 lines · Alan Cox
Quoted 2 lines · Max Waterman

So, if I have my raid controller set to use write-back, it *is* caching the writes, and so this *is* a bad thing, right?

Quoted 8 lines
Quoted 2 lines

Depends on your raid controller. If it is battery backed it may well all be fine.

Eh? Why?

I'm not sure what difference it makes if the controller is battery backed or not; if the drives are gone, then the card has nothing to write to...will it make the writes when the power comes back on?

some do

Quoted 8 lines

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

#8 lore raw
In reply to Max Waterman
Quoted 3 lines · Max Waterman

I'm not sure what difference it makes if the controller is battery backed or not; if the drives are gone, then the card has nothing to write to...will it make the writes when the power comes back on?

Yes it will, hopefully having checked first before writing. The higher end ones you can even pull the battery backed ram module out, change the raid card and it will do it.

Alan