* Raid 5 Read performance
@ 2009-09-10 20:07 Koti
2009-09-10 20:17 ` Majed B.
0 siblings, 1 reply; 13+ messages in thread
From: Koti @ 2009-09-10 20:07 UTC (permalink / raw)
To: linux-raid
Hi All
I am trying measure the RAID 5 Read numbers on linux kernel-2.6.21 and
kernel 2.6.27 the numbers are lower on later kernel (2.6.27). Iam measuring
the numbers using "time dd" command (4GB ). Is any valid reason for this, or
Am missing anything in the process. Can anybody help me in analyze this
problem.
Thanks,
Koti
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Raid 5 Read performance
2009-09-10 20:07 Raid 5 Read performance Koti
@ 2009-09-10 20:17 ` Majed B.
[not found] ` <918883.43112.qm@web94815.mail.in2.yahoo.com>
0 siblings, 1 reply; 13+ messages in thread
From: Majed B. @ 2009-09-10 20:17 UTC (permalink / raw)
To: Koti; +Cc: linux-raid
Someone else has already emailed the mailing list about this. Are you
two running an assignment or something?!
Check the mailing list archive for whatever people have already replied with.
On Thu, Sep 10, 2009 at 11:07 PM, Koti<satha_koti@yahoo.co.in> wrote:
> Hi All
>
> I am trying measure the RAID 5 Read numbers on linux kernel-2.6.21 and
> kernel 2.6.27 the numbers are lower on later kernel (2.6.27). Iam measuring
> the numbers using "time dd" command (4GB ). Is any valid reason for this, or
> Am missing anything in the process. Can anybody help me in analyze this
> problem.
>
> Thanks,
> Koti
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Majed B.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* raid 5 read performance
@ 2006-06-09 15:50 Raz Ben-Jehuda(caro)
2006-06-09 22:59 ` Neil Brown
2006-08-05 17:31 ` Dan Williams
0 siblings, 2 replies; 13+ messages in thread
From: Raz Ben-Jehuda(caro) @ 2006-06-09 15:50 UTC (permalink / raw)
To: Linux RAID Mailing List; +Cc: Neil Brown
Neil hello
Sorry for the delay. too many things to do.
I have implemented all said in :
http://www.spinics.net/lists/raid/msg11838.html
As always I have some questions:
1. mergeable_bvec
I did not understand first i must admit. now i do not see how it
differs from the
one of raid0. so i actually copied it and renamed it.
2. statistics.
i have added md statistics since the code does not reach the
statics in make_request.
it returns from make_request before that.
3. i have added the new retry list called toread_aligned to raid5_conf_t .
hope this is correct.
4. your instructions are to add a failed bio to sh, but it does not
say to handle it directly.
i have tried it and something is missing here. raid5d handle
stripes only if conf->handle_list is not empty. i added handle_stripe
and and release_stripe of my own.
this way i managed to get from the completion routine:
"R5: read error corrected!! " message . ( i have tested by failing
a ram disk ).
5. I am going to test the non common path heavily before submitting
you the patch ( on real disks and use several file systems and
several chunk sizes).
It is quite a big patch so I need to know which kernel do you want me
to use ? i am using poor 2.6.15.
I thank you
--
Raz
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: raid 5 read performance
2006-06-09 15:50 raid 5 read performance Raz Ben-Jehuda(caro)
@ 2006-06-09 22:59 ` Neil Brown
2006-08-05 17:31 ` Dan Williams
1 sibling, 0 replies; 13+ messages in thread
From: Neil Brown @ 2006-06-09 22:59 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: Linux RAID Mailing List
On Friday June 9, raziebe@gmail.com wrote:
> Neil hello
>
> Sorry for the delay. too many things to do.
You aren't alone there!
>
> I have implemented all said in :
> http://www.spinics.net/lists/raid/msg11838.html
>
> As always I have some questions:
>
> 1. mergeable_bvec
> I did not understand first i must admit. now i do not see how it
> differs from the
> one of raid0. so i actually copied it and renamed it.
Sounds fine. For raid5 there is no need to force write requests to be
split up, but that's a minor difference.
>
> 2. statistics.
> i have added md statistics since the code does not reach the
> statics in make_request.
> it returns from make_request before that.
Why not put the code *after* that? Not that it matters a great deal.
I'll comment more when I see the code I expect.
>
> 3. i have added the new retry list called toread_aligned to raid5_conf_t .
> hope this is correct.
>
Sounds good.
> 4. your instructions are to add a failed bio to sh, but it does not
> say to handle it directly.
> i have tried it and something is missing here. raid5d handle
> stripes only if conf->handle_list is not empty. i added handle_stripe
> and and release_stripe of my own.
> this way i managed to get from the completion routine:
> "R5: read error corrected!! " message . ( i have tested by failing
> a ram disk ).
>
Sounds right, but I'd need to see the code to be sure.
>
> 5. I am going to test the non common path heavily before submitting
> you the patch ( on real disks and use several file systems and
> several chunk sizes).
I'd rather see the patch earlier, even if it isn't fully tested.
> It is quite a big patch so I need to know which kernel do you want me
> to use ? i am using poor 2.6.15.
A patch against the latest -mm would be best, but I'm happy to take it
against anything even vaguely recent.
However, it needs to be multiple patches, not just one.
This is a *very* important point. As that original email said:
This should be developed and eventually presented as a sequence of
patches.
There are several distinct steps in this change and they need to be
reviewed separately or it is just too hard.
So I would really like it if you could separate out the changes into
logically distinct patches.
If you can't or won't, then still send the patch, but I'll have to
break it up so it'll probably take longer to process.
Thanks for your efforts,
NeilBrown
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: raid 5 read performance
2006-06-09 15:50 raid 5 read performance Raz Ben-Jehuda(caro)
2006-06-09 22:59 ` Neil Brown
@ 2006-08-05 17:31 ` Dan Williams
[not found] ` <5d96567b0608051456y795d1930la3d469174f221821@mail.gmail.com>
1 sibling, 1 reply; 13+ messages in thread
From: Dan Williams @ 2006-08-05 17:31 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: Linux RAID Mailing List, Neil Brown
> Neil hello
>
> Sorry for the delay. too many things to do.
>
> I have implemented all said in :
> http://www.spinics.net/lists/raid/msg11838.html
>
> As always I have some questions:
>
> 1. mergeable_bvec
> I did not understand first i must admit. now i do not see how it
> differs from the
> one of raid0. so i actually copied it and renamed it.
>
> 2. statistics.
> i have added md statistics since the code does not reach the
> statics in make_request.
> it returns from make_request before that.
>
> 3. i have added the new retry list called toread_aligned to raid5_conf_t .
> hope this is correct.
>
> 4. your instructions are to add a failed bio to sh, but it does not
> say to handle it directly.
> i have tried it and something is missing here. raid5d handle
> stripes only if conf->handle_list is not empty. i added handle_stripe
> and and release_stripe of my own.
> this way i managed to get from the completion routine:
> "R5: read error corrected!! " message . ( i have tested by failing
> a ram disk ).
>
>
> 5. I am going to test the non common path heavily before submitting
> you the patch ( on real disks and use several file systems and
> several chunk sizes).
> It is quite a big patch so I need to know which kernel do you want me
> to use ? i am using poor 2.6.15.
>
> I thank you
> --
> Raz
Hi Raz,
What is the status of this patch? Anything I can help out with, like
testing or forward porting to the latest kernel?
Thanks,
Dan
^ permalink raw reply [flat|nested] 13+ messages in thread
* raid 5 read performance
@ 2006-05-21 9:10 Raz Ben-Jehuda(caro)
2006-05-21 9:17 ` Neil Brown
0 siblings, 1 reply; 13+ messages in thread
From: Raz Ben-Jehuda(caro) @ 2006-05-21 9:10 UTC (permalink / raw)
To: Linux RAID Mailing List; +Cc: Neil Brown
Neil hello
I am measuring read performance of two raid5 with 7 sata disks, chunk size 1MB.
when i set the stripe_cache_size to 4096 i get 240 MB/s. IO'ing from
the two raids ended with 270 MB/s.
i have added a code in make_request which passes the raid5 logic in
the case of read.
it looks like this :
static int make_request (request_queue_t *q, struct bio * bi)
{
.....
if ( conf->raid5_bypass_read && bio_data_dir(bi) == READ )
{
new_sector = raid5_compute_sector(bi->bi_sector,
raid_disks,
data_disks,
&dd_idx,
&pd_idx,
conf);
bi->bi_sector = new_sector;
bi->bi_bdev = conf->disks[dd_idx].rdev->bdev;
//
// do some statics
//
disk_stat_inc(mddev->gendisk, ios[rw]);
disk_stat_add(mddev->gendisk, sectors[rw], bio_sectors(bi));
//
// make upper level to the work for me
//
return 1;
}
...
}
it increased the performance to 440 MB/s.
Question :
What is the cost of not walking trough the raid5 code in the
case of READ ?
if i add and error handling code will it be suffice ?
thank you
--
Raz
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: raid 5 read performance
2006-05-21 9:10 Raz Ben-Jehuda(caro)
@ 2006-05-21 9:17 ` Neil Brown
2006-05-21 17:19 ` Dan Williams
2006-10-20 22:16 ` Stephan van Hienen
0 siblings, 2 replies; 13+ messages in thread
From: Neil Brown @ 2006-05-21 9:17 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: Linux RAID Mailing List
On Sunday May 21, raziebe@gmail.com wrote:
>
> Question :
> What is the cost of not walking trough the raid5 code in the
> case of READ ?
> if i add and error handling code will it be suffice ?
>
Please read
http://www.spinics.net/lists/raid/msg11838.html
and ask if you have further questions.
NeilBrown
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: raid 5 read performance
2006-05-21 9:17 ` Neil Brown
@ 2006-05-21 17:19 ` Dan Williams
2006-05-21 22:38 ` Neil Brown
2006-10-20 22:16 ` Stephan van Hienen
1 sibling, 1 reply; 13+ messages in thread
From: Dan Williams @ 2006-05-21 17:19 UTC (permalink / raw)
To: Neil Brown; +Cc: Raz Ben-Jehuda(caro), Linux RAID Mailing List
> Please read
>
> http://www.spinics.net/lists/raid/msg11838.html
>
> and ask if you have further questions.
>
Does this implementation also need to do delayed updates to the stripe
cache? I.e. we bypass the cache and get the requester the data it
needs but then schedule that data to also be copied into the cache by
the work queue. The thinking being to reduce the read penalties
associated with subsequent writes to the stripe.
Dan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: raid 5 read performance
2006-05-21 17:19 ` Dan Williams
@ 2006-05-21 22:38 ` Neil Brown
0 siblings, 0 replies; 13+ messages in thread
From: Neil Brown @ 2006-05-21 22:38 UTC (permalink / raw)
To: Dan Williams; +Cc: Raz Ben-Jehuda(caro), Linux RAID Mailing List
On Sunday May 21, dan.j.williams@gmail.com wrote:
> > Please read
> >
> > http://www.spinics.net/lists/raid/msg11838.html
> >
> > and ask if you have further questions.
> >
> Does this implementation also need to do delayed updates to the stripe
> cache? I.e. we bypass the cache and get the requester the data it
> needs but then schedule that data to also be copied into the cache by
> the work queue. The thinking being to reduce the read penalties
> associated with subsequent writes to the stripe.
>
I doubt that would be worth the effort. I don't think data lives very
long in the stripe cache, and so a lot of the copying would be wasted.
Also, I gather that modern drives have a reasonable cache and if data
was read recently for a read, then reading it again for a write might
be very quick.
I think the gains you get on the read side will more than offset any
small loss on the write side.
NeilBrown
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: raid 5 read performance
2006-05-21 9:17 ` Neil Brown
2006-05-21 17:19 ` Dan Williams
@ 2006-10-20 22:16 ` Stephan van Hienen
2006-10-23 4:15 ` Neil Brown
1 sibling, 1 reply; 13+ messages in thread
From: Stephan van Hienen @ 2006-10-20 22:16 UTC (permalink / raw)
To: Neil Brown; +Cc: Raz Ben-Jehuda(caro), Linux RAID Mailing List
On Sun, 21 May 2006, Neil Brown wrote:
> Please read
>
> http://www.spinics.net/lists/raid/msg11838.html
>
> and ask if you have further questions.
Neil,
what is the current status on the slow read performance with 2.6 ?
Regards,
Stephan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: raid 5 read performance
2006-10-20 22:16 ` Stephan van Hienen
@ 2006-10-23 4:15 ` Neil Brown
0 siblings, 0 replies; 13+ messages in thread
From: Neil Brown @ 2006-10-23 4:15 UTC (permalink / raw)
To: Stephan van Hienen; +Cc: Raz Ben-Jehuda(caro), Linux RAID Mailing List
On Saturday October 21, raid@a2000.nu wrote:
> On Sun, 21 May 2006, Neil Brown wrote:
>
> > Please read
> >
> > http://www.spinics.net/lists/raid/msg11838.html
> >
> > and ask if you have further questions.
>
> Neil,
>
> what is the current status on the slow read performance with 2.6 ?
>
You mean by-passing the cache to avoid extra copy and synchronisation
overheads?
I have the patches. I tried them once and couldn't measure any
speedup (I didn't try very hard) and put them aside think "I have to
look into this properly" and haven't got back to it yet.
Thanks for the reminder. Hope to do some performance measurements
soon. I'll make sure I include these patches when I do.
NeilBrown
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-09-11 18:22 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 20:07 Raid 5 Read performance Koti
2009-09-10 20:17 ` Majed B.
[not found] ` <918883.43112.qm@web94815.mail.in2.yahoo.com>
2009-09-11 18:22 ` Majed B.
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 15:50 raid 5 read performance Raz Ben-Jehuda(caro)
2006-06-09 22:59 ` Neil Brown
2006-08-05 17:31 ` Dan Williams
[not found] ` <5d96567b0608051456y795d1930la3d469174f221821@mail.gmail.com>
2006-08-05 22:38 ` Dan Williams
2006-05-21 9:10 Raz Ben-Jehuda(caro)
2006-05-21 9:17 ` Neil Brown
2006-05-21 17:19 ` Dan Williams
2006-05-21 22:38 ` Neil Brown
2006-10-20 22:16 ` Stephan van Hienen
2006-10-23 4:15 ` Neil Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox