Closed palainp closed 4 months ago
With https://github.com/mirage/ocaml-solo5/pull/135 using quick_stat()
is ok now so I removed the last modifications to have it back :)
EDIT: I'll force push the new Dockerfile and hashsum when ocaml-solo5
will be released.
Will be included in #178 .
Sorry I closed while you are reviewing it, I'll add your changes in #178.
@palainp thanks. no worries. :)
Dear devs, This PR wants to update to recent mirage API. In doing so it appears that
Memory.quick_stat()
reports wrong values (I haven't investigated why yet, and maybe it was present before, but now it goes lower than the limits inEDIT: There was a bad computation inmemory_pressure.ml
ocaml-solo5
again):With wrong values, the firewall starts to drop packets (Memory_critical
being returned byMemory_pressure.status()
). So I've replacedMemory.quick_stat()
withMemory.stat()
, but this is at the cost of going through the whole heap andMemory_pressure.status
calls it for each packets. But I'd rather the firewall be slower than unusable :)Going further will need to dive more intoBest,ocaml-solo5/nolibc/malloc.i
as the bug seems to come from there but the code is really hard :'(