* [gentoo-user] no compiler cache
@ 2006-06-25 4:54 Justin R Findlay
2006-06-25 5:26 ` Jeremy Olexa
0 siblings, 1 reply; 5+ messages in thread
From: Justin R Findlay @ 2006-06-25 4:54 UTC (permalink / raw
To: gentoo-user
Recently I upgraded gcc to gcc-4.1.1 from gcc-4.0.3 and cleared out the
ccache cache believing that cached compiler data across different
compiler versions would be useless. However after doing an 'emerge -e
world', there's nothing in the cache. I'm inclined to blame a specific
unsupported CFLAG, but the ccache statistics don't indicate anything
like that. What would cause ccache to not cache any compiler data?
# ccache -s
cache directory /var/tmp/ccache
cache hit 0
cache miss 163
called for link 12870
multiple source files 69
compile failed 1
preprocessor error 1222
bad compiler arguments 2
not a C/C++ file 3763
autoconf compile/link 17491
unsupported compiler option 5237
no input file 12830
files in cache 326
cache size 2.2 Mbytes
max cache size 2.5 Gbytes
# emerge --info | grep amd64
Portage 2.1.1_pre1-r1 (default-linux/amd64/2006.0/no-multilib,
gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17 x86_64)
ACCEPT_KEYWORDS="amd64 ~amd64"
# emerge --info | grep CFLAGS
CFLAGS="-march=athlon64 -m64 -O3 -fmessage-length=0 -pipe"
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] no compiler cache
2006-06-25 4:54 [gentoo-user] no compiler cache Justin R Findlay
@ 2006-06-25 5:26 ` Jeremy Olexa
2006-06-25 5:46 ` Justin R Findlay
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Olexa @ 2006-06-25 5:26 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Justin R Findlay wrote:
> world', there's nothing in the cache. I'm inclined to blame a specific
<snip>
> files in cache 326
Looks like there is files in the cache to me. =)
- --
Jeremy Olexa
(olexa@cs.umn.edu)
Office: EE/CS 1-201
CS/IT Systems Staff
University of Minnesota
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEnh5rFN7pD9kMi/URAiCdAJ9YdRr6jXQgcGx5Nrqch1QhOqRVmgCffeF/
sGR1RaBLWf8+/pBIFMXbYzs=
=XhIn
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] no compiler cache
2006-06-25 5:26 ` Jeremy Olexa
@ 2006-06-25 5:46 ` Justin R Findlay
2006-06-25 14:36 ` Jeremy Olexa
0 siblings, 1 reply; 5+ messages in thread
From: Justin R Findlay @ 2006-06-25 5:46 UTC (permalink / raw
To: gentoo-user
On Sun, Jun 25, 2006 at 12:26:03AM -0500, Jeremy Olexa wrote:
> Looks like there is files in the cache to me. =)
Yeah, but I would expect more than 2.2 Mib of data in the cache after an
'emerge -e world' and at least some cache hits.
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] no compiler cache
2006-06-25 5:46 ` Justin R Findlay
@ 2006-06-25 14:36 ` Jeremy Olexa
2006-06-26 10:00 ` James Buckley
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Olexa @ 2006-06-25 14:36 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Justin R Findlay wrote:
> On Sun, Jun 25, 2006 at 12:26:03AM -0500, Jeremy Olexa wrote:
>> Looks like there is files in the cache to me. =)
>
> Yeah, but I would expect more than 2.2 Mib of data in the cache after an
> 'emerge -e world' and at least some cache hits.
>
>
> Justin
In my experience, I would expect cache hits the second, third, .. nth
time you emerged a package. Not the first. Give it some time and see if
the cache a) populate and b) gets hits.
- --
Jeremy Olexa
(olexa@cs.umn.edu)
Office: EE/CS 1-201
CS/IT Systems Staff
University of Minnesota
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEnp9lFN7pD9kMi/URAo63AJ95aiM4QbHjvgjg3jJHk5/IDWzeIQCcDL25
I8VtcpHJUWvj2x14e2kg+uo=
=CbN+
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] no compiler cache
2006-06-25 14:36 ` Jeremy Olexa
@ 2006-06-26 10:00 ` James Buckley
0 siblings, 0 replies; 5+ messages in thread
From: James Buckley @ 2006-06-26 10:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]
I agree it seems a bit small, but as long as ur getting "misses" your cache
is working. The next time you do emerge -e world (and as long as you haven't
changed your compiler) you should get lots of "hits".
The cache is good for when you do emerge -e system, then world. As many
packages will just be the same.
On 25/06/06, Jeremy Olexa <olexa@cs.umn.edu> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Justin R Findlay wrote:
> > On Sun, Jun 25, 2006 at 12:26:03AM -0500, Jeremy Olexa wrote:
> >> Looks like there is files in the cache to me. =)
> >
> > Yeah, but I would expect more than 2.2 Mib of data in the cache after an
> > 'emerge -e world' and at least some cache hits.
> >
> >
> > Justin
>
> In my experience, I would expect cache hits the second, third, .. nth
> time you emerged a package. Not the first. Give it some time and see if
> the cache a) populate and b) gets hits.
>
> - --
> Jeremy Olexa
> (olexa@cs.umn.edu)
> Office: EE/CS 1-201
> CS/IT Systems Staff
> University of Minnesota
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEnp9lFN7pD9kMi/URAo63AJ95aiM4QbHjvgjg3jJHk5/IDWzeIQCcDL25
> I8VtcpHJUWvj2x14e2kg+uo=
> =CbN+
> -----END PGP SIGNATURE-----
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 1857 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-26 10:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-25 4:54 [gentoo-user] no compiler cache Justin R Findlay
2006-06-25 5:26 ` Jeremy Olexa
2006-06-25 5:46 ` Justin R Findlay
2006-06-25 14:36 ` Jeremy Olexa
2006-06-26 10:00 ` James Buckley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox