Skip to content

Commit

Permalink
sched/bmq: Fix nice level mis-behavior
Browse files Browse the repository at this point in the history
This is caused by previous fix code for torvalds#89, new forked tasks doesn't
deboost quickly enough and impact run time of existed tasks with same
priority.

boost/deboost strategy need further adjustment, but rule is: task should
be deboost when renew time slice.
  • Loading branch information
cchalpha committed Nov 18, 2024
1 parent 558fdad commit f6bc0fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched/bmq.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ static inline void sched_update_rq_clock(struct rq *rq) {}

static inline void sched_task_renew(struct task_struct *p, const struct rq *rq)
{
if (rq_switch_time(rq) > sysctl_sched_base_slice)
deboost_task(p);
deboost_task(p);
}

static inline void sched_task_sanity_check(struct task_struct *p, struct rq *rq) {}
Expand Down

0 comments on commit f6bc0fb

Please sign in to comment.