]> xenbits.xensource.com Git - xen.git/commit
tools/ocaml: GC parameter tuning
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:07 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 15:25:15 +0000 (15:25 +0000)
commitbc93157f7b3b571b44bce0ecf7328c82c7aca78b
treeb7ac3d158820be8d3ea0810e34ee7778955bf444
parentc084ee8e5834a33fba8e03fe9bcd1e1ebe03b09d
tools/ocaml: GC parameter tuning

By default the OCaml garbage collector would return memory to the OS only
after unused memory is 5x live memory.  Tweak this to 120% instead, which
would match the major GC speed.

This is part of XSA-326.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit 4a8bacff20b857ca0d628ef5525877ade11f2a42)
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/xenstored.ml