linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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
* 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
* 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

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 --
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
  -- strict thread matches above, loose matches on Subject: below --
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.
2006-05-21  9:10 raid 5 read performance 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;
as well as URLs for NNTP newsgroup(s).