Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60324

Summary: ccache does not honour -M option
Product: Portage Development Reporter: jieryn <jieryn>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: rockoo
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jieryn 2004-08-14 06:31:47 UTC
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"
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-08-15 21:38:41 UTC
Just clarifying, but ccache -M 5GB does return correctly?
Also, what version...
Comment 2 jieryn 2004-08-16 04:23:16 UTC
% 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
Comment 3 Tom Russo 2004-10-01 23:13:46 UTC
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"
Comment 4 jieryn 2004-10-02 07:55:50 UTC
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
Comment 5 jieryn 2004-10-02 07:58:51 UTC
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 ..?
Comment 6 Brian Harring (RETIRED) gentoo-dev 2005-03-09 01:51:01 UTC
Try this with ccache v2.4 please.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-03-09 04:33:15 UTC
how is this even a portage issue?
Comment 8 jieryn 2005-03-09 17:13:24 UTC
i attempted this with the v2.4 release and it works for me.