From cbe42edee9c792dc4a5322db8bd4db86ac29eb80 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 3 Jan 2014 07:36:44 +0100 Subject: [PATCH] [RigoDaemon] set the cache policy to EntropyRepositoryCachePolicies.NONE This greatly reduces the memory consumption of RigoDaemon --- rigo/RigoDaemon/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rigo/RigoDaemon/app.py b/rigo/RigoDaemon/app.py index 3f9dcb425..1a76ac4ef 100755 --- a/rigo/RigoDaemon/app.py +++ b/rigo/RigoDaemon/app.py @@ -62,6 +62,12 @@ from entropy.cache import EntropyCacher # update default writeback timeout EntropyCacher.WRITEBACK_TIMEOUT = 120 +# Change the default in-RAM cache policy for repositories in order to +# save a huge amount of RAM. +from entropy.db.cache import EntropyRepositoryCachePolicies +_NONE_POL = EntropyRepositoryCachePolicies.NONE +EntropyRepositoryCachePolicies.DEFAULT_CACHE_POLICY = _NONE_POL + from entropy.const import etpConst, const_convert_to_rawstring, \ initconfig_entropy_constants, const_debug_write, dump_signal, \ const_mkstemp