Package: icecc
Version: 1.0.1-2+b2
Severity: wishlist
Tags: patch
Dear Maintainer,
The cache limit of icecc daemon cannot be configured via icecc.conf. I
would like to increase the 100MB default limit
value because I have more build environments which should be cached
simultaneously and they together consume more than
the default limit.
Here is a discussion about the default limit and there is a suggestion
to turn to the package maintainer to support the
new config option.
https://github.com/icecc/icecream/issues/276#issuecomment-316190449
Best regards,
Imre Tarjanyi
-- System Information:
Debian Release: 9.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-7-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages icecc depends on:
ii adduser 3.115
ii clang-6.0 [c-compiler] 1:6.0-1~bpo9+1
ii file 1:5.30-1+deb9u2
ii g++ [c++-compiler] 4:6.3.0-4
ii g++-6 [c++-compiler] 6.3.0-18+deb9u1
ii gcc [c-compiler] 4:6.3.0-4
ii gcc-6 [c-compiler] 6.3.0-18+deb9u1
ii libc6 2.24-11+deb9u3
ii libgcc1 1:6.3.0-18+deb9u1
ii libstdc++6 6.3.0-18+deb9u1
ii lsb-base 9.20161125
Versions of packages icecc recommends:
ii logrotate 3.11.0-0.1
Versions of packages icecc suggests:
pn icecc-monitor <none>
-- no debconf information
commit 2efc85cbc04d7fa18d25070b28e57a089b198efb
Author: Imre Tarjanyi <[email protected]>
Date: Fri Jan 11 15:52:57 2019 +0000
Add config option to set cache limit of the icecc daemon
diff --git a/debian/icecc.conf b/debian/icecc.conf
index fc63781..3c88ca1 100644
--- a/debian/icecc.conf
+++ b/debian/icecc.conf
@@ -55,3 +55,9 @@ ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler.log"
#
# ICECC_SCHEDULER_HOST=""
ICECC_SCHEDULER_HOST=""
+
+#
+# Option to set cache limit of icecc daemon in MB.
+#
+# ICECC_CACHE_LIMIT=""
+ICECC_CACHE_LIMIT=""
diff --git a/debian/icecc.iceccd.init b/debian/icecc.iceccd.init
index 238737a..0a21557 100644
--- a/debian/icecc.iceccd.init
+++ b/debian/icecc.iceccd.init
@@ -57,9 +57,13 @@ start_icecc_daemon() {
maxjobs="-m $ICECC_MAX_JOBS"
fi
fi
+ cachelimit=
+ if test -n "$ICECC_CACHE_LIMIT"; then
+ cachelimit="--cache-limit $ICECC_CACHE_LIMIT"
+ fi
start-stop-daemon --start --quiet --exec $DAEMON -- \
- -d $logfile $nice $scheduler $netname -u icecc $basedir $maxjobs $noremote
+ -d $logfile $nice $scheduler $netname -u icecc $basedir $maxjobs $noremote $cachelimit
}
stop_icecc_daemon() {