On Mon, 2008-08-04 at 15:08 +0200, Andrea Righi wrote:
> It is surely better to support the old blockio.bandwidth and the new
> blockio.bandwidth-max interface for now. So, just ignore the previous patch.
Ignored.
>
> -Andrea
> ---
> Support both blockio.bandwidth and the new interface blockio.bandwidth-max, 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]>
And this one applied.
Regards--
Subrata
> ---
> .../io-throttle/run_io_throttle_test.sh | 11 ++++++++++-
> 1 files changed, 10 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..3a2fbb7 100755
> --- a/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh
> +++ b/testcases/kernel/controllers/io-throttle/run_io_throttle_test.sh
> @@ -51,11 +51,20 @@ done
> for tasks in 1 2 4; do
> for strategy in 0 1; do
> # set bw limiting rules
> + if [ -f /dev/blockioctl/blockio.bandwidth ]; then
> + io_throttle_file=blockio.bandwidth
> + elif [ -f /dev/blockioctl/blockio.bandwidth-max ]; then
> + io_throttle_file=blockio.bandwidth-max
> + else
> + echo "ERROR: unknown kernel ABI. Exiting test."
> + cleanup
> + exit 1
> + fi
> for i in `seq 1 3`; 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/${io_throttle_file}
> if [ $? -ne 0 ]; then
> echo "ERROR: could not set i/o bandwidth limit for
> cgroup-$i. Exiting test."
> cleanup
-------------------------------------------------------------------------
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