linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000
@ 2012-07-11  7:53 Jes.Sorensen
  2012-07-12  6:40 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Jes.Sorensen @ 2012-07-11  7:53 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid

From: Jes Sorensen <Jes.Sorensen@redhat.com>

We need to set speed_limit_min accordingly, otherwise setting
speed_limit_max below 1000 will have no effect.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 tests/07reshape5intr |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/07reshape5intr b/tests/07reshape5intr
index 6a26bf0..71ef2c7 100644
--- a/tests/07reshape5intr
+++ b/tests/07reshape5intr
@@ -20,6 +20,7 @@ do
 
   mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
   mdadm $md0 --add $dev6
+  echo 20 > /proc/sys/dev/raid/speed_limit_min
   echo 20 > /proc/sys/dev/raid/speed_limit_max
   mdadm --grow $md0 -n $[disks+1]
   check reshape
@@ -27,6 +28,7 @@ do
   mdadm --stop $md0
   mdadm --assemble $md0 $devs $dev6
   check reshape
+  echo 1000 > /proc/sys/dev/raid/speed_limit_min
   echo 2000 > /proc/sys/dev/raid/speed_limit_max
   check wait
   echo check > /sys/block/md0/md/sync_action
-- 
1.7.1


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

* Re: [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000
  2012-07-11  7:53 [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000 Jes.Sorensen
@ 2012-07-12  6:40 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2012-07-12  6:40 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

On Wed, 11 Jul 2012 09:53:06 +0200 Jes.Sorensen@redhat.com wrote:

> From: Jes Sorensen <Jes.Sorensen@redhat.com>
> 
> We need to set speed_limit_min accordingly, otherwise setting
> speed_limit_max below 1000 will have no effect.
> 
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
> ---
>  tests/07reshape5intr |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/tests/07reshape5intr b/tests/07reshape5intr
> index 6a26bf0..71ef2c7 100644
> --- a/tests/07reshape5intr
> +++ b/tests/07reshape5intr
> @@ -20,6 +20,7 @@ do
>  
>    mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
>    mdadm $md0 --add $dev6
> +  echo 20 > /proc/sys/dev/raid/speed_limit_min
>    echo 20 > /proc/sys/dev/raid/speed_limit_max
>    mdadm --grow $md0 -n $[disks+1]
>    check reshape
> @@ -27,6 +28,7 @@ do
>    mdadm --stop $md0
>    mdadm --assemble $md0 $devs $dev6
>    check reshape
> +  echo 1000 > /proc/sys/dev/raid/speed_limit_min
>    echo 2000 > /proc/sys/dev/raid/speed_limit_max
>    check wait
>    echo check > /sys/block/md0/md/sync_action


Applied, thanks.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2012-07-12  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-11  7:53 [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000 Jes.Sorensen
2012-07-12  6:40 ` NeilBrown

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