Use blockio.bandwidth-max, instead of blockio.bandwidth to set i/o limiting
rules, according to the new userspace->kernel interface (io-throttle v8).

In perspective we would like to have also blockio.bandwidth-min and implement a
mechanism to guarantee minimum performance levels as well.

Signed-off-by: Andrea Righi <[EMAIL PROTECTED]>
---
 .../io-throttle/run_io_throttle_test.sh            |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh 
b/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh
index e5e7194..291543e 100755
--- a/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh
+++ b/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh
@@ -55,7 +55,7 @@ for strategy in 0 1; do
                limit=$(($phys_bw * 1024 / `echo 2^$i | bc`))
                IOBW[$i]=$(($limit / 1024))
                /bin/echo $dev:$limit:$strategy:$limit > \
-                       /dev/blockioctl/cgroup-$i/blockio.bandwidth
+                       /dev/blockioctl/cgroup-$i/blockio.bandwidth-max
                if [ $? -ne 0 ]; then
                        echo "ERROR: could not set i/o bandwidth limit for 
cgroup-$i. Exiting test."
                        cleanup
-- 
1.5.4.3


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to