Commit 72d3706
perf(backend): raise mobile Go memory limit 150MB -> 1GB — undersized limit forced permanent GC thrash (#21470-hf)
The 150MB soft memory limit sat ~3x below the service process's measured
working set (350-620MB while syncing a large community), forcing the Go GC
into permanent maximum-aggression mode. A/B on a Samsung S21FE running the
identical 9-day community sync (~1.7GB ingested, all other #21470 fixes in
place): with the 150MB limit the GC consumed 61% of service CPU and the
process ran at 150-390% CPU; with the limit lifted the same walk ran at
46-127% CPU and GC left the profile's top consumers entirely, at a peak RSS
of 621MB (bounded independently by the hash-first ingest backpressure). 1GB
retains an OOM guard well above the working set without starving the GC.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 8d13821)
(cherry picked from commit ad0e2350b27dbf2dca2c756388295f81e45dc62b)1 parent 1b8531a commit 72d3706
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| |||
0 commit comments