ccache does not honour my desired max cache size Reproducible: Always Steps to Reproduce: 1. emerge ccache 2. ccache -M 5G 3. ccache -s Actual Results: ccache -s always reports 2G max size Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2. 6.7-gentoo-r12) ================================================================= System uname: 2.6.7-gentoo-r12 x86_64 4 Gentoo Base System version 1.5.2 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon64 -fweb -ftracer -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/bind:/usr/X11R6/lib/X11/xkb:/usr/kde/3.2/share/config:/usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/gconf:/etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -fweb -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/ Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/ibm /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aim alsa amd64 apm avi bzlib cdr crypt dvd emacs encode esd foomaticdb gcj gd gdbm gif gpm gtk gtk2 icq imagemagick imap imlib imlib2 ipv6 jabber java javacomm javadoc javamail jce jdepend jikes jpeg junit kerberos krb4 libwww log4j mad makecheck md5sum mikmod mime mpeg mplayer msn multilib ncurses network nntp oggvorbis opengl pam pcre pdflib perl png python quicktime readline regexp rtc sdl spell ssl tcltk tcpd tiff truetype usb xalan xerces xml xml2 xmms xpm xv xvid yahoo zlib"
Just clarifying, but ccache -M 5GB does return correctly? Also, what version...
% emerge -pv ccache [ebuild R ] dev-util/ccache-2.3 0 kB % ccache -M 5G Set cache size limit to 5242880k % ccache -s cache hit 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 2.0 Gbytes
You may have to add it to your env or your make.conf. I believe portage resets it to 2G unless it's told otherwise. Try adding this line to /etc/make.conf: CCACHE_SIZE="5G"
did you even try this yourself? i have tried CCACHE_SIZE="5G" and CCACHE_SIZE="5GB" in make.conf, neither will report properly with ccache -s
i also find it interesting that emerge --info does not list CCACHE_SIZE as i think it should.. perhaps this is configuration option is not being picked up at all and therefore ccache -s is always falling back to the default, 2G ..?
Try this with ccache v2.4 please.
how is this even a portage issue?
i attempted this with the v2.4 release and it works for me.