aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin TerAvest <teravest@google.com>2011-03-08 13:45:00 -0500
committerJens Axboe <jaxboe@fusionio.com>2011-03-08 13:45:00 -0500
commitdf457f845e5449be2e7d96668791f789b3770ac7 (patch)
tree5279d8ad1379ab890a90453d5018bb473c90d7d5
parentdf677140281beb608f6748c341af7612f7bfe7a0 (diff)
blk-cgroup: Lower minimum weight from 100 to 10.
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. Signed-off-by: Justin TerAvest <teravest@google.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--Documentation/cgroups/blkio-controller.txt2
-rw-r--r--block/blk-cgroup.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/cgroups/blkio-controller.txt b/Documentation/cgroups/blkio-controller.txt
index d915c16df42c..465351d4cf85 100644
--- a/Documentation/cgroups/blkio-controller.txt
+++ b/Documentation/cgroups/blkio-controller.txt
@@ -140,7 +140,7 @@ Proportional weight policy files
140 - Specifies per cgroup weight. This is default weight of the group 140 - Specifies per cgroup weight. This is default weight of the group
141 on all the devices until and unless overridden by per device rule. 141 on all the devices until and unless overridden by per device rule.
142 (See blkio.weight_device). 142 (See blkio.weight_device).
143 Currently allowed range of weights is from 100 to 1000. 143 Currently allowed range of weights is from 10 to 1000.
144 144
145- blkio.weight_device 145- blkio.weight_device
146 - One can specify per cgroup per device rules using this interface. 146 - One can specify per cgroup per device rules using this interface.
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index ea4861bdd549..57e7234c5ae5 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; }
240 240
241#endif 241#endif
242 242
243#define BLKIO_WEIGHT_MIN 100 243#define BLKIO_WEIGHT_MIN 10
244#define BLKIO_WEIGHT_MAX 1000 244#define BLKIO_WEIGHT_MAX 1000
245#define BLKIO_WEIGHT_DEFAULT 500 245#define BLKIO_WEIGHT_DEFAULT 500
246 246