Linux RAID subsystem development
 help / color / mirror / Atom feed
From: "Raz Ben-Jehuda(caro)" <raziebe@gmail.com>
To: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Cc: Neil Brown <neilb@suse.de>
Subject: raid 5 read performance
Date: Sun, 21 May 2006 12:10:48 +0300	[thread overview]
Message-ID: <5d96567b0605210210wc3925ek6161f427944f8b7@mail.gmail.com> (raw)

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

             reply	other threads:[~2006-05-21  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-21  9:10 Raz Ben-Jehuda(caro) [this message]
2006-05-21  9:17 ` raid 5 read performance 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
  -- strict thread matches above, loose matches on Subject: below --
2006-06-09 15:50 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
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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d96567b0605210210wc3925ek6161f427944f8b7@mail.gmail.com \
    --to=raziebe@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox