Repository navigation
Commit 5c9a644
Cap auto worker scaling at 20 processes
`auto` had no ceiling: with the scheduler already bounding the count by
the usable cores, `max(1, $cpuCores)` was no limit at all, so a
128-thread machine got 128 workers. The measurements behind the feature
show where the returns diminish - 8 to 16 workers cut wall time by a
third for 20 % more CPU time, 16 to 32 bought 6 % for 73 % more - and
memory grows with every worker, so stop at AUTO_PROCESSES_LIMIT and say
so in `diagnose`.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRfhXECP8wuY7qyLqRaXk31 parent 5d6ebec commit 5c9a644
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
103 | 118 | | |
104 | 119 | | |
105 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
178 | 188 | | |
179 | 189 | | |
180 | 190 | | |
| |||
0 commit comments