Commit 9b44ae6
committed
sched/fair: use static load in wake_affine_weight
For a long time runnable cpu load has been used in selecting task rq
when waking up tasks. Recent test has shown for test load with a large
quantity of short running tasks and almost full cpu utility, static load
is more helpful.
In our e2e tests, runnable load avg of java threads ranges from less than
10 to as large as 362, while these java threads are no different from
each other, and should be treated in the same way. After using static
load, qps imporvement has been seen in multiple test cases.
A new sched feature WA_STATIC_WEIGHT is introduced here to control. Echo
WA_STATIC_WEIGHT to /sys/kernel/debug/sched_features to turn static load
in wake_affine_weight on and NO_WA_STATIC_WEIGHT to turn it off. This
feature is kept off by default.
Test is done on the following hardware:
4 threads Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
In tests with 120 threads and sql loglevel configured to info:
NO_WA_STATIC_WEIGHT WA_STATIC_WEIGHT
33170.63 34614.95 (+4.35%)
In tests with 160 threads and sql loglevel configured to info:
NO_WA_STATIC_WEIGHT WA_STATIC_WEIGHT
35888.71 38247.20 (+6.57%)
In tests with 160 threads and sql loglevel configured to warn:
NO_WA_STATIC_WEIGHT WA_STATIC_WEIGHT
39118.72 39698.72 (+1.48%)
Signed-off-by: Huaixin Chang <changhuaixin@linux.alibaba.com>
Acked-by: Shanpei Chen <shanpeic@linux.alibaba.com>1 parent e864d02 commit 9b44ae6
2 files changed
+69
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| |||
5645 | 5646 | | |
5646 | 5647 | | |
5647 | 5648 | | |
5648 | | - | |
| 5649 | + | |
| 5650 | + | |
| 5651 | + | |
| 5652 | + | |
| 5653 | + | |
5649 | 5654 | | |
5650 | 5655 | | |
5651 | | - | |
| 5656 | + | |
| 5657 | + | |
| 5658 | + | |
| 5659 | + | |
| 5660 | + | |
| 5661 | + | |
5652 | 5662 | | |
5653 | 5663 | | |
5654 | 5664 | | |
5655 | 5665 | | |
5656 | 5666 | | |
5657 | 5667 | | |
5658 | 5668 | | |
5659 | | - | |
| 5669 | + | |
| 5670 | + | |
| 5671 | + | |
| 5672 | + | |
5660 | 5673 | | |
5661 | 5674 | | |
5662 | 5675 | | |
5663 | 5676 | | |
5664 | 5677 | | |
5665 | 5678 | | |
5666 | | - | |
| 5679 | + | |
| 5680 | + | |
| 5681 | + | |
| 5682 | + | |
| 5683 | + | |
5667 | 5684 | | |
5668 | 5685 | | |
5669 | 5686 | | |
| |||
7498 | 7515 | | |
7499 | 7516 | | |
7500 | 7517 | | |
| 7518 | + | |
| 7519 | + | |
| 7520 | + | |
| 7521 | + | |
| 7522 | + | |
| 7523 | + | |
| 7524 | + | |
| 7525 | + | |
| 7526 | + | |
| 7527 | + | |
| 7528 | + | |
| 7529 | + | |
| 7530 | + | |
| 7531 | + | |
| 7532 | + | |
| 7533 | + | |
| 7534 | + | |
| 7535 | + | |
| 7536 | + | |
| 7537 | + | |
| 7538 | + | |
| 7539 | + | |
| 7540 | + | |
| 7541 | + | |
| 7542 | + | |
| 7543 | + | |
| 7544 | + | |
| 7545 | + | |
| 7546 | + | |
| 7547 | + | |
| 7548 | + | |
| 7549 | + | |
| 7550 | + | |
| 7551 | + | |
| 7552 | + | |
| 7553 | + | |
| 7554 | + | |
| 7555 | + | |
| 7556 | + | |
| 7557 | + | |
| 7558 | + | |
| 7559 | + | |
7501 | 7560 | | |
7502 | 7561 | | |
7503 | 7562 | | |
| |||
7526 | 7585 | | |
7527 | 7586 | | |
7528 | 7587 | | |
| 7588 | + | |
| 7589 | + | |
| 7590 | + | |
| 7591 | + | |
| 7592 | + | |
7529 | 7593 | | |
7530 | 7594 | | |
7531 | 7595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments