linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux MD RAID5/6 bitmap patches
@ 2006-03-22  7:22 Yogesh Pahilwan
  2006-03-22 10:06 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Yogesh Pahilwan @ 2006-03-22  7:22 UTC (permalink / raw)
  To: linux-raid; +Cc: majordomo

Hello,

I want to know where I can get various MD RAID5/RAID6 bitmap patches for
linux kernel 2.6.15.
I want to know what kind of performance optimization possible on bitmap
patches. I also want to know are 
there any patches available which provides performance optimizations using
bitmaps. 

Thanks and Regards
Yogesh



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Linux MD RAID5/6 bitmap patches
@ 2006-03-22  7:27 Yogesh Pahilwan
  0 siblings, 0 replies; 7+ messages in thread
From: Yogesh Pahilwan @ 2006-03-22  7:27 UTC (permalink / raw)
  To: linux-raid

Hello,

I want to know where I can get various MD RAID5/RAID6 bitmap patches for
linux kernel 2.6.15.
I want to know what kind of performance optimization possible on bitmap
patches. I also want to know are there any patches available which provides
performance optimizations using bitmaps. 

Thanks and Regards
Yogesh



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux MD RAID5/6 bitmap patches
  2006-03-22  7:22 Linux MD RAID5/6 bitmap patches Yogesh Pahilwan
@ 2006-03-22 10:06 ` Neil Brown
  2006-03-22 10:48   ` Yogesh Pahilwan
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Brown @ 2006-03-22 10:06 UTC (permalink / raw)
  To: Yogesh Pahilwan; +Cc: linux-raid

On Wednesday March 22, pahilwan.yogesh@spsoftindia.com wrote:
> Hello,
> 
> I want to know where I can get various MD RAID5/RAID6 bitmap patches for
> linux kernel 2.6.15.

2.6.15 already includes support for bitmaps for MD raid5 and raid6
(And raid1).  No patches needed.

> I want to know what kind of performance optimization possible on bitmap
> patches. I also want to know are 
> there any patches available which provides performance optimizations using
> bitmaps. 

Bitmaps optimise rebuild time after a crash, or after removing and
re-adding a device.  They do not improve normal read/write
performance, and may well cause a small degradation in performance.

NeilBrown

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Linux MD RAID5/6 bitmap patches
  2006-03-22 10:06 ` Neil Brown
@ 2006-03-22 10:48   ` Yogesh Pahilwan
  2006-03-22 18:06     ` Paul Clements
  0 siblings, 1 reply; 7+ messages in thread
From: Yogesh Pahilwan @ 2006-03-22 10:48 UTC (permalink / raw)
  To: 'Neil Brown'; +Cc: linux-raid

Hi Neil,

Thanks for your reply. As far as what I understood that when we apply the
bitmap patch, for every write it will do 2 sync writes that is setting the
dirty bit, writing intent log and one async write for clearing the dirty
bit. Is it correct?
If that is the case are there any patches available which can do collection
of sync write in a queue and write a collection in single write request.
For Eg:
For 10 writes , we will have 10 + 1 sync writes + 10 async write.
I mean to say , 10 sync writes for setting the dirty bits + 1 sync write for
write intent log for all queued request in one write operation + 10 async
write for clearing the dirty bit.

So as we reducing the sync write request by using collections will it
improve the performance and any patches available which follows this
approach.

Thanks and Regards
Yogesh

-----Original Message-----
From: Neil Brown [mailto:neilb@suse.de] 
Sent: Wednesday, March 22, 2006 3:36 PM
To: Yogesh Pahilwan
Cc: linux-raid@vger.kernel.org
Subject: Re: Linux MD RAID5/6 bitmap patches

On Wednesday March 22, pahilwan.yogesh@spsoftindia.com wrote:
> Hello,
> 
> I want to know where I can get various MD RAID5/RAID6 bitmap patches for
> linux kernel 2.6.15.

2.6.15 already includes support for bitmaps for MD raid5 and raid6
(And raid1).  No patches needed.

> I want to know what kind of performance optimization possible on bitmap
> patches. I also want to know are 
> there any patches available which provides performance optimizations using
> bitmaps. 

Bitmaps optimise rebuild time after a crash, or after removing and
re-adding a device.  They do not improve normal read/write
performance, and may well cause a small degradation in performance.

NeilBrown


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux MD RAID5/6 bitmap patches
  2006-03-22 10:48   ` Yogesh Pahilwan
@ 2006-03-22 18:06     ` Paul Clements
  2006-03-23  9:12       ` Yogesh Pahilwan
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Clements @ 2006-03-22 18:06 UTC (permalink / raw)
  To: Yogesh Pahilwan; +Cc: 'Neil Brown', linux-raid

Yogesh Pahilwan wrote:

> Thanks for your reply. As far as what I understood that when we apply the
> bitmap patch, for every write it will do 2 sync writes that is setting the
> dirty bit, writing intent log and one async write for clearing the dirty
> bit. Is it correct?

The bits are in the intent log, so the "setting dirty bit" and "writing 
intent log" are the same thing. Just one write.

> If that is the case are there any patches available which can do collection
> of sync write in a queue and write a collection in single write request.
> For Eg:
> For 10 writes , we will have 10 + 1 sync writes + 10 async write.

The bitmap code already does this by default. The bitmap writes are 
queued up so that all writes to a given page (within a short time 
period) are reduced to a single write. The performance is actually quite 
good. There's very little performance difference between having a bitmap 
versus not having one.

> I mean to say , 10 sync writes for setting the dirty bits + 1 sync write for
> write intent log for all queued request in one write operation + 10 async
> write for clearing the dirty bit.

The async writes for clearing the bitmap are also combined.

--
Paul

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Linux MD RAID5/6 bitmap patches
  2006-03-22 18:06     ` Paul Clements
@ 2006-03-23  9:12       ` Yogesh Pahilwan
  2006-03-23 15:07         ` Paul Clements
  0 siblings, 1 reply; 7+ messages in thread
From: Yogesh Pahilwan @ 2006-03-23  9:12 UTC (permalink / raw)
  To: 'Paul Clements'; +Cc: 'Neil Brown', linux-raid

Hi Paul,

Thanks for your reply.

Where can we get documentation (design/implementation) about RAID6 and
bitmap for linux kernel 2.6.

Thanks and Regards
Yogesh

-----Original Message-----
From: Paul Clements [mailto:paul.clements@steeleye.com] 
Sent: Wednesday, March 22, 2006 11:37 PM
To: Yogesh Pahilwan
Cc: 'Neil Brown'; linux-raid@vger.kernel.org
Subject: Re: Linux MD RAID5/6 bitmap patches

Yogesh Pahilwan wrote:

> Thanks for your reply. As far as what I understood that when we apply the
> bitmap patch, for every write it will do 2 sync writes that is setting the
> dirty bit, writing intent log and one async write for clearing the dirty
> bit. Is it correct?

The bits are in the intent log, so the "setting dirty bit" and "writing 
intent log" are the same thing. Just one write.

> If that is the case are there any patches available which can do
collection
> of sync write in a queue and write a collection in single write request.
> For Eg:
> For 10 writes , we will have 10 + 1 sync writes + 10 async write.

The bitmap code already does this by default. The bitmap writes are 
queued up so that all writes to a given page (within a short time 
period) are reduced to a single write. The performance is actually quite 
good. There's very little performance difference between having a bitmap 
versus not having one.

> I mean to say , 10 sync writes for setting the dirty bits + 1 sync write
for
> write intent log for all queued request in one write operation + 10 async
> write for clearing the dirty bit.

The async writes for clearing the bitmap are also combined.

--
Paul


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux MD RAID5/6 bitmap patches
  2006-03-23  9:12       ` Yogesh Pahilwan
@ 2006-03-23 15:07         ` Paul Clements
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Clements @ 2006-03-23 15:07 UTC (permalink / raw)
  To: Yogesh Pahilwan; +Cc: 'Neil Brown', linux-raid

Yogesh Pahilwan wrote:

> Where can we get documentation (design/implementation) about RAID6 and
> bitmap for linux kernel 2.6.

For the bitmap code, I'm afraid you'll just have to read the code. Also, 
look back at the archives of this list. There are several discussions 
about the bitmap patches, going back to 2003.

--
Paul


> -----Original Message-----
> From: Paul Clements [mailto:paul.clements@steeleye.com] 
> Sent: Wednesday, March 22, 2006 11:37 PM
> To: Yogesh Pahilwan
> Cc: 'Neil Brown'; linux-raid@vger.kernel.org
> Subject: Re: Linux MD RAID5/6 bitmap patches
> 
> Yogesh Pahilwan wrote:
> 
> 
>>Thanks for your reply. As far as what I understood that when we apply the
>>bitmap patch, for every write it will do 2 sync writes that is setting the
>>dirty bit, writing intent log and one async write for clearing the dirty
>>bit. Is it correct?
> 
> 
> The bits are in the intent log, so the "setting dirty bit" and "writing 
> intent log" are the same thing. Just one write.
> 
> 
>>If that is the case are there any patches available which can do
> 
> collection
> 
>>of sync write in a queue and write a collection in single write request.
>>For Eg:
>>For 10 writes , we will have 10 + 1 sync writes + 10 async write.
> 
> 
> The bitmap code already does this by default. The bitmap writes are 
> queued up so that all writes to a given page (within a short time 
> period) are reduced to a single write. The performance is actually quite 
> good. There's very little performance difference between having a bitmap 
> versus not having one.
> 
> 
>>I mean to say , 10 sync writes for setting the dirty bits + 1 sync write
> 
> for
> 
>>write intent log for all queued request in one write operation + 10 async
>>write for clearing the dirty bit.
> 
> 
> The async writes for clearing the bitmap are also combined.
> 
> --
> Paul
> 
> -
> 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] 7+ messages in thread

end of thread, other threads:[~2006-03-23 15:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-22  7:22 Linux MD RAID5/6 bitmap patches Yogesh Pahilwan
2006-03-22 10:06 ` Neil Brown
2006-03-22 10:48   ` Yogesh Pahilwan
2006-03-22 18:06     ` Paul Clements
2006-03-23  9:12       ` Yogesh Pahilwan
2006-03-23 15:07         ` Paul Clements
  -- strict thread matches above, loose matches on Subject: below --
2006-03-22  7:27 Yogesh Pahilwan

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).