Gentoo Archives: gentoo-user

From: Fernando Meira <fmeira@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ccache taking way too long time
Date: Thu, 29 Sep 2005 21:49:32
Message-Id: a3c2e88b050929144413d3c69f@mail.gmail.com
In Reply to: Re: [gentoo-user] ccache taking way too long time by Tamas Sarga
1 On 9/28/05, Tamas Sarga <tamas@×××××××××××××××××.net> wrote:
2 >
3 >
4 > On Sun, 25 Sep 2005, Fernando Meira wrote:
5 >
6 > >
7 > > Hi,
8 > >
9 > > I been using ccache for sometime since its mail goal is to speedup
10 > common
11 > > compiling sets.
12 > > This is great when updating several packages.
13 > > However, every time that a package is to be emerge/updated my system
14 > waits
15 > > for ccache some long minutes. This happens twice, at the emerge start
16 > and
17 > > end. For some small packages, it takes more time to handle ccache than
18 > > compiling the package itself... so I wondering if this is normal, or it
19 > is
20 > > something mis-configured?
21 > >
22 > > Here is how it looks:
23 > >
24 > > >>> emerge (2 of 10) media-sound/cdparanoia-3.9.8-r2 to /
25 > > * Adjusting permissions on ccache in /root/.ccache
26 > > * Adjusting permissions on ccache in /root/.ccache
27 > > >>> Downloading ftp://ftp.tu-clausthal.de/pub/linux/...
28 > > (...)
29 > > >>> Completed installing cdparanoia-3.9.8-r2 into
30 > > /var/tmp/portage/cdparanoia-3.9.8-r2/image/
31 > >
32 > > >>> Merging media-sound/cdparanoia-3.9.8-r2 to /
33 > > * Adjusting permissions on ccache in /root/.ccache
34 > > (...)
35 > >
36 > > Fernando
37 > >
38 >
39 > Hi,
40 >
41 > I also use ccache for a some time.
42 > I use
43 > $CCACHE_DIR=/var/cache/ccache/
44 >
45 > ls -la /var/cache/ccache
46 > drwxrws--- 18 portage portage 4096 Sep 25 16:29 .
47 > drwxr-xr-x 7 root root 4096 Oct 14 2004 ..
48 > drwxr-sr-x 18 portage portage 4096 Oct 24 2004 0
49 > drwxr-sr-x 18 portage portage 4096 Oct 24 2004 1
50 > drwxr-sr-x 18 portage portage 4096 Oct 24 2004 2
51 > <snip>
52 >
53 > My portage user is portage.
54 >
55 > I haven't got the mentioned problem.
56 > What are your settings?
57 >
58 > Cheers,
59 > Tamas Sarga Sárga Tamás
60
61
62 Hi,
63 thanks for replying..
64
65 My setting are:
66
67 $CCACHE_DIR=/root/.ccache/
68
69 Portage user is also portage.
70
71 # ll .ccache/
72 total 14
73 drwxrwS--- 18 root portage 576 Sep 29 00:21 .
74 drwx------ 19 root root 1032 Sep 29 23:39 ..
75 -rw-rw-r-- 1 root portage 0 Aug 25 13:32 .keep
76 drwxrwsr-x 18 root portage 456 Sep 3 21:48 0
77 drwxrwsr-x 18 root portage 456 Sep 3 21:35 1
78 drwxrwsr-x 18 root portage 456 Sep 3 21:43 2
79 drwxrwsr-x 18 root portage 456 Sep 3 21:42 3
80 drwxrwsr-x 18 root portage 456 Sep 3 22:00 4
81 drwxrwsr-x 18 root portage 456 Sep 3 21:42 5
82 drwxrwsr-x 18 root portage 456 Sep 3 20:55 6
83 drwxrwsr-x 18 root portage 456 Sep 3 21:42 7
84 drwxrwsr-x 18 root portage 456 Sep 3 21:55 8
85 drwxrwsr-x 18 root portage 456 Sep 3 21:43 9
86 drwxrwsr-x 18 root portage 456 Sep 3 21:37 a
87 drwxrwsr-x 18 root portage 456 Sep 3 21:44 b
88 drwxrwsr-x 18 root portage 456 Sep 3 21:48 c
89 drwxrwsr-x 18 root portage 456 Sep 3 21:43 d
90 drwxrwsr-x 18 root portage 456 Sep 3 21:49 e
91 drwxrwsr-x 18 root portage 456 Sep 3 20:55 f
92 -rw-rw-r-- 1 root portage 66 Sep 29 00:21 stats
93 -rw-rw-r-- 1 root portage 120 Sep 24 22:32 tmp.hash.nandux.29184.gcno
94 -rw-rw-r-- 1 root portage 120 Sep 12 00:13 tmp.hash.nandux.6642.gcno
95
96 # du -sh .ccache/
97 965M .ccache/
98
99 # ccache -s
100 cache hit 4569
101 cache miss 32736
102 called for link 3200
103 multiple source files 7
104 compile failed 618
105 preprocessor error 209
106 not a C/C++ file 1420
107 autoconf compile/link 3617
108 unsupported compiler option 1214
109 no input file 2570
110 files in cache 65472
111 cache size 960.6 Mbytes
112 max cache size 2.0 Gbytes
113
114 Can it be just because it's inside root's dir?
115
116 Cheers,
117 Fernando

Replies

Subject Author
Re: [gentoo-user] ccache taking way too long time Darragh Bailey <daragh.bailey@×××××.com>
Re: [gentoo-user] ccache taking way too long time Jason Stubbs <jstubbs@g.o>