All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] DM RAID: Add ability to throttle sync operations for RAID LVs.
Date: Fri, 31 May 2013 09:36:25 +0200	[thread overview]
Message-ID: <51A852F9.2080208@redhat.com> (raw)
In-Reply-To: <1369948507.8964.3.camel@f16>

Dne 30.5.2013 23:15, Jonathan Brassow napsal(a):
> Please take a look at the following patch that adds throttling for RAID
> sync operations.  Any feedback on what the 'lvs' header should look like
> when reporting the min/max recovery rate would be helpful also.  (Right
> now it is MinSync and MaxSync.)
>
>   brassow
>
>
> This patch adds the ability to set the minimum and maximum I/O rate for
> sync operations in RAID LVs.  The options are available for 'lvcreate' and
> 'lvchange' and are as follows:
>    --minrecoveryrate <Rate>
>    --maxrecoveryrate <Rate>
> The rate is specified in kiB/sec/disk.  Setting the rate to 0 removes the
> preference.
>

Patch seems to be missing  libdm API extension to set min/max rates.

Maybe the argument for min/max should be specified in 'size' units/second.
So you could easily say   1M   - just like with other args where we give size.


> +.RB [ \-\-maxrecoveryrate " " \fIRate\fP ]
> +.RB [ \-\-minrecoveryrate " " \fIRate\fP ]

.RB [ \-\-minrecoveryrate
.IB Rate ]

is a bit better - since you give roff a change to insert spaces more evenly.


> --- lvm2.orig/man/lvcreate.8.in
> +++ lvm2/man/lvcreate.8.in
> @@ -19,6 +19,8 @@ lvcreate \- create a logical volume in a
>   .RB [ \-\-ignoremonitoring ]
>   .RB [ \-\-monitor
>   .RI { y | n }]
> +.RB [ \-\-maxrecoveryrate " " \fIRate\fP ]
> +.RB [ \-\-minrecoveryrate " " \fIRate\fP ]

- " -



> +arg(minrecoveryrate_ARG, '\0', "minrecoveryrate", int_arg, 0)
> +arg(maxrecoveryrate_ARG, '\0', "maxrecoveryrate", int_arg, 0)

I'd vote for 'size_arg'


Zdenek



  reply	other threads:[~2013-05-31  7:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 21:15 [PATCH] DM RAID: Add ability to throttle sync operations for RAID LVs Jonathan Brassow
2013-05-31  7:36 ` Zdenek Kabelac [this message]
2013-05-31 14:36   ` Brassow Jonathan

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=51A852F9.2080208@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=lvm-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 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.