lkml.org 
[lkml]   [2011]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectWhy do we use cpu nice priority for ioprio?
It's not clear why the cpu nice value should be mapped to the ioprio
for a task when none is picked.

Internally, at cfq_init_prio_data(), we just set:
ioprio = IOPRIO_NORM;
ioprio_class = IOPRIO_CLASS_BE;
if ioprio_class is IOPRIO_CLASS_NONE.


The problem is that today, SCHED_RR and SCHED_FIFO threads
automatically get bumped up to RT class. This all happens behind the
curtains and the io_class of the thread is still shown as NONE with
sys_ioprio_get(). What's the motivation behind this promotion of
ioprio class?

I'd be happy to send a patch to change the behavior, but I'm curious
why the code promotes based on task nice values today.

Thanks!


\
 
 \ /
  Last update: 2011-03-25 03:41    [W:0.050 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site