write barrier patches for 2.4.21
Hi!
Where can I get Jens Axboe's + Chris Mason's (reiserfs) ide write barrier patches for kernel 2.4.21 ?
I'd like to test a 3ware based raid setup (8xide) with write cache enabled.
Thanks in advance,
Gergely
Hello!
Quoted 4 lines · Gergely Tamas
Where can I get Jens Axboe's + Chris Mason's (reiserfs) ide write barrier patches for kernel 2.4.21 ?
I'd like to test a 3ware based raid setup (8xide) with write cache enabled.
I think that the patch does not have 3ware support. Only conventional IDE controllers are supported by the patch.
Bye,
Oleg
Hi!
Quoted 7 lines
Quoted 4 lines
Where can I get Jens Axboe's + Chris Mason's (reiserfs) ide write barrier patches for kernel 2.4.21 ?
I'd like to test a 3ware based raid setup (8xide) with write cache enabled.I think that the patch does not have 3ware support. Only conventional IDE controllers are supported by the patch.
Thanks.
So the only way for production servers is still with write cache disabled.
Gergely
Hello!
Quoted 9 lines · Gergely Tamas
Quoted 6 lines
Quoted 4 lines
Where can I get Jens Axboe's + Chris Mason's (reiserfs) ide write barrier patches for kernel 2.4.21 ?
I'd like to test a 3ware based raid setup (8xide) with write cache enabled.I think that the patch does not have 3ware support. Only conventional IDE controllers are supported by the patch.
Thanks.
So the only way for production servers is still with write cache disabled.
Actually if you have some sort of uninterruptible power supply that never fails (and you have correct shutdown scripts to shut the box down when its about to run out), you are safe to use write cache.
Bye,
Oleg
Hi!
Quoted 3 lines
Actually if you have some sort of uninterruptible power supply that never fails (and you have correct shutdown scripts to shut the box down when its about to run out), you are safe to use write cache.
Thank you.
Gergely
anyone working on scsi wb's? there was a long thread on l-k about wb's, but i wasn't aware what came of it.
Signature · 2 lines
Tom Vier <[email protected]> DSA Key ID 0xE6CB97DA
Hello!
Quoted 2 lines · Tom Vier
anyone working on scsi wb's? there was a long thread on l-k about wb's, but i wasn't aware what came of it.
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI does not need the WB stuff at all as it does the correct thing anyway.
But since the the barrier flags are visible in io requests, actual device drivers are free to do something when met with barrier requests or to ignore it. The only concern is probably raid cards that show bunch of IDE drives as a SCSI device.
Bye,
Oleg
Quoted 2 lines · Oleg Drokin
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI does not need the WB stuff at all as it does the correct thing anyway.
i found this, but no real details. do you have a better link? or could you tell me why scsi drives don't need wb's? afaik, they don't have nvram cache. so, the danger is still there, even if small (unless i'm wrong).
http://lwn.net/Articles/40850/
Quoted 3 lines
But since the the barrier flags are visible in io requests, actual device drivers are free to do something when met with barrier requests or to ignore it. The only concern is probably raid cards that show bunch of IDE drives as a SCSI device.
anyone who has more info, please post. 8) i'm very interested. too bad there aren't video streams of lks, like there were in the past.
Signature · 2 lines
Tom Vier <[email protected]> DSA Key ID 0xE6CB97DA
Quoted 10 lines · Tom Vier
Quoted 2 lines · Oleg Drokin
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI does not need the WB stuff at all as it does the correct thing anyway.
i found this, but no real details. do you have a better link? or could you tell me why scsi drives don't need wb's? afaik, they don't have nvram cache. so, the danger is still there, even if small (unless i'm wrong).
scsi drives don't really need them because most scsi drives don't have write back caching on by default, and most actually listen when you turn the cache off. The scsi tag queuing makes good performance possible even without writeback caching.
-chris
Quoted 4 lines · Chris Mason
scsi drives don't really need them because most scsi drives don't have write back caching on by default, and most actually listen when you turn the cache off. The scsi tag queuing makes good performance possible even without writeback caching.
So, in essence, TCQ is exposing what is happening in the cache, and allowing control/showing state compared to IDE's non-TCQ write cache. Do I have that right?
Quoted 9 lines · Mike Fedyk
Quoted 4 lines · Chris Mason
scsi drives don't really need them because most scsi drives don't have write back caching on by default, and most actually listen when you turn the cache off. The scsi tag queuing makes good performance possible even without writeback caching.
So, in essence, TCQ is exposing what is happening in the cache, and allowing control/showing state compared to IDE's non-TCQ write cache. Do I have that right?
i'm not sure what you mean. chris is just saying tcq makes performance w/o write cache better. i WOULD like to see wb's used w/ scsi. it would be nice to be able to safely enable write cache on my drives.
Signature · 2 lines
Tom Vier <[email protected]> DSA Key ID 0xE6CB97DA
Quoted 7 lines · Tom Vier
Quoted 6 lines · Mike Fedyk
Quoted 4 lines · Chris Mason
scsi drives don't really need them because most scsi drives don't have write back caching on by default, and most actually listen when you turn the cache off. The scsi tag queuing makes good performance possible even without writeback caching.
Quoted 7 lines
Quoted 3 lines
So, in essence, TCQ is exposing what is happening in the cache, and allowing control/showing state compared to IDE's non-TCQ write cache. Do I have that right?
i'm not sure what you mean. chris is just saying tcq makes performance w/o write cache better. i WOULD like to see wb's used w/ scsi. it would be nice to be able to safely enable write cache on my drives.
I'm just trying to clairify that it looks like TCQ shows exactly what it happening in the drive's cache, and that's why with tcq the wb's aren't explicitly needed.
With ide without tcq and with write caching, it accepts the write request and says it's complete when it's actually still in the disks cache, not on the platters yet.
Contrast that to TCQ (IDE or SCSI), where the write request is sent to the drive, and once it hits the platter, the tcq command completes and notifies the host OS (Linux in this case) that it's done. And SCSI with no TCQ is like IDE with no write cache.
Do I have that right?
Quoted 13 lines · Mike Fedyk
Quoted 4 lines
i'm not sure what you mean. chris is just saying tcq makes performance w/o write cache better. i WOULD like to see wb's used w/ scsi. it would be nice to be able to safely enable write cache on my drives.
I'm just trying to clairify that it looks like TCQ shows exactly what it happening in the drive's cache, and that's why with tcq the wb's aren't explicitly needed.
With ide without tcq and with write caching, it accepts the write request and says it's complete when it's actually still in the disks cache, not on the platters yet.
Quoted 6 lines
Contrast that to TCQ (IDE or SCSI), where the write request is sent to the drive, and once it hits the platter, the tcq command completes and notifies the host OS (Linux in this case) that it's done. And SCSI with no TCQ is like IDE with no write cache.
Do I have that right?
Pretty much. If your tag depth is set right, you get the benefits of writeback caching without the risk. But your workload has to be right.
Picture one process doing synchronous io writes. He's only going to generate one tag and then wait on it. With writeback cache, the drive will return immediately, but with just tcq you'll still have to wait.
For the one writer workload with the barrier patches, the writeback cache disk will be just as slow as the tcq disk. This is usually what you want, since if you're taking the time to do synchronous IO it's because you want to know the data is really on disk (or on battery backed cache somewhere).
-chris
Quoted 9 lines · Chris Mason
Quoted 8 lines · Tom Vier
Quoted 2 lines · Oleg Drokin
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI does not need the WB stuff at all as it does the correct thing anyway.
i found this, but no real details. do you have a better link? or could you tell me why scsi drives don't need wb's? afaik, they don't have nvram cache. so, the danger is still there, even if small (unless i'm wrong).
Quoted 5 lines
Quoted 2 lines
scsi drives don't really need them because most scsi drives don't have write back caching on by default,
They don't? That's not what I've seen on some of the recent drives I bought. The OEM manuals should have details.
Signature · 3 lines
Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95
Quoted 6 lines · Oleg Drokin
Hello!
On Tue, Aug 26, 2003 at 05:46:24PM -0400, Tom Vier wrote:
Quoted 8 lines
Quoted 4 lines
anyone working on scsi wb's? there was a long thread on l-k about wb's, but i wasn't aware what came of it.
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI does not need the WB stuff at all as it does the correct thing anyway.
define "correct thing".
Quoted 10 lines
But since the the barrier flags are visible in io requests, actual device drivers are free to do something when met with barrier requests or to ignore it. The only concern is probably raid cards that show bunch of IDE drives as a SCSI device.
Bye,
Oleg
Signature · 1 line
Hans
Hello!
Quoted 4 lines · Hans Reiser
Quoted 3 lines
There was a discussion about that on Kernel Summit 2003 and general opinion was that SCSI
does not need the WB stuff at all as it does the correct thing anyway.define "correct thing".
As I understood it, they do not do reordering or do it in a way that does not make this reordering visible after crash.
Bye,
Oleg