* [PATCH] blk-cgroup: Lower minimum weight from 100 to 10.
@ 2011-03-07 22:53 Justin TerAvest
2011-03-08 14:31 ` Vivek Goyal
2011-03-08 14:36 ` Jens Axboe
0 siblings, 2 replies; 4+ messages in thread
From: Justin TerAvest @ 2011-03-07 22:53 UTC (permalink / raw)
To: vgoyal, jaxboe; +Cc: ctalbott, guijianfeng, linux-kernel, Justin TerAvest
We've found that we still get good, useful isolation at weights this
low. I'd like to adjust the minimum so that any other changes can take
these values into account.
---
Documentation/cgroups/blkio-controller.txt | 2 +-
block/blk-cgroup.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/cgroups/blkio-controller.txt b/Documentation/cgroups/blkio-controller.txt
index 4ed7b5c..24314fd 100644
--- a/Documentation/cgroups/blkio-controller.txt
+++ b/Documentation/cgroups/blkio-controller.txt
@@ -140,7 +140,7 @@ Proportional weight policy files
- Specifies per cgroup weight. This is default weight of the group
on all the devices until and unless overridden by per device rule.
(See blkio.weight_device).
- Currently allowed range of weights is from 100 to 1000.
+ Currently allowed range of weights is from 10 to 1000.
- blkio.weight_device
- One can specify per cgroup per device rules using this interface.
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index ea4861b..57e7234 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -240,7 +240,7 @@ static inline char *blkg_path(struct blkio_group *blkg) { return NULL; }
#endif
-#define BLKIO_WEIGHT_MIN 100
+#define BLKIO_WEIGHT_MIN 10
#define BLKIO_WEIGHT_MAX 1000
#define BLKIO_WEIGHT_DEFAULT 500
--
1.7.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-cgroup: Lower minimum weight from 100 to 10.
2011-03-07 22:53 [PATCH] blk-cgroup: Lower minimum weight from 100 to 10 Justin TerAvest
@ 2011-03-08 14:31 ` Vivek Goyal
2011-03-08 14:36 ` Jens Axboe
1 sibling, 0 replies; 4+ messages in thread
From: Vivek Goyal @ 2011-03-08 14:31 UTC (permalink / raw)
To: Justin TerAvest; +Cc: jaxboe, ctalbott, guijianfeng, linux-kernel
On Mon, Mar 07, 2011 at 02:53:14PM -0800, Justin TerAvest wrote:
> We've found that we still get good, useful isolation at weights this
> low. I'd like to adjust the minimum so that any other changes can take
> these values into account.
> ---
> Documentation/cgroups/blkio-controller.txt | 2 +-
> block/blk-cgroup.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
Looks good to me.
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Thanks
Vivek
> diff --git a/Documentation/cgroups/blkio-controller.txt b/Documentation/cgroups/blkio-controller.txt
> index 4ed7b5c..24314fd 100644
> --- a/Documentation/cgroups/blkio-controller.txt
> +++ b/Documentation/cgroups/blkio-controller.txt
> @@ -140,7 +140,7 @@ Proportional weight policy files
> - Specifies per cgroup weight. This is default weight of the group
> on all the devices until and unless overridden by per device rule.
> (See blkio.weight_device).
> - Currently allowed range of weights is from 100 to 1000.
> + Currently allowed range of weights is from 10 to 1000.
>
> - blkio.weight_device
> - One can specify per cgroup per device rules using this interface.
> diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
> index ea4861b..57e7234 100644
> --- a/block/blk-cgroup.h
> +++ b/block/blk-cgroup.h
> @@ -240,7 +240,7 @@ static inline char *blkg_path(struct blkio_group *blkg) { return NULL; }
>
> #endif
>
> -#define BLKIO_WEIGHT_MIN 100
> +#define BLKIO_WEIGHT_MIN 10
> #define BLKIO_WEIGHT_MAX 1000
> #define BLKIO_WEIGHT_DEFAULT 500
>
> --
> 1.7.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-cgroup: Lower minimum weight from 100 to 10.
2011-03-07 22:53 [PATCH] blk-cgroup: Lower minimum weight from 100 to 10 Justin TerAvest
2011-03-08 14:31 ` Vivek Goyal
@ 2011-03-08 14:36 ` Jens Axboe
2011-03-08 15:03 ` Vivek Goyal
1 sibling, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2011-03-08 14:36 UTC (permalink / raw)
To: Justin TerAvest
Cc: vgoyal@redhat.com, ctalbott@google.com,
guijianfeng@cn.fujitsu.com, linux-kernel@vger.kernel.org
On 2011-03-07 23:53, Justin TerAvest wrote:
> We've found that we still get good, useful isolation at weights this
> low. I'd like to adjust the minimum so that any other changes can take
> these values into account.
Justin, this looks fine to me if Vivek agrees. You did not sign-off on
the patch though, so I can't apply it yet. Please re-send with the ack
from Vivek added and your signed-off-by as well.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-cgroup: Lower minimum weight from 100 to 10.
2011-03-08 14:36 ` Jens Axboe
@ 2011-03-08 15:03 ` Vivek Goyal
0 siblings, 0 replies; 4+ messages in thread
From: Vivek Goyal @ 2011-03-08 15:03 UTC (permalink / raw)
To: Jens Axboe
Cc: Justin TerAvest, ctalbott@google.com, guijianfeng@cn.fujitsu.com,
linux-kernel@vger.kernel.org
On Tue, Mar 08, 2011 at 03:36:55PM +0100, Jens Axboe wrote:
> On 2011-03-07 23:53, Justin TerAvest wrote:
> > We've found that we still get good, useful isolation at weights this
> > low. I'd like to adjust the minimum so that any other changes can take
> > these values into account.
>
> Justin, this looks fine to me if Vivek agrees. You did not sign-off on
> the patch though, so I can't apply it yet. Please re-send with the ack
> from Vivek added and your signed-off-by as well.
The primary reason I am fine with wider weight range because there are
many situations where we just don't get effective 10 times service
differentiation for various reasons like workload don't seem to be
active at the service tree at the same time or if we decide to swith
off idling on faster storage etc.
So because of this leaky nature of service differentiation, it might help to
have a wider range of allowed weights.
Thanks
Vivek
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-08 15:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 22:53 [PATCH] blk-cgroup: Lower minimum weight from 100 to 10 Justin TerAvest
2011-03-08 14:31 ` Vivek Goyal
2011-03-08 14:36 ` Jens Axboe
2011-03-08 15:03 ` Vivek Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox