Linux Device Mapper development
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <heinzm@redhat.com>
To: dm-devel@redhat.com
Subject: Re: raid1 round-robin scheduler
Date: Wed, 11 Mar 2015 11:55:52 +0100	[thread overview]
Message-ID: <55001F38.7060103@redhat.com> (raw)
In-Reply-To: <54FFED3A.10507@clodo.ru>


On 03/11/2015 08:22 AM, konstantin wrote:
>
> 10.03.2015 17:22, Heinz Mauelshagen wrote:
>>
>> On 03/10/2015 12:55 PM, konstantin wrote:
>>>
>>>
>>> 19.02.2015 18:02, Heinz Mauelshagen пишет:
>>>>
>>>>
>>>> dm-mirror (i.e. "lvcreate --type mirror" or respective "dmsetup create
>>>> --table ...",
>>>> which is not the recommended raid1 layout any more) provides read
>>>> round-robin since long time.
>>>> You'd need an ancient kernel not to have it supported.
>>>>
>>>> "raid1"/"raid10" (the recommended targets) , i.e. the md-raid based
>>>> mappings accessible via the dm-raid target
>>>> do read optimizations as well. Use "lvcreate --type raid1/raid10 
>>>> ..." or
>>>> a respective dm table to set
>>>> those up. The former ("raid1") is the default in modern distributions
>>>> and configurable via setting
>>>> 'mirror_segtype_default = "raid1"' in /etc/lvm/lvm.conf.
>>>>
>>>> Heinz
>>>>
>>>>
>>>>
>>>>
>>>> On 02/19/2015 08:23 AM, konstantin wrote:
>>>>> What version of the kernel should I use to get a round-robin read
>>>>> implementation on LV raid1?
>>>>>
>>>>
>>>> -- 
>>>> dm-devel mailing list
>>>> dm-devel@redhat.com
>>>> https://www.redhat.com/mailman/listinfo/dm-devel
>>>
>>> I'm create raid1 lv with "lvcreate --type raid1 -m1 -L5G -n r1lv r1vg"
>>> on vg with two physical devices:
>>>
>>> lvs -a -o +devices
>>>   LV              VG   Attr     LSize Pool Origin Data%  Move Log
>>> Copy%  Convert Devices
>>>   r1lv            r1vg rwi-a-m- 5.00g 100.00
>>> r1lv_rimage_0(0),r1lv_rimage_1(0)
>>>   [r1lv_rimage_0] r1vg iwi-aor- 5.00g           /dev/sda(1)
>>>   [r1lv_rimage_1] r1vg iwi-aor- 5.00g           /dev/sdb(1)
>>>   [r1lv_rmeta_0]  r1vg ewi-aor- 4.00m           /dev/sda(0)
>>>   [r1lv_rmeta_1]  r1vg ewi-aor- 4.00m           /dev/sdb(0)
>>>
>>> but, reading is only one of the devices (i see nmon live disk
>>> utilization). There are solutions to ensure reading from the two 
>>> devices?
>>>
>>
>> How do you test?
>> Do you read from multiple threads?
>>
>>
>>
>> -- 
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
>
> really .. I used dd to test in one thread,

That's what I assumed.

> but why when I read in one thread I can not read from two PV devices 
> at the same time?
>

Your dd example causes streaming io which is what spindles can handle best.
Thus it would not make sense to split ios up.
For such kind of single-threaded streaming io with sensefull block size
a striped mapping would do better.

Try running dd/fio/... multiple times in parallel and you should see the 
expected effect.


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

  reply	other threads:[~2015-03-11 10:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19  7:23 raid1 round-robin scheduler konstantin
2015-02-19 15:02 ` Heinz Mauelshagen
2015-03-10 11:55   ` konstantin
2015-03-10 14:22     ` Heinz Mauelshagen
2015-03-11  7:22       ` konstantin
2015-03-11 10:55         ` Heinz Mauelshagen [this message]
2015-03-11 12:44           ` konstantin
  -- strict thread matches above, loose matches on Subject: below --
2014-12-05 12:25 Vasiliy Tolstov
2014-12-05 12:38 ` Vasiliy Tolstov
2014-12-05 13:02   ` Bryn M. Reeves
2014-12-05 13:06     ` Zdenek Kabelac
2014-12-05 13:10       ` Vasiliy Tolstov
2014-12-05 13:08     ` Vasiliy Tolstov
2014-12-05 14:34       ` Bryn M. Reeves
2014-12-05 22:10         ` Vasiliy Tolstov
2014-12-08 12:23           ` Bryn M. Reeves

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=55001F38.7060103@redhat.com \
    --to=heinzm@redhat.com \
    --cc=dm-devel@redhat.com \
    /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