Re: [RFC][PATCH] per-task I/O throttling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Righi
Date: Friday, January 11, 2008 - 3:28 am

Bill Davidsen wrote:

At the moment I'm simply using it to backup my PC by this wrapper:

$ cat iothrottle
#!/bin/sh
[ $# -lt 2 ] && echo "usage: $0 RATE CMD" && exit 1
rate=$1
shift
$* &
trap "kill -9 $!" SIGINT SIGTERM
[ -e /proc/$!/io_throttle ] && echo $rate >/proc/$!/io_throttle
wait %1
$ ./iothrottle 100 tar ...

But I totally agree with you that setting the limits per-UID/per-GID,
instead of per-task, would be actually more useful.

Maybe a nice approach would be to define the UID/GID upper bounds via
configfs (for example) and allow the users to tune the max I/O rate of
their single tasks according to the defined ranges. In this way it could
be even possible to define I/O shaping policies, i.e. give a bandwidth
of 10MB/s to user A, 20MB/s to user B, 30MB/s to group X, etc.

Anyway, I'm wondering if it's possible (and how) to already do this with
process containers...

-Andrea
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] per-task I/O throttling, Andrea Righi, (Thu Jan 10, 3:45 pm)
Re: [RFC][PATCH] per-task I/O throttling, Bill Davidsen, (Thu Jan 10, 6:50 pm)
Re: [RFC][PATCH] per-task I/O throttling, Andrea Righi, (Fri Jan 11, 3:28 am)
Re: [RFC][PATCH] per-task I/O throttling, David Newall, (Fri Jan 11, 7:05 am)
Re: [RFC][PATCH] per-task I/O throttling, Peter Zijlstra, (Fri Jan 11, 7:20 am)
Re: [RFC][PATCH] per-task I/O throttling, Andrea Righi, (Fri Jan 11, 8:29 am)
Re: [RFC][PATCH] per-task I/O throttling, Andrea Righi, (Fri Jan 11, 8:44 am)
Re: [RFC][PATCH] per-task I/O throttling, Balbir Singh, (Fri Jan 11, 8:59 am)
Re: [RFC][PATCH] per-task I/O throttling, Andrea Righi, (Fri Jan 11, 9:32 am)
Re: [RFC][PATCH] per-task I/O throttling, Valdis.Kletnieks, (Fri Jan 11, 9:57 pm)
Re: [RFC][PATCH] per-task I/O throttling, Peter Zijlstra, (Sat Jan 12, 2:46 am)
Re: [RFC][PATCH] per-task I/O throttling, Balbir Singh, (Sat Jan 12, 3:57 am)
Re: [RFC][PATCH] per-task I/O throttling, Peter Zijlstra, (Sat Jan 12, 4:10 am)
Re: [RFC][PATCH] per-task I/O throttling, Andrea Righi, (Sat Jan 12, 11:01 am)
Re: [RFC][PATCH] per-task I/O throttling, Balbir Singh, (Sat Jan 12, 9:46 pm)
Re: [RFC][PATCH] per-task I/O throttling, David Newall, (Wed Jan 16, 12:21 pm)