Re: [Tracker] [PATCH] Quick fix to enable ioprio
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: Anders Aagaard <aagaande gmail com>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] [PATCH] Quick fix to enable ioprio
- Date: Mon, 30 Oct 2006 01:39:19 +0000
Anders Aagaard wrote:
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>
will give it a go
surely there must be something in /proc that records the ioprio info for
a process?
--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]