[RigoDaemon] set the cache policy to EntropyRepositoryCachePolicies.NONE

This greatly reduces the memory consumption of RigoDaemon
This commit is contained in:
Fabio Erculiani
2014-01-03 07:36:44 +01:00
parent 338b3f6cc5
commit cbe42edee9

View File

@@ -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