iorap: Increase daemon priority

Iorapd is performance-critical service and has to be assigned to
higher-priority cpuset. For now foreground seems to be best fit
cpuset for it.

What's more, iorapd has to place its i/o requests before prefetched app
does so, for this purpose it should be assigned higher ioprio.

Test:
I've prepared a simple script that measures choosen app avg launch time,
before each launch the app is force-killed and caches are dropped.

Avg result of Chrome launch time:
iorapd disabled: 940,5ms
iorapd default: 765,1ms
iorapd foreground: 738,8ms
iorapd ioprio+foregorund: 692ms

I've found out that setting ioprio to be 2 is enough and further
changes doesn't improve launch times.

Signed-off-by: xNombre <kartapolska@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
1 file changed