Commit df94d6d
abstract: reduced increased CPU consumption
Due to the fact that queue_state_fiber called box.ctrl.wait_r*
every millisecond, the idle queue consumed more than 10% of CPU.
The proposed solution makes calls to box.ctrl.wait_r* blocking
until the read/write mode is changed. As a result, in idle mode,
the queue_state_faber is in the suspended state, while the main
fiber (for example, interactive in interactive-mode) is in the
running state.
Thus, CPU consumption is reduced to about ~1%.
More detailed measurements are described in [1].
1. #192
Closes #1831 parent 462d2ba commit df94d6d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments