Re: [Tracker] [PATCH] Quick fix to enable ioprio



Jamie McCracken wrote:
tobutaz gmail com wrote:
Hello,
the attached patch fixes a problem that prevented ioprio support from
being built on my system (an ubuntu edgy). The problem was that
_syscall2 only works in the kernel tree, but is not part of the linux
headers in /usr/include. So I had a look at how it was done in the
schedutils package instead.
Cheers,
Gabriel de Perthuis


thanks have applied

not sure how to check its working on Edgy though? (how can I tell what io priority a preocess is set as?)



try something like this:

sed -n -e "/snip ionice.c/,/snip ionice.c/ p" /usr/src/linux/Documentation/block/ioprio.txt | sed "s/.\+snip ionice.\+//g" > ionice.c

then compile ionice.c, and run it with the argument -p <pid of process to check>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]