Commit 74eec63
sched/fair: Fix NO_RUN_TO_PARITY case
EEVDF expects the scheduler to allocate a time quantum to the selected
entity and then pick a new entity for next quantum.
Although this notion of time quantum is not strictly doable in our case,
we can ensure a minimum runtime for each task most of the time and pick a
new entity after a minimum time has elapsed.
Reuse the slice protection of run to parity to ensure such runtime
quantum.
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250708165630.1948751-3-vincent.guittot@linaro.org1 parent 9cdb4fe commit 74eec63
2 files changed
Lines changed: 29 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
587 | 595 | | |
588 | 596 | | |
589 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
886 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
887 | 890 | | |
888 | 891 | | |
889 | 892 | | |
890 | | - | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
891 | 903 | | |
892 | 904 | | |
893 | 905 | | |
894 | 906 | | |
895 | | - | |
| 907 | + | |
896 | 908 | | |
897 | 909 | | |
898 | 910 | | |
899 | 911 | | |
900 | 912 | | |
901 | | - | |
| 913 | + | |
902 | 914 | | |
903 | 915 | | |
904 | 916 | | |
| |||
937 | 949 | | |
938 | 950 | | |
939 | 951 | | |
940 | | - | |
| 952 | + | |
941 | 953 | | |
942 | 954 | | |
943 | 955 | | |
| |||
1156 | 1168 | | |
1157 | 1169 | | |
1158 | 1170 | | |
1159 | | - | |
| 1171 | + | |
1160 | 1172 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | 1173 | | |
1165 | 1174 | | |
1166 | 1175 | | |
| |||
1248 | 1257 | | |
1249 | 1258 | | |
1250 | 1259 | | |
1251 | | - | |
| 1260 | + | |
1252 | 1261 | | |
1253 | 1262 | | |
1254 | 1263 | | |
| |||
0 commit comments