# HG changeset patch # User Matthew Wild # Date 1620402099 -3600 # Node ID 3413fea9e6db2077d3ee4203048df787aa6ca902 # Parent 10bea0941bab232a86dbb302dbd6c166db049954 util.startup: Set more aggressive defaults for GC Testing has demonstrated that the default GC parameters are not sufficient to prevent runaway memory growth when running under Lua 5.2 and Lua 5.3. Setting the GC speed to 500 was tested on Lua versions 5.1->5.4 and did not display unbounded memory growth. diff -r 10bea0941bab -r 3413fea9e6db util/startup.lua --- a/util/startup.lua Fri Apr 30 21:20:14 2021 +0100 +++ b/util/startup.lua Fri May 07 16:41:39 2021 +0100 @@ -12,7 +12,13 @@ local original_logging_config; -local default_gc_params = { mode = "incremental", threshold = 105, speed = 250 }; +local default_gc_params = { + mode = "incremental"; + -- Incremental mode defaults + threshold = 105, speed = 500; + -- Generational mode defaults + minor_threshold = 20, major_threshold = 50; +}; local short_params = { D = "daemonize", F = "no-daemonize" }; local value_params = { config = true };