List Info

Thread: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD




Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-25 11:24:03
Attention CentOS Developers,

Here is a back-port of Lars Ellenberg's md raid1/10 patch
from 2.6.19+
to 2.6.9. It seems the md raid1 and raid10 drivers were
stripping the
BIO_RW_SYNC flags on requests which caused a severe
performance penalty
for DRBD when writing it's meta-data to these volumes.

The patch is attached as well as inlined:

---------- BEGIN ----------
Subject: md: pass down BIO_RW_SYNC in raid{1,10}
From: Lars Ellenberg <[EMAIL PROTECTED]>

md raidX make_request functions strip off the BIO_RW_SYNC
flag, thus
introducing additional latency.

Fixing this in raid1 and raid10 seems to be straightforward
enough.

For our particular usage case in DRBD, passing this flag
improved some
initialization time from ~5 minutes to ~5 seconds.

---

 raid1.c  |   11 ++++++++---
 raid10.c |   11 ++++++++---
 2 files changed, 16 insertions(+), 6 deletions(-)

diff -puN
drivers/md/raid1.c~md-pass-down-bio_rw_sync-in-raid1
drivers/md/raid1.c
---
a/drivers/md/raid1.c~md-pass-down-bio_rw_sync-in-raid110
2007-02-24 01:51:20.000000000 -0500
+++ b/drivers/md/raid1.c	2007-02-24 01:50:38.000000000
-0500
 -521,6
+521,7  static int make_request(request_queue_t 
 	struct bio *read_bio;
 	int i, disks;
 	mdk_rdev_t *rdev;
+	const int do_sync = bio_sync(bio);
 
 	if (unlikely(bio_barrier(bio))) {
 		bio_endio(bio, bio->bi_size, -EOPNOTSUPP);
 -582,7
+583,7  static int make_request(request_queue_t 
 		read_bio->bi_sector = r1_bio->sector +
mirror->rdev->data_offset;
 		read_bio->bi_bdev = mirror->rdev->bdev;
 		read_bio->bi_end_io = raid1_end_read_request;
-		read_bio->bi_rw = READ;
+		read_bio->bi_rw = READ | do_sync;
 		read_bio->bi_private = r1_bio;
 
 		generic_make_request(read_bio);
 -625,7
+626,7  static int make_request(request_queue_t 
 		mbio->bi_sector	= r1_bio->sector +
conf->mirrors[i].rdev->data_offset;
 		mbio->bi_bdev = conf->mirrors[i].rdev->bdev;
 		mbio->bi_end_io	= raid1_end_write_request;
-		mbio->bi_rw = WRITE;
+		mbio->bi_rw = WRITE | do_sync;
 		mbio->bi_private = r1_bio;
 
 		atomic_inc(&r1_bio->remaining);
 -637,6
+638,9  static int make_request(request_queue_t 
 		raid_end_bio_io(r1_bio);
 	}
 
+	if (do_sync)
+		md_wakeup_thread(mddev->thread);
+
 	return 0;
 }
 
 -960,6
+964,7  static void raid1d(mddev_t *mddev)
 				       (unsigned long
long)r1_bio->sector);
 				raid_end_bio_io(r1_bio);
 			} else {
+				const int do_sync =
bio_sync(r1_bio->master_bio);
 				r1_bio->bios[r1_bio->read_disk] = NULL;
 				r1_bio->read_disk = disk;
 				bio_put(bio);
 -974,7
+979,7  static void raid1d(mddev_t *mddev)
 				bio->bi_sector = r1_bio->sector +
rdev->data_offset;
 				bio->bi_bdev = rdev->bdev;
 				bio->bi_end_io = raid1_end_read_request;
-				bio->bi_rw = READ;
+				bio->bi_rw = READ | do_sync;
 				bio->bi_private = r1_bio;
 				unplug = 1;
 				generic_make_request(bio);
---
a/drivers/md/raid10.c~md-pass-down-bio_rw_sync-in-raid110
2007-02-24 01:51:20.000000000 -0500
+++ b/drivers/md/raid10.c	2007-02-24 01:50:38.000000000
-0500
 -663,6
+663,7  static int make_request(request_queue_t 
 	struct bio *read_bio;
 	int i;
 	int chunk_sects = conf->chunk_mask + 1;
+	const int do_sync = bio_sync(bio);
 
 	if (unlikely(bio_barrier(bio))) {
 		bio_endio(bio, bio->bi_size, -EOPNOTSUPP);
 -747,7
+748,7  static int make_request(request_queue_t 
 			mirror->rdev->data_offset;
 		read_bio->bi_bdev = mirror->rdev->bdev;
 		read_bio->bi_end_io = raid10_end_read_request;
-		read_bio->bi_rw = READ;
+		read_bio->bi_rw = READ | do_sync;
 		read_bio->bi_private = r10_bio;
 
 		generic_make_request(read_bio);
 -789,7
+790,7  static int make_request(request_queue_t 
 			conf->mirrors[d].rdev->data_offset;
 		mbio->bi_bdev = conf->mirrors[d].rdev->bdev;
 		mbio->bi_end_io	= raid10_end_write_request;
-		mbio->bi_rw = WRITE;
+		mbio->bi_rw = WRITE | do_sync;
 		mbio->bi_private = r10_bio;
 
 		atomic_inc(&r10_bio->remaining);
 -801,6
+802,9  static int make_request(request_queue_t 
 		raid_end_bio_io(r10_bio);
 	}
 
+	if (do_sync)
+		md_wakeup_thread(mddev->thread);
+
 	return 0;
 }
 
 -1247,6
+1251,7  static void raid10d(mddev_t *mddev)
 				       (unsigned long
long)r10_bio->sector);
 				raid_end_bio_io(r10_bio);
 			} else {
+				const int do_sync =
bio_sync(r10_bio->master_bio);
 				rdev = conf->mirrors[mirror].rdev;
 				if (printk_ratelimit())
 					printk(KERN_ERR "raid10: %s:
redirecting sector %llu to"
 -1258,7
+1263,7  static void raid10d(mddev_t *mddev)
 				bio->bi_sector =
r10_bio->devs[r10_bio->read_slot].addr
 					+ rdev->data_offset;
 				bio->bi_bdev = rdev->bdev;
-				bio->bi_rw = READ;
+				bio->bi_rw = READ | do_sync;
 				bio->bi_private = r10_bio;
 				bio->bi_end_io =
raid10_end_read_request;
 				unplug = 1;
----------- END -----------

Ross S. W. Walker
Information Systems Manager
Medallion Financial, Corp.
437 Madison Avenue
38th Floor
New York, NY 10022
Tel: (212) 328-2165
Fax: (212) 328-2125
WWW: http://www.medallion.com
<http://www.medallion.com
> 



____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.


_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

  
RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-25 11:30:27
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Sunday, February 25, 2007 12:24 PM
> To: centos-develcentos.org
> Subject: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> 
> Attention CentOS Developers,
> 
> Here is a back-port of Lars Ellenberg's md raid1/10
patch from 2.6.19+
> to 2.6.9. It seems the md raid1 and raid10 drivers were
stripping the
> BIO_RW_SYNC flags on requests which caused a severe 
> performance penalty
> for DRBD when writing it's meta-data to these volumes.
> 
> The patch is attached as well as inlined:

<snip>

Oh, here is the LKML link: http://lkml.org/lkm
l/2007/2/2/294

I'm a newbie at LKML so I am not sure how to find the
commit
notification.

Cheers,

Ross

____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-27 20:10:04
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Sunday, February 25, 2007 12:24 PM
> To: centos-develcentos.org
> Subject: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> 
> Attention CentOS Developers,
> 
> Here is a back-port of Lars Ellenberg's md raid1/10
patch from 2.6.19+
> to 2.6.9. It seems the md raid1 and raid10 drivers were
stripping the
> BIO_RW_SYNC flags on requests which caused a severe 
> performance penalty
> for DRBD when writing it's meta-data to these volumes.
> 
> The patch is attached as well as inlined:

No comments?


____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 02:08:01
On Tue, 2007-02-27 at 21:10 -0500, Ross S. W. Walker wrote:
> > -----Original Message-----
> > From: centos-devel-bouncescentos.org 
> > [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> > W. Walker
> > Sent: Sunday, February 25, 2007 12:24 PM
> > To: centos-develcentos.org
> > Subject: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> > patch for DRBD
> > 
> > 
> > Attention CentOS Developers,
> > 
> > Here is a back-port of Lars Ellenberg's md
raid1/10 patch from 2.6.19+
> > to 2.6.9. It seems the md raid1 and raid10 drivers
were stripping the
> > BIO_RW_SYNC flags on requests which caused a
severe 
> > performance penalty
> > for DRBD when writing it's meta-data to these
volumes.
> > 
> > The patch is attached as well as inlined:
> 
> No comments?

I just put it in the new CentOSPlus kernel (that I am
currently
testing).

Should be out later today (if it works).

Thanks,
Johnny Hughes

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 09:07:31
On Wed, 2007-02-28 at 02:08 -0600, Johnny Hughes wrote:
> On Tue, 2007-02-27 at 21:10 -0500, Ross S. W. Walker
wrote:
> > > -----Original Message-----
> > > From: centos-devel-bouncescentos.org 
> > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S. 
> > > W. Walker
> > > Sent: Sunday, February 25, 2007 12:24 PM
> > > To: centos-develcentos.org
> > > Subject: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> > > patch for DRBD
> > > 
> > > 
> > > Attention CentOS Developers,
> > > 
> > > Here is a back-port of Lars Ellenberg's md
raid1/10 patch from 2.6.19+
> > > to 2.6.9. It seems the md raid1 and raid10
drivers were stripping the
> > > BIO_RW_SYNC flags on requests which caused a
severe 
> > > performance penalty
> > > for DRBD when writing it's meta-data to these
volumes.
> > > 
> > > The patch is attached as well as inlined:
> > 
> > No comments?
> 
> I just put it in the new CentOSPlus kernel (that I am
currently
> testing).
> 
> Should be out later today (if it works).


OK ... the released CentOS-Plus kernel
(2.6.9-42.0.10.plus.c4) has that
patch installed on x86_64 and i386 ... and I did install it
and test
with DRBD.  The systems it is on are running OK.

Thanks,
Johnny Hughes

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 10:31:53
> -----Original Message-----
> From: centos-devel-bouncescentos.org
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Johnny Hughes
> Sent: Wednesday, February 28, 2007 10:08 AM
> To: CentOS-Devel
> Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC
> patch for DRBD
>
> On Wed, 2007-02-28 at 02:08 -0600, Johnny Hughes
wrote:
> > On Tue, 2007-02-27 at 21:10 -0500, Ross S. W.
Walker wrote:
> > > > -----Original Message-----
> > > > From: centos-devel-bouncescentos.org
> > > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S.
> > > > W. Walker
> > > > Sent: Sunday, February 25, 2007 12:24
PM
> > > > To: centos-develcentos.org
> > > > Subject: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC
> > > > patch for DRBD
> > > >
> > > >
> > > > Attention CentOS Developers,
> > > >
> > > > Here is a back-port of Lars Ellenberg's
md raid1/10
> patch from 2.6.19+
> > > > to 2.6.9. It seems the md raid1 and
raid10 drivers were
> stripping the
> > > > BIO_RW_SYNC flags on requests which
caused a severe
> > > > performance penalty
> > > > for DRBD when writing it's meta-data to
these volumes.
> > > >
> > > > The patch is attached as well as
inlined:
> > >
> > > No comments?
> >
> > I just put it in the new CentOSPlus kernel (that I
am currently
> > testing).
> >
> > Should be out later today (if it works).
>
>
> OK ... the released CentOS-Plus kernel
> (2.6.9-42.0.10.plus.c4) has that
> patch installed on x86_64 and i386 ... and I did
install it and test
> with DRBD.  The systems it is on are running OK.

Excellect, I am currently running the patch on my x86_64
plus kernel here 
with no problems, and I have the OS booting off of RAID1, I
have the 
meta-data as a LVM on the OS vg and no problems and a
significant 
improvement with my large DRBD volumes.

Lars did review the fixes too and gave them the ok, so it
wasn't 
completely without review.

-Ross


____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.


_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 23:03:10
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Wednesday, February 28, 2007 11:32 AM
> To: The CentOS developers mailing list.
> Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> > -----Original Message-----
> > From: centos-devel-bouncescentos.org
> > [mailto:centos-devel-bouncescentos.org] On Behalf Of
Johnny Hughes
> > Sent: Wednesday, February 28, 2007 10:08 AM
> > To: CentOS-Devel
> > Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC
> > patch for DRBD
> >
> > On Wed, 2007-02-28 at 02:08 -0600, Johnny Hughes
wrote:
> > > On Tue, 2007-02-27 at 21:10 -0500, Ross S. W.
Walker wrote:
> > > > > -----Original Message-----
> > > > > From: centos-devel-bouncescentos.org
> > > > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S.
> > > > > W. Walker
> > > > > Sent: Sunday, February 25, 2007
12:24 PM
> > > > > To: centos-develcentos.org
> > > > > Subject: [CentOS-devel] Back-port
md raid1/10 BIO_RW_SYNC
> > > > > patch for DRBD
> > > > >
> > > > >
> > > > > Attention CentOS Developers,
> > > > >
> > > > > Here is a back-port of Lars
Ellenberg's md raid1/10
> > patch from 2.6.19+
> > > > > to 2.6.9. It seems the md raid1 and
raid10 drivers were
> > stripping the
> > > > > BIO_RW_SYNC flags on requests which
caused a severe
> > > > > performance penalty
> > > > > for DRBD when writing it's
meta-data to these volumes.
> > > > >
> > > > > The patch is attached as well as
inlined:
> > > >
> > > > No comments?
> > >
> > > I just put it in the new CentOSPlus kernel
(that I am currently
> > > testing).
> > >
> > > Should be out later today (if it works).
> >
> >
> > OK ... the released CentOS-Plus kernel
> > (2.6.9-42.0.10.plus.c4) has that
> > patch installed on x86_64 and i386 ... and I did
install it and test
> > with DRBD.  The systems it is on are running OK.
> 
> Excellect, I am currently running the patch on my
x86_64 plus 
> kernel here 
> with no problems, and I have the OS booting off of
RAID1, I have the 
> meta-data as a LVM on the OS vg and no problems and a
significant 
> improvement with my large DRBD volumes.
> 
> Lars did review the fixes too and gave them the ok, so
it wasn't 
> completely without review.
> 

Ok, I just updated to that kernel,
kernel-2.6.9-42.0.10.plus.c4, and I do not see the patch in
there?

Did it miss the final cut?

-Ross

____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 23:17:04
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Thursday, March 01, 2007 12:03 AM
> To: The CentOS developers mailing list.
> Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> > -----Original Message-----
> > From: centos-devel-bouncescentos.org 
> > [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> > W. Walker
> > Sent: Wednesday, February 28, 2007 11:32 AM
> > To: The CentOS developers mailing list.
> > Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> > patch for DRBD
> > 
> > > -----Original Message-----
> > > From: centos-devel-bouncescentos.org
> > > [mailto:centos-devel-bouncescentos.org] On Behalf Of 
> Johnny Hughes
> > > Sent: Wednesday, February 28, 2007 10:08 AM
> > > To: CentOS-Devel
> > > Subject: RE: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC
> > > patch for DRBD
> > >
> > > On Wed, 2007-02-28 at 02:08 -0600, Johnny
Hughes wrote:
> > > > On Tue, 2007-02-27 at 21:10 -0500, Ross
S. W. Walker wrote:
> > > > > > -----Original Message-----
> > > > > > From: centos-devel-bouncescentos.org
> > > > > >
[mailto:centos-devel-bouncescentos.org] On Behalf 
> Of Ross S.
> > > > > > W. Walker
> > > > > > Sent: Sunday, February 25,
2007 12:24 PM
> > > > > > To: centos-develcentos.org
> > > > > > Subject: [CentOS-devel]
Back-port md raid1/10 BIO_RW_SYNC
> > > > > > patch for DRBD
> > > > > >
> > > > > >
> > > > > > Attention CentOS Developers,
> > > > > >
> > > > > > Here is a back-port of Lars
Ellenberg's md raid1/10
> > > patch from 2.6.19+
> > > > > > to 2.6.9. It seems the md
raid1 and raid10 drivers were
> > > stripping the
> > > > > > BIO_RW_SYNC flags on requests
which caused a severe
> > > > > > performance penalty
> > > > > > for DRBD when writing it's
meta-data to these volumes.
> > > > > >
> > > > > > The patch is attached as well
as inlined:
> > > > >
> > > > > No comments?
> > > >
> > > > I just put it in the new CentOSPlus
kernel (that I am currently
> > > > testing).
> > > >
> > > > Should be out later today (if it
works).
> > >
> > >
> > > OK ... the released CentOS-Plus kernel
> > > (2.6.9-42.0.10.plus.c4) has that
> > > patch installed on x86_64 and i386 ... and I
did install 
> it and test
> > > with DRBD.  The systems it is on are running
OK.
> > 
> > Excellect, I am currently running the patch on my
x86_64 plus 
> > kernel here 
> > with no problems, and I have the OS booting off of
RAID1, I 
> have the 
> > meta-data as a LVM on the OS vg and no problems
and a significant 
> > improvement with my large DRBD volumes.
> > 
> > Lars did review the fixes too and gave them the
ok, so it wasn't 
> > completely without review.
> > 
> 
> Ok, I just updated to that kernel, 
> kernel-2.6.9-42.0.10.plus.c4, and I do not see the
patch in there?
> 
> Did it miss the final cut?

My bad I spoke too soon, it is in there as
linux-2.6.9-raid-bio-rw-sync.patch.

Sorry,

Ross

____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 23:24:19
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Thursday, March 01, 2007 12:17 AM
> To: The CentOS developers mailing list.
> Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> > -----Original Message-----
> > From: centos-devel-bouncescentos.org 
> > [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> > W. Walker
> > Sent: Thursday, March 01, 2007 12:03 AM
> > To: The CentOS developers mailing list.
> > Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> > patch for DRBD
> > 
> > > -----Original Message-----
> > > From: centos-devel-bouncescentos.org 
> > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S. 
> > > W. Walker
> > > Sent: Wednesday, February 28, 2007 11:32 AM
> > > To: The CentOS developers mailing list.
> > > Subject: RE: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC 
> > > patch for DRBD
> > > 
> > > > -----Original Message-----
> > > > From: centos-devel-bouncescentos.org
> > > > [mailto:centos-devel-bouncescentos.org] On Behalf Of 
> > Johnny Hughes
> > > > Sent: Wednesday, February 28, 2007 10:08
AM
> > > > To: CentOS-Devel
> > > > Subject: RE: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC
> > > > patch for DRBD
> > > >
> > > > On Wed, 2007-02-28 at 02:08 -0600,
Johnny Hughes wrote:
> > > > > On Tue, 2007-02-27 at 21:10 -0500,
Ross S. W. Walker wrote:
> > > > > > > -----Original
Message-----
> > > > > > > From:
centos-devel-bouncescentos.org
> > > > > > >
[mailto:centos-devel-bouncescentos.org] On Behalf 
> > Of Ross S.
> > > > > > > W. Walker
> > > > > > > Sent: Sunday, February
25, 2007 12:24 PM
> > > > > > > To: centos-develcentos.org
> > > > > > > Subject: [CentOS-devel]
Back-port md raid1/10 BIO_RW_SYNC
> > > > > > > patch for DRBD
> > > > > > >
> > > > > > >
> > > > > > > Attention CentOS
Developers,
> > > > > > >
> > > > > > > Here is a back-port of
Lars Ellenberg's md raid1/10
> > > > patch from 2.6.19+
> > > > > > > to 2.6.9. It seems the md
raid1 and raid10 drivers were
> > > > stripping the
> > > > > > > BIO_RW_SYNC flags on
requests which caused a severe
> > > > > > > performance penalty
> > > > > > > for DRBD when writing
it's meta-data to these volumes.
> > > > > > >
> > > > > > > The patch is attached as
well as inlined:
> > > > > >
> > > > > > No comments?
> > > > >
> > > > > I just put it in the new CentOSPlus
kernel (that I am 
> currently
> > > > > testing).
> > > > >
> > > > > Should be out later today (if it
works).
> > > >
> > > >
> > > > OK ... the released CentOS-Plus kernel
> > > > (2.6.9-42.0.10.plus.c4) has that
> > > > patch installed on x86_64 and i386 ...
and I did install 
> > it and test
> > > > with DRBD.  The systems it is on are
running OK.
> > > 
> > > Excellect, I am currently running the patch
on my x86_64 plus 
> > > kernel here 
> > > with no problems, and I have the OS booting
off of RAID1, I 
> > have the 
> > > meta-data as a LVM on the OS vg and no
problems and a significant 
> > > improvement with my large DRBD volumes.
> > > 
> > > Lars did review the fixes too and gave them
the ok, so it wasn't 
> > > completely without review.
> > > 
> > 
> > Ok, I just updated to that kernel, 
> > kernel-2.6.9-42.0.10.plus.c4, and I do not see the
patch in there?
> > 
> > Did it miss the final cut?
> 
> My bad I spoke too soon, it is in there as 
> linux-2.6.9-raid-bio-rw-sync.patch.
> 
> Sorry,

Again, I don't want to be alarmist but... I think there
might be a build
problem with the latest plus kernel:

[rootmfg-nyc-iscsi2 make]# rpm -qa | grep kernel | sort
iscsitarget-kernel-smp-0.4.14-98_2.6.9_42.0.8.plus.c4
kernel-doc-2.6.9-42.0.10.plus.c4
kernel-ib-1.0-1
kernel-module-drbd-2.6.9-42.0.3.plus.c4smp-0.7.21-1.c4
kernel-module-drbd-2.6.9-42.0.8.plus.c4smp-0.7.23-1.c4
kernel-smp-2.6.9-42.0.10.EL
kernel-smp-2.6.9-42.0.8.plus.c4
kernel-smp-devel-2.6.9-42.0.10.EL
kernel-utils-2.4-13.1.83

Looks like the plus kernel dependencies got mixed up...

[rootmfg-nyc-iscsi2 make]# ls -l /lib/modules/
total 32
drwxr-xr-x  3 root root 4096 Feb 28 23:45
2.6.9-42.0.10.ELsmp
drwxr-xr-x  2 root root 4096 Dec 22 23:13 2.6.9-42.0.3.EL
drwxr-xr-x  3 root root 4096 Feb  2 17:31
2.6.9-42.0.3.ELsmp
drwxr-xr-x  4 root root 4096 Feb 24 11:13
2.6.9-42.0.3.plus.c4smp
drwxr-xr-x  4 root root 4096 Feb 28 23:45
2.6.9-42.0.8.plus.c4smp
drwxr-xr-x  2 root root 4096 Dec 22 23:12 2.6.9-42.EL
drwxr-xr-x  2 root root 4096 Feb 27 09:53 kabi-4.0-0smp

And it's gone and installed the standard kernel.

-Ross

____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

RE: Back-port md raid1/10 BIO_RW_SYNC patch for DRBD
country flaguser name
United States
2007-02-28 23:42:54
> -----Original Message-----
> From: centos-devel-bouncescentos.org 
> [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> W. Walker
> Sent: Thursday, March 01, 2007 12:24 AM
> To: The CentOS developers mailing list.
> Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> patch for DRBD
> 
> > -----Original Message-----
> > From: centos-devel-bouncescentos.org 
> > [mailto:centos-devel-bouncescentos.org] On Behalf Of
Ross S. 
> > W. Walker
> > Sent: Thursday, March 01, 2007 12:17 AM
> > To: The CentOS developers mailing list.
> > Subject: RE: [CentOS-devel] Back-port md raid1/10
BIO_RW_SYNC 
> > patch for DRBD
> > 
> > > -----Original Message-----
> > > From: centos-devel-bouncescentos.org 
> > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S. 
> > > W. Walker
> > > Sent: Thursday, March 01, 2007 12:03 AM
> > > To: The CentOS developers mailing list.
> > > Subject: RE: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC 
> > > patch for DRBD
> > > 
> > > > -----Original Message-----
> > > > From: centos-devel-bouncescentos.org 
> > > > [mailto:centos-devel-bouncescentos.org] On Behalf Of Ross S. 
> > > > W. Walker
> > > > Sent: Wednesday, February 28, 2007 11:32
AM
> > > > To: The CentOS developers mailing list.
> > > > Subject: RE: [CentOS-devel] Back-port md
raid1/10 BIO_RW_SYNC 
> > > > patch for DRBD
> > > > 
> > > > > -----Original Message-----
> > > > > From: centos-devel-bouncescentos.org
> > > > > [mailto:centos-devel-bouncescentos.org] On Behalf Of 
> > > Johnny Hughes
> > > > > Sent: Wednesday, February 28, 2007
10:08 AM
> > > > > To: CentOS-Devel
> > > > > Subject: RE: [CentOS-devel]
Back-port md raid1/10 BIO_RW_SYNC
> > > > > patch for DRBD
> > > > >
> > > > > On Wed, 2007-02-28 at 02:08 -0600,
Johnny Hughes wrote:
> > > > > > On Tue, 2007-02-27 at 21:10
-0500, Ross S. W. Walker wrote:
> > > > > > > > -----Original
Message-----
> > > > > > > > From:
centos-devel-bouncescentos.org
> > > > > > > >
[mailto:centos-devel-bouncescentos.org] On Behalf 
> > > Of Ross S.
> > > > > > > > W. Walker
> > > > > > > > Sent: Sunday,
February 25, 2007 12:24 PM
> > > > > > > > To: centos-develcentos.org
> > > > > > > > Subject:
[CentOS-devel] Back-port md raid1/10 
> BIO_RW_SYNC
> > > > > > > > patch for DRBD
> > > > > > > >
> > > > > > > >
> > > > > > > > Attention CentOS
Developers,
> > > > > > > >
> > > > > > > > Here is a back-port
of Lars Ellenberg's md raid1/10
> > > > > patch from 2.6.19+
> > > > > > > > to 2.6.9. It seems
the md raid1 and raid10 drivers were
> > > > > stripping the
> > > > > > > > BIO_RW_SYNC flags on
requests which caused a severe
> > > > > > > > performance penalty
> > > > > > > > for DRBD when
writing it's meta-data to these volumes.
> > > > > > > >
> > > > > > > > The patch is
attached as well as inlined:
> > > > > > >
> > > > > > > No comments?
> > > > > >
> > > > > > I just put it in the new
CentOSPlus kernel (that I am 
> > currently
> > > > > > testing).
> > > > > >
> > > > > > Should be out later today (if
it works).
> > > > >
> > > > >
> > > > > OK ... the released CentOS-Plus
kernel
> > > > > (2.6.9-42.0.10.plus.c4) has that
> > > > > patch installed on x86_64 and i386
... and I did install 
> > > it and test
> > > > > with DRBD.  The systems it is on
are running OK.
> > > > 
> > > > Excellect, I am currently running the
patch on my x86_64 plus 
> > > > kernel here 
> > > > with no problems, and I have the OS
booting off of RAID1, I 
> > > have the 
> > > > meta-data as a LVM on the OS vg and no
problems and a 
> significant 
> > > > improvement with my large DRBD volumes.
> > > > 
> > > > Lars did review the fixes too and gave
them the ok, so 
> it wasn't 
> > > > completely without review.
> > > > 
> > > 
> > > Ok, I just updated to that kernel, 
> > > kernel-2.6.9-42.0.10.plus.c4, and I do not
see the patch in there?
> > > 
> > > Did it miss the final cut?
> > 
> > My bad I spoke too soon, it is in there as 
> > linux-2.6.9-raid-bio-rw-sync.patch.
> > 
> > Sorry,
> 
> Again, I don't want to be alarmist but... I think there
might 
> be a build
> problem with the latest plus kernel:
> 
> [rootmfg-nyc-iscsi2 make]# rpm -qa | grep kernel | sort
> iscsitarget-kernel-smp-0.4.14-98_2.6.9_42.0.8.plus.c4
> kernel-doc-2.6.9-42.0.10.plus.c4
> kernel-ib-1.0-1
> kernel-module-drbd-2.6.9-42.0.3.plus.c4smp-0.7.21-1.c4
> kernel-module-drbd-2.6.9-42.0.8.plus.c4smp-0.7.23-1.c4
> kernel-smp-2.6.9-42.0.10.EL
> kernel-smp-2.6.9-42.0.8.plus.c4
> kernel-smp-devel-2.6.9-42.0.10.EL
> kernel-utils-2.4-13.1.83
> 
> Looks like the plus kernel dependencies got mixed
up...
> 
> [rootmfg-nyc-iscsi2 make]# ls -l /lib/modules/
> total 32
> drwxr-xr-x  3 root root 4096 Feb 28 23:45
2.6.9-42.0.10.ELsmp
> drwxr-xr-x  2 root root 4096 Dec 22 23:13
2.6.9-42.0.3.EL
> drwxr-xr-x  3 root root 4096 Feb  2 17:31
2.6.9-42.0.3.ELsmp
> drwxr-xr-x  4 root root 4096 Feb 24 11:13
2.6.9-42.0.3.plus.c4smp
> drwxr-xr-x  4 root root 4096 Feb 28 23:45
2.6.9-42.0.8.plus.c4smp
> drwxr-xr-x  2 root root 4096 Dec 22 23:12 2.6.9-42.EL
> drwxr-xr-x  2 root root 4096 Feb 27 09:53
kabi-4.0-0smp
> 
> And it's gone and installed the standard kernel.

Some more bad, drbd kernel modules naming convention off:

[rootmfg-nyc-iscsi2 noarch]# yum list available
'*kernel*'
Setting up repositories
Reading repository metadata in from local files
Available Packages
kernel.x86_64                            2.6.9-42.0.10.EL   
   update
kernel-devel.x86_64                      2.6.9-42.0.10.EL   
   update
kernel-doc.noarch                       
2.6.9-42.0.10.plus.c4  centosplus
kernel-largesmp.x86_64                   2.6.9-42.0.10.EL   
   update
kernel-largesmp-devel.x86_64             2.6.9-42.0.10.EL   
   update
kernel-module-drbd-2.6.9-42.0.10.EL.x86_ 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.10.ELlarge 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.10.ELsmp.x 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.10.plus.c4 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.10.plus.c4 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.10.plus.c4 0.7.23-1.el4.centos
   extras
kernel-module-drbd-2.6.9-42.0.2.EL.x86_6 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.2.ELlarges 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.2.ELsmp.x8 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.EL.x86_6 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.ELlarges 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.ELsmp.x8 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.plus.c4. 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.plus.c4l 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.3.plus.c4s 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.8.EL.x86_6 0.7.23-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.8.ELlarges 0.7.23-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.8.ELsmp.x8 0.7.23-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.8.plus.c4. 0.7.23-1.c4        
   extras
kernel-module-drbd-2.6.9-42.0.8.plus.c4l 0.7.23-1.c4        
   extras
kernel-module-drbd-2.6.9-42.EL.x86_64    0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.ELlargesmp.x 0.7.21-1.c4        
   extras
kernel-module-drbd-2.6.9-42.ELsmp.x86_64 0.7.21-1.c4        
   extras
kernel-module-xfs-2.6.9-42.0.10.EL.x86_6 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.10.ELlarges 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.10.ELsmp.x8 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.10.plus.c4. 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.10.plus.c4l 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.10.plus.c4s 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.EL.x86_64 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.ELlargesm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.ELsmp.x86 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.plus.c4.x 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.plus.c4la 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.2.plus.c4sm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.EL.x86_64 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.ELlargesm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.ELsmp.x86 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.plus.c4.x 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.plus.c4la 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.3.plus.c4sm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.EL.x86_64 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.ELlargesm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.ELsmp.x86 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.plus.c4.x 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.plus.c4la 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.0.8.plus.c4sm 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.EL.x86_64     0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.ELlargesmp.x8 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.ELsmp.x86_64  0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.plus.c4.x86_6 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.plus.c4larges 0.2-1              
   centosplus
kernel-module-xfs-2.6.9-42.plus.c4smp.x8 0.2-1              
   centosplus
kernel-smp.x86_64                        2.6.9-42.0.10.EL   
   update
kernel-smp-devel.x86_64                  2.6.9-42.0.10.EL   
   update


____________________________________________________________
__________
This e-mail, and any attachments thereto, is intended only
for use by
the addressee(s) named herein and may contain legally
privileged
and/or confidential information. If you are not the intended
recipient
of this e-mail, you are hereby notified that any
dissemination,
distribution or copying of this e-mail, and any attachments
thereto,
is strictly prohibited. If you have received this e-mail in
error,
please immediately notify the sender and permanently delete
the
original and any copy or printout thereof.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

[1-10] [11-17]

about | contact  Other archives ( Real Estate discussion Medical topics )