Limits: Space_Overhead Tuning for Low‑Traffic OCaml 5 Services
The goal is to lower the cloud bill for a native‑compiled OCaml service that receives only a handful of requests per hour. The primary knob is Gc.set ’s space_overhead parameter, which controls how aggressively the major GC runs: a higher value means fewer collections but a larger heap, while a lower value forces more frequent collections and a smaller heap.