All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHES] new barriers - 2
@ 2009-01-29 14:43 Mikulas Patocka
  0 siblings, 0 replies; 4+ messages in thread
From: Mikulas Patocka @ 2009-01-29 14:43 UTC (permalink / raw)
  To: device-mapper development; +Cc: Alasdair G Kergon, Milan Broz

Hi

Here I announce 2nd version my new barrier support patches:
http://people.redhat.com/mpatocka/patches/kernel/barriers/

They are against 2.6.29-rc3.

The most important enhancement is that with these patches, device mapper 
is able to send barrier requests to lower devices.

So it should be safe to enable write cache with hdparm -W 1 command on 
disks used in lvm and get enhanced performance because of write caching.

(prior to this patch, if you enabled write cache, you'd get misordered 
writes if you used journaling filesystems, because the barriers wouldn't 
get through to the real devices).

The barriers should work on linear volumes, mirrors, snapshots and 
multipath volumes. On mirrors and multipath, cache flush errors are 
ignored (this may be further improved).

Mikulas

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

* Re: [PATCHES] new barriers - 2
@ 2009-01-30 10:15 Tomasz Chmielewski
  2009-01-30 17:04 ` [dm-devel] " Mike Snitzer
  0 siblings, 1 reply; 4+ messages in thread
From: Tomasz Chmielewski @ 2009-01-30 10:15 UTC (permalink / raw)
  To: dm-devel

> Here I announce 2nd version my new barrier support patches:
> http://people.redhat.com/mpatocka/patches/kernel/barriers/
> 
> They are against 2.6.29-rc3.
> 
> The most important enhancement is that with these patches, device mapper 
> is able to send barrier requests to lower devices.

I guess it still won't work for those using LVM on md (Linux software 
RAID) because md lacks barrier support? Do you know if someone is 
working on it?


-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: [dm-devel] [PATCHES] new barriers - 2
  2009-01-30 10:15 [PATCHES] new barriers - 2 Tomasz Chmielewski
@ 2009-01-30 17:04 ` Mike Snitzer
  2009-04-17 14:26   ` Ric Wheeler
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Snitzer @ 2009-01-30 17:04 UTC (permalink / raw)
  To: device-mapper development; +Cc: linux-raid

On Fri, Jan 30, 2009 at 5:15 AM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
>> Here I announce 2nd version my new barrier support patches:
>> http://people.redhat.com/mpatocka/patches/kernel/barriers/
>>
>> They are against 2.6.29-rc3.
>>
>> The most important enhancement is that with these patches, device mapper
>> is able to send barrier requests to lower devices.
>
> I guess it still won't work for those using LVM on md (Linux software RAID)
> because md lacks barrier support? Do you know if someone is working on it?

md raid1 has supported barriers since 2.6.17

But I'm not aware of any md work being done to support barriers in
other raid levels.  Judging by Neil Brown's thoughts on the matter
(from 2006) it would seem unlikely he is putting effort to it, please
see the following thread:
http://marc.info/?l=linux-raid&m=115321319003578&w=2
http://marc.info/?l=linux-raid&m=115335249503450&w=2

cc'ing linux-raid to see if others have more insight.

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

* Re: [PATCHES] new barriers - 2
  2009-01-30 17:04 ` [dm-devel] " Mike Snitzer
@ 2009-04-17 14:26   ` Ric Wheeler
  0 siblings, 0 replies; 4+ messages in thread
From: Ric Wheeler @ 2009-04-17 14:26 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: linux-raid, device-mapper development, Jens Axboe

Mike Snitzer wrote:
> On Fri, Jan 30, 2009 at 5:15 AM, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
>   
>>> Here I announce 2nd version my new barrier support patches:
>>> http://people.redhat.com/mpatocka/patches/kernel/barriers/
>>>
>>> They are against 2.6.29-rc3.
>>>
>>> The most important enhancement is that with these patches, device mapper
>>> is able to send barrier requests to lower devices.
>>>       
>> I guess it still won't work for those using LVM on md (Linux software RAID)
>> because md lacks barrier support? Do you know if someone is working on it?
>>     
>
> md raid1 has supported barriers since 2.6.17
>
> But I'm not aware of any md work being done to support barriers in
> other raid levels.  Judging by Neil Brown's thoughts on the matter
> (from 2006) it would seem unlikely he is putting effort to it, please
> see the following thread:
> http://marc.info/?l=linux-raid&m=115321319003578&w=2
> http://marc.info/?l=linux-raid&m=115335249503450&w=2
>
> cc'ing linux-raid to see if others have more insight
>   

Neil, Hannes,

Is Mike's assumption above still true - no plans/thoughts about doing 
barrier support for RAID5/6 and so on?

At least some things (the null barrier op) are in place now since your 
summary of a couple years back, does this make it easier?

Thanks!

Ric

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

end of thread, other threads:[~2009-04-17 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 10:15 [PATCHES] new barriers - 2 Tomasz Chmielewski
2009-01-30 17:04 ` [dm-devel] " Mike Snitzer
2009-04-17 14:26   ` Ric Wheeler
  -- strict thread matches above, loose matches on Subject: below --
2009-01-29 14:43 Mikulas Patocka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.