Commit 23b7802
committed
perf(trtllm): reduce futile loop iterations
The executor_status_looper runs a spin loop, even if there are no active
requests. This makes the service constantly wasting a CPU core.
Make the loop block on receiving requests if there are no running ones
to reduce CPU usage when idle.1 parent ee82a08 commit 23b7802
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
0 commit comments