Skip to contentSkip to conversation

sched: rsdl improve latencies with differential nice -1

PATCH Al Boldi 2 participants 2 messages Mar 13, 2007

lore
Share & tools
lore

Al Boldi

author
#0 lore raw
Quoted 14 lines · Con Kolivas
Quoted 13 lines · Con Kolivas
Quoted 11 lines · Con Kolivas
Quoted 2 lines · Al Boldi

I think, it should be possible to spread this max expiration latency across the rotation, should it not?

Can you try the attached patch please Al and Mike? It "dithers" the priority bitmap which tends to fluctuate the latency a lot more but in a cyclical fashion. This tends to make the max latency bound to a smaller value and should make it possible to run -nice tasks without killing the latency of the non niced tasks. Eg you could possibly run X nice -10 at a guess like we used to in 2.4 days. It's not essential of course, but is a workaround for Mike's testcase.

Quoted 5 lines
Quoted 1 line

Oops, one tiny fix. This is a respin of the patch, sorry.

A few other minor things would need to be updated before this patch is in a good enough shape to join the rsdl patches. This one will be good for testing though.

Applied against v0.30 mainline. It only works on prio +16 to +19.

Thanks!

--
Al

#1 lore raw
Quoted 15 lines · Al Boldi
Quoted 14 lines · Con Kolivas
Quoted 13 lines · Con Kolivas
Quoted 11 lines · Con Kolivas
Quoted 2 lines · Al Boldi

I think, it should be possible to spread this max expiration latency across the rotation, should it not?

Can you try the attached patch please Al and Mike? It "dithers" the priority bitmap which tends to fluctuate the latency a lot more but in a cyclical fashion. This tends to make the max latency bound to a smaller value and should make it possible to run -nice tasks without killing the latency of the non niced tasks. Eg you could possibly run X nice -10 at a guess like we used to in 2.4 days. It's not essential of course, but is a workaround for Mike's testcase.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Oops, one tiny fix. This is a respin of the patch, sorry.

A few other minor things would need to be updated before this patch is in a good enough shape to join the rsdl patches. This one will be good for testing though.

Applied against v0.30 mainline. It only works on prio +16 to +19.

I guess the "other minor things" will matter then :) I'll keep working. At least you know what I'm working on now.

Signature · 1 line
-ck