[mythtv-users] Can you "nice" an I/O process

Steven Adeff adeffs.mythtv at gmail.com
Sun Apr 9 17:15:49 UTC 2006


On 4/9/06, Osma Ahvenlampi <oa at iki.fi> wrote:
> On pe, 2006-04-07 at 14:03 -0600, Brian Wood wrote:
> > I know how you can "nice" a process to control its use of CPU
> > resources. What I am wondering is if there is a similar function with
> > I/O, specifically disk reads/writes ?
>
> Since Linux 2.6.12 or so, yes, you CAN set a "nice" value to a process's
> I/O, and you can even do this independently from its CPU "nice" value
> (in effect allowing something to use a lot of CPU and only idle disk
> bandwidth, or vice versa - great for transcoding and recording, in
> fact).
>
> However, this is relatively early in the life of that functionality, and
> it's difficult to utilise. Nice'd processes automatically have their
> ioprio adjusted as well, but changing it otherwise you must have root
> privileges - it's not even possible for a user process to set itself to
> the idle class.
>
> http://www.linux-m32r.org/lxr/http/source/Documentation/block/ioprio.txt

perhaps a better method for Myth would be to add options to
mythcommflag and mythtranscode that would let the user cap the bitrate
at which they operate with a flag?

--
Steve


More information about the mythtv-users mailing list