config: set core.bigFileThreshold based on memory size
commit2dcaa7db03284768ecfe20c23f825709c674fd09
authorKyle J. McKay <mackyle@gmail.com>
Thu, 31 Mar 2016 01:55:06 +0000 (30 18:55 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 31 Mar 2016 01:55:06 +0000 (30 18:55 -0700)
tree3edc5eaf08f9064f486873573d68ffc8568a8340
parentb76fbb89ab8e3064b3446657ca08654496808dd9
config: set core.bigFileThreshold based on memory size

The default value of core.bigFileThreshold (512 MiB) is
unsuitable for low memory systems (e.g. a 512 MiB system).

Instead calculate a value to use based on the actual
memory size of the machine and allow it to be curtailed
with a new $Girocco::Config::max_gc_big_file_threshold_size
configuration option that is off by default.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Config.pm
Girocco/Util.pm
shlib.sh