From ae7af0d15088bb2d316db1d6a6330290c7dddd3b Mon Sep 17 00:00:00 2001 From: Robert Marianski Date: Thu, 8 Jun 2017 14:30:51 -0400 Subject: [PATCH] Reduce queue buffer size --- tilequeue/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tilequeue/command.py b/tilequeue/command.py index f0abb213..185e2d88 100755 --- a/tilequeue/command.py +++ b/tilequeue/command.py @@ -576,7 +576,8 @@ def tilequeue_process(cfg, peripherals): assert n_simultaneous_query_sets > 0 # reduce queue size when we're rendering metatiles to try and avoid the # geometry waiting to be processed from taking up all the RAM! - default_queue_buffer_size = max(1, 128 >> (2 * (cfg.metatile_size or 0))) + size_sqr = (cfg.metatile_size or 1)**2 + default_queue_buffer_size = max(1, 16 / size_sqr) sql_queue_buffer_size = cfg.sql_queue_buffer_size or \ default_queue_buffer_size proc_queue_buffer_size = cfg.proc_queue_buffer_size or \