Commit 64cd996
committed
perf(memtrack): drain ringbuf bursts eagerly and reserve poller cores
Two consumer-side fixes for event drops under allocation bursts:
- After each poll() the poller keeps calling consume_raw() until the
ring buffer reads empty, draining bursts without paying an epoll
wakeup round-trip per poll cycle.
- The encode pipeline no longer claims every core: rayon workers on all
cores starve the poll thread (and the tracked command), which is what
let the ring buffer fill up. Reserve two cores.
Refs COD-30711 parent 4da30e9 commit 64cd996
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
0 commit comments