* RAID question
@ 2001-11-07 14:55 Roy Sigurd Karlsbakk
0 siblings, 0 replies; 5+ messages in thread
From: Roy Sigurd Karlsbakk @ 2001-11-07 14:55 UTC (permalink / raw)
To: linux-kernel
hi
I booted up 2.4.13-ac5 today, and got this message
raid5: measuring checksumming speed
8regs : 1480.800 MB/sec
32regs : 711.200 MB/sec
pIII_sse : 1570.400 MB/sec
pII_mmx : 1787.200 MB/sec
p5_mmx : 1904.000 MB/sec
raid5: using function: pIII_sse (1570.400 MB/sec)
Why is raid5 using function pIII_sse when p5_MMX is way faster?
roy
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
Computers are like air conditioners.
They stop working when you open Windows.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID question
2001-11-07 15:22 Bene, Martin
@ 2001-11-07 22:09 ` Lionel Bouton
0 siblings, 0 replies; 5+ messages in thread
From: Lionel Bouton @ 2001-11-07 22:09 UTC (permalink / raw)
To: 'Roy Sigurd Karlsbakk'; +Cc: 'linux-kernel@vger.kernel.org'
Bene, Martin wrote:
>Hi Roy,
>
>>raid5: measuring checksumming speed
>> 8regs : 1480.800 MB/sec
>> 32regs : 711.200 MB/sec
>> pIII_sse : 1570.400 MB/sec
>> pII_mmx : 1787.200 MB/sec
>> p5_mmx : 1904.000 MB/sec
>>raid5: using function: pIII_sse (1570.400 MB/sec)
>>
>>Why is raid5 using function pIII_sse when p5_MMX is way faster?
>>
>
>The sse version is prefered over the others and gets used regardless of
>speed if it's available:
>
>/* We force the use of the SSE xor block because it can write around L2.
> We may also be able to load into the L1 only depending on how the cpu
> deals with a load to a line that is being prefetched. */
>
As your cpu(s) work on the data before sending it back to the devices in
the case of RAID5 and as in the general case memory writes invalidate an
amount of L2 cache corresponding to the amount of data to write, you'll
push out of L2 data of your running applications, hence slowing them down.
Imagine you have a block you want to write to/read from your 4k chunk
size, 3 drive RAID 5 array.
For an atomic write, you'll read 8k from memory and write 12k back. It's
20k of L2 cache involved. The 8k read may already be in cache (you write
to disk what you worked on earlier) but the 12k are generated so they
surely won't.
On x86 12-20k of L2 cache is a substansial amount of cache. And it's the
lowest atomic read/write operation you can imagine, with 64kb chunck
size and 5 drives it would be 64 x 5 = 320 to 64 x 9 = 576k -> whole L2
invalidated on most modern x86 cpu.
What does cache give you ? Fast access to recently used memory and
write-back capability.
Cache use in this case is *bad* because you won't reuse the cached data.
Write-back won't give much (you stream whole chunks down the memory bus
anyway).
You *may* slow down disk writes (if you have something near 2GB/s of
disk bandwidth on your RAID...) but you'll *surely* slow down your
applications a lot by taking away their data from your L2 cache(s).
So the raid code doesn't use the optimal disk throughput method, it uses
the optimal system performance method...
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: RAID question
@ 2001-11-07 15:22 Bene, Martin
2001-11-07 22:09 ` Lionel Bouton
0 siblings, 1 reply; 5+ messages in thread
From: Bene, Martin @ 2001-11-07 15:22 UTC (permalink / raw)
To: 'Roy Sigurd Karlsbakk', 'linux-kernel@vger.kernel.org'
Hi Roy,
> raid5: measuring checksumming speed
> 8regs : 1480.800 MB/sec
> 32regs : 711.200 MB/sec
> pIII_sse : 1570.400 MB/sec
> pII_mmx : 1787.200 MB/sec
> p5_mmx : 1904.000 MB/sec
> raid5: using function: pIII_sse (1570.400 MB/sec)
>
> Why is raid5 using function pIII_sse when p5_MMX is way faster?
The sse version is prefered over the others and gets used regardless of
speed if it's available:
/* We force the use of the SSE xor block because it can write around L2.
We may also be able to load into the L1 only depending on how the cpu
deals with a load to a line that is being prefetched. */
Bye, Martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RAID question
2001-05-08 2:48 ` RAID question Peter Waltenberg
@ 2001-05-08 15:07 ` Jakob Østergaard
0 siblings, 0 replies; 5+ messages in thread
From: Jakob Østergaard @ 2001-05-08 15:07 UTC (permalink / raw)
To: Peter Waltenberg; +Cc: linux-kernel
On Tue, May 08, 2001 at 12:48:25PM +1000, Peter Waltenberg wrote:
> We have a RAID 5 system thats had 2 of 6 disks in the RAID go into thermal
> shutdown. (Air-con failure).
>
> The disks are functional, but the RAID won't restart because the superblock
> timestamps on those two disks are now out of step with the rest of the array and
> there aren't enough "good" disks to reconstruct the array.
>
> We know there was very little activity when this happened.
>
> Does anyone out there know of a way to hack the superblocks on the "bad" disks
> to force them to appear to be O.K. so that the RAID will restart.
As documented in the HOWTO (http://unthought.net/Software-RAID.HOWTO), you should
re-run mkraid after making dead sure that your raidtab still corrosponds to the
RAID on your disks (it usually does unless someone screwed it up).
Run fsck on the RAID after mkraid.
--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
^ permalink raw reply [flat|nested] 5+ messages in thread
* RAID question
2001-05-03 21:38 OT: Here's the article text -- Microsoft Is Set to Be Top Foe of Free Code Miles Lane
@ 2001-05-08 2:48 ` Peter Waltenberg
2001-05-08 15:07 ` Jakob Østergaard
0 siblings, 1 reply; 5+ messages in thread
From: Peter Waltenberg @ 2001-05-08 2:48 UTC (permalink / raw)
To: linux-kernel
We have a RAID 5 system thats had 2 of 6 disks in the RAID go into thermal
shutdown. (Air-con failure).
The disks are functional, but the RAID won't restart because the superblock
timestamps on those two disks are now out of step with the rest of the array and
there aren't enough "good" disks to reconstruct the array.
We know there was very little activity when this happened.
Does anyone out there know of a way to hack the superblocks on the "bad" disks
to force them to appear to be O.K. so that the RAID will restart.
Thanks
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-11-07 22:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 14:55 RAID question Roy Sigurd Karlsbakk
-- strict thread matches above, loose matches on Subject: below --
2001-11-07 15:22 Bene, Martin
2001-11-07 22:09 ` Lionel Bouton
2001-05-03 21:38 OT: Here's the article text -- Microsoft Is Set to Be Top Foe of Free Code Miles Lane
2001-05-08 2:48 ` RAID question Peter Waltenberg
2001-05-08 15:07 ` Jakob Østergaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).