raid 10f2 vs 1 on 2 drives
I understand that raid 10 f2 is slower on writes due to the location of the 2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?
Quoted 3 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the 2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?
No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks (where people often worry about "wear", though location is irrelevant and wear is also irrelevant for most uses of all but the most cheapo disks).
Quoted 8 lines · David Brown
Quoted 3 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the 2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?
No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the 2nd copy of the data.
Quoted 3 lines
(where people often worry about "wear", though location is irrelevant and wear is also irrelevant for most uses of all but the most cheapo disks).
Quoted 10 lines · William Thompson
Quoted 8 lines · David Brown
Quoted 3 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the 2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?
No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Quoted 8 lines
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the 2nd copy of the data.
There _is_ no extra head motion. The location of consecutive blocks is different on each drive, but as I read the mapping function the distance between blocks on the same drive will be about the same, so amount of head motion (both number and distance) is the same on each drive, but the location of that motion is not the same.
One drive may be seeking at the outer edge of the platter while another seeks near the spindle, but there's the same amount of seeking on each.
Signature · 3 lines
Bill Davidsen <[email protected]> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot
in my tests with a mysql and similar database scenarios where write / read are near 50% / 50% (many updates/inserts and many selects) the best raid is 1
where scenario is 10%write / 90% read
raid 10far is better (if not degraded or out of sync)
just two scenarios to help 'what's better' question
2012/5/25 Bill Davidsen <[email protected]>:
Quoted 45 lines
Quoted 18 lines · William Thompson
Quoted 9 lines · David Brown
Quoted 5 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the
2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?Quoted 3 lines
No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 8 lines
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the
2nd copy of the data.There _is_ no extra head motion. The location of consecutive blocks is different on each drive, but as I read the mapping function the distance between blocks on the same drive will be about the same, so amount of head motion (both number and distance) is the same on each drive, but the location of that motion is not the same.
One drive may be seeking at the outer edge of the platter while another seeks near the spindle, but there's the same amount of seeking on each.
--
Bill Davidsen <[email protected]>
"We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
Roberto Spadim Spadim Technology / SPAEmpresarial -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 21 lines · Bill Davidsen
Quoted 11 lines · William Thompson
Quoted 9 lines · David Brown
Quoted 4 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the
2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Quoted 9 lines
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the
2nd copy of the data.
Quoted 10 lines
There _is_ no extra head motion. The location of consecutive blocks is different on each drive, but as I read the mapping function the distance between blocks on the same drive will be about the same, so amount of head motion (both number and distance) is the same on each drive, but the location of that motion is not the same.
One drive may be seeking at the outer edge of the platter while another seeks near the spindle, but there's the same amount of seeking on each.
That's not the case for "far" layout. When you write a block, it there will be two copies - one in the first half of one disk (say, disk 1), and the other in the second half of the other disk (disk 2). The next sequential block will be written to the first half of disk 2, and the second half of disk 1 - exactly half a disk away from the first block. And no matter where the disk head ends up after the write, raid10,far will always read from the outer half of the disk since it is significantly faster. (For SSDs it doesn't matter, but then neither does head positioning.)
Write merging, combining, re-ordering, etc., will minimise this effect, as will write caches. But there is no doubt that raid10,far sacrifices write speed a little in order to get the fastest possible read speeds. For most use-cases, with more reading than writing, this results in the best overall speed.
Quoted 28 lines · David Brown
Quoted 27 lines · Bill Davidsen
Quoted 11 lines · William Thompson
Quoted 9 lines · David Brown
Quoted 4 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the
2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Quoted 9 lines
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the
2nd copy of the data.There _is_ no extra head motion. The location of consecutive blocks is different on each drive, but as I read the mapping function the distance between blocks on the same drive will be about the same, so amount of head motion (both number and distance) is the same on each drive, but the location of that motion is not the same.
Quoted 7 lines
Quoted 4 lines
One drive may be seeking at the outer edge of the platter while another seeks near the spindle, but there's the same amount of seeking on each.
That's not the case for "far" layout. When you write a block, it there will be two copies - one in the first half of one disk (say, disk 1), and the other in the second half of the other disk (disk 2). The next sequential block will be written to the first half of disk 2, and the second half of disk 1 - exactly half a disk away from the first block. And no matter where the disk head ends up after the write, raid10,far will always read from the outer half of the disk since it is significantly faster. (For SSDs it doesn't matter, but then neither does head positioning.)
He was talking about head motion on write, or I was at any write. Although the writes go to different parts of the platter, they are platters on different drives. So for any large sequential write, the head motion is the same (in distance), but occurs at the outside of one platter and the inside of the other. We're saying the same thing. A the read will not always happen at the outer edge unless both drives are idle, otherwise if one is busy the other will be used. To do otherwise would limit the performance when many reads to adjacent sectors take place.
Quoted 2 lines
Write merging, combining, re-ordering, etc., will minimise this effect, as will write caches. But there is no doubt that raid10,far sacrifices write speed a little in order to get the fastest possible read speeds. For most use-cases, with more reading than writing, this results in the best overall speed.
Signature · 4 lines
Bill Davidsen<[email protected]> We are not out of the woods yet, but we know the direction and have taken the first step. The steps are many, but finite in number, and if we persevere we will reach our destination. -me, 2010
Quoted 44 lines · Bill Davidsen
Quoted 33 lines · David Brown
Quoted 21 lines · Bill Davidsen
Quoted 11 lines · William Thompson
Quoted 9 lines · David Brown
Quoted 4 lines · William Thompson
I understand that raid 10 f2 is slower on writes due to the location of the
2nd copy. My question is, if lots of writes are performed, could this layout wearout the drives quicker than raid 1?No, wear is not going to be significantly different.
You didn't say whether you are talking about hard disks (where
Quoted 9 lines
Sorry about that (Chief). Yes, I was refering to hard drives.
Quoted 2 lines
location makes a difference, but "wear" on the drive motor is insignificant to the disk's expected lifetime), or flash disks
I was thinking about how much more head movement there would be to write the
2nd copy of the data.Quoted 10 lines
There _is_ no extra head motion. The location of consecutive blocks is different on each drive, but as I read the mapping function the distance between blocks on the same drive will be about the same, so amount of head motion (both number and distance) is the same on each drive, but the location of that motion is not the same.
One drive may be seeking at the outer edge of the platter while another seeks near the spindle, but there's the same amount of seeking on each.
Quoted 10 lines
That's not the case for "far" layout. When you write a block, it there will be two copies - one in the first half of one disk (say, disk 1), and the other in the second half of the other disk (disk 2). The next sequential block will be written to the first half of disk 2, and the second half of disk 1 - exactly half a disk away from the first block. And no matter where the disk head ends up after the write, raid10,far will always read from the outer half of the disk since it is significantly faster. (For SSDs it doesn't matter, but then neither does head positioning.)
Quoted 14 lines
He was talking about head motion on write, or I was at any write. Although the writes go to different parts of the platter, they are platters on different drives. So for any large sequential write, the head motion is the same (in distance), but occurs at the outside of one platter and the inside of the other. We're saying the same thing. A the read will not always happen at the outer edge unless both drives are idle, otherwise if one is busy the other will be used. To do otherwise would limit the performance when many reads to adjacent sectors take place.
Quoted 5 lines
Write merging, combining, re-ordering, etc., will minimise this effect, as will write caches. But there is no doubt that raid10,far sacrifices write speed a little in order to get the fastest possible read speeds. For most use-cases, with more reading than writing, this results in the best overall speed.
Well, the far layout will allways read from the outer sectors, to avoid some performance problems with disks with slightly different characteristics. The only case where the far layout will not read from the outer sectors, is when the array is degraded.
best regards
keld