toots left a comment (savonet/liquidsoap#748)
> For anyone landing here from search — some concrete numbers for exactly this
> use-case (mp3 playlist → icecast, `playlist` → `crossfade` → `mksafe` →
> `output.icecast(%mp3(bitrate=128))`), measured on liquidsoap 2.3.2 / Debian
> 13 via cgroup `memory.current`/`memory.stat`, not RSS:
>
> scenario total anon heap
> 1 stream, 1 h uptime 556 MB 439 MB
> 2 streams, 13 min 531 MB 448 MB
> 2 streams, 13 min, `OCAMLRUNPARAM=o=40` 205 MB 164 MB
> Two observations that would have answered my own questions:
>
> * The footprint is dominated by the runtime, not per-stream encoding: a
> second stream added ~10–50 MB. If you left ezstream because multiple streams
> were clunky, liquidsoap amortizes well.
> * OCaml's default GC `space_overhead=120` accounts for most of the gap:
> bounding it (here via the `OCAMLRUNPARAM` env var in the systemd unit) cut
> memory 2.7× with no audible effect. This is now officially documented in the
> [memory management guide](https://www.liquidsoap.info/doc-dev/memory.html),
> which postdates this issue — linking it here since this thread ranks well in
> search.
thanks for looking into this! I would advise to check against `2.4.5` as there
were a bunch of important optimizations regarding GC allocated data that went
out with that release. With this version and in `main` too, the script should
allocate much less transient memory.
--
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/748#issuecomment-5269156032
You are receiving this because you commented.
Message ID: <savonet/liquidsoap/issues/748/[email protected]>
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users