Closed GoogleCodeExporter closed 9 years ago
Hi.
I'm not in Italy right now.
Are you willing to provide a patch?
Original comment by g.rodola
on 19 Sep 2012 at 11:58
Ok, today I tried to spend some time on this and here's what I came up with.
It seems I'm able to get IO priority of a process but not to set it.
Not sure what's wrong with it.
Just attaching the patch for now.
Original comment by g.rodola
on 12 Dec 2012 at 5:50
Attachments:
In set_process_io_priority, instead of using handle_from_pid you need to use
handle_from_pid_waccess with PROCESS_SET_INFORMATION.
Original comment by wj32...@gmail.com
on 13 Dec 2012 at 2:20
Thanks, it worked (although I had to use PROCESS_ALL_ACCESS).
Committed in r1555.
Side note: I was able to set 2 (normal), 1 (low) and 0 (very low) but I wasn't
able to use any other value. I noticed PH also provides an "high" value. What
number is that mapped to?
Original comment by g.rodola
on 13 Dec 2012 at 2:41
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r1555 == revision c64779adec4f
Original comment by g.rodola
on 2 Mar 2013 at 12:13
Original comment by g.rodola
on 8 Apr 2013 at 1:21
Original comment by g.rodola
on 11 Apr 2013 at 9:17
Original comment by g.rodola
on 12 Apr 2013 at 6:21
Original issue reported on code.google.com by
Cedric.l...@gmail.com
on 19 Sep 2012 at 8:45