* [gentoo-user] ccache taking way too long time
@ 2005-09-25 16:20 Fernando Meira
2005-09-28 19:55 ` Tamas Sarga
0 siblings, 1 reply; 6+ messages in thread
From: Fernando Meira @ 2005-09-25 16:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
Hi,
I been using ccache for sometime since its mail goal is to speedup common
compiling sets.
This is great when updating several packages.
However, every time that a package is to be emerge/updated my system waits
for ccache some long minutes. This happens twice, at the emerge start and
end. For some small packages, it takes more time to handle ccache than
compiling the package itself... so I wondering if this is normal, or it is
something mis-configured?
Here is how it looks:
>>> emerge (2 of 10) media-sound/cdparanoia-3.9.8-r2 to /
* Adjusting permissions on ccache in /root/.ccache
* Adjusting permissions on ccache in /root/.ccache
>>> Downloading ftp://ftp.tu-clausthal.de/pub/linux/...
(...)
>>> Completed installing cdparanoia-3.9.8-r2 into
/var/tmp/portage/cdparanoia-3.9.8-r2/image/
>>> Merging media-sound/cdparanoia-3.9.8-r2 to /
* Adjusting permissions on ccache in /root/.ccache
(...)
Fernando
[-- Attachment #2: Type: text/html, Size: 1112 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] ccache taking way too long time
2005-09-25 16:20 [gentoo-user] ccache taking way too long time Fernando Meira
@ 2005-09-28 19:55 ` Tamas Sarga
2005-09-29 21:44 ` Fernando Meira
0 siblings, 1 reply; 6+ messages in thread
From: Tamas Sarga @ 2005-09-28 19:55 UTC (permalink / raw
To: gentoo-user
On Sun, 25 Sep 2005, Fernando Meira wrote:
>
> Hi,
>
> I been using ccache for sometime since its mail goal is to speedup common
> compiling sets.
> This is great when updating several packages.
> However, every time that a package is to be emerge/updated my system waits
> for ccache some long minutes. This happens twice, at the emerge start and
> end. For some small packages, it takes more time to handle ccache than
> compiling the package itself... so I wondering if this is normal, or it is
> something mis-configured?
>
> Here is how it looks:
>
> >>> emerge (2 of 10) media-sound/cdparanoia-3.9.8-r2 to /
> * Adjusting permissions on ccache in /root/.ccache
> * Adjusting permissions on ccache in /root/.ccache
> >>> Downloading ftp://ftp.tu-clausthal.de/pub/linux/...
> (...)
> >>> Completed installing cdparanoia-3.9.8-r2 into
> /var/tmp/portage/cdparanoia-3.9.8-r2/image/
>
> >>> Merging media-sound/cdparanoia-3.9.8-r2 to /
> * Adjusting permissions on ccache in /root/.ccache
> (...)
>
> Fernando
>
Hi,
I also use ccache for a some time.
I use
$CCACHE_DIR=/var/cache/ccache/
ls -la /var/cache/ccache
drwxrws--- 18 portage portage 4096 Sep 25 16:29 .
drwxr-xr-x 7 root root 4096 Oct 14 2004 ..
drwxr-sr-x 18 portage portage 4096 Oct 24 2004 0
drwxr-sr-x 18 portage portage 4096 Oct 24 2004 1
drwxr-sr-x 18 portage portage 4096 Oct 24 2004 2
<snip>
My portage user is portage.
I haven't got the mentioned problem.
What are your settings?
Cheers,
Tamas Sarga Sárga Tamás
--
Make the world confused! Zavard össze a világot!
Smile on monday morning! Mosolyogj hétfő reggel!
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] ccache taking way too long time
2005-09-28 19:55 ` Tamas Sarga
@ 2005-09-29 21:44 ` Fernando Meira
2005-09-30 13:54 ` Darragh Bailey
2005-09-30 16:38 ` Jason Stubbs
0 siblings, 2 replies; 6+ messages in thread
From: Fernando Meira @ 2005-09-29 21:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 3352 bytes --]
On 9/28/05, Tamas Sarga <tamas@wansite.homelinux.net> wrote:
>
>
> On Sun, 25 Sep 2005, Fernando Meira wrote:
>
> >
> > Hi,
> >
> > I been using ccache for sometime since its mail goal is to speedup
> common
> > compiling sets.
> > This is great when updating several packages.
> > However, every time that a package is to be emerge/updated my system
> waits
> > for ccache some long minutes. This happens twice, at the emerge start
> and
> > end. For some small packages, it takes more time to handle ccache than
> > compiling the package itself... so I wondering if this is normal, or it
> is
> > something mis-configured?
> >
> > Here is how it looks:
> >
> > >>> emerge (2 of 10) media-sound/cdparanoia-3.9.8-r2 to /
> > * Adjusting permissions on ccache in /root/.ccache
> > * Adjusting permissions on ccache in /root/.ccache
> > >>> Downloading ftp://ftp.tu-clausthal.de/pub/linux/...
> > (...)
> > >>> Completed installing cdparanoia-3.9.8-r2 into
> > /var/tmp/portage/cdparanoia-3.9.8-r2/image/
> >
> > >>> Merging media-sound/cdparanoia-3.9.8-r2 to /
> > * Adjusting permissions on ccache in /root/.ccache
> > (...)
> >
> > Fernando
> >
>
> Hi,
>
> I also use ccache for a some time.
> I use
> $CCACHE_DIR=/var/cache/ccache/
>
> ls -la /var/cache/ccache
> drwxrws--- 18 portage portage 4096 Sep 25 16:29 .
> drwxr-xr-x 7 root root 4096 Oct 14 2004 ..
> drwxr-sr-x 18 portage portage 4096 Oct 24 2004 0
> drwxr-sr-x 18 portage portage 4096 Oct 24 2004 1
> drwxr-sr-x 18 portage portage 4096 Oct 24 2004 2
> <snip>
>
> My portage user is portage.
>
> I haven't got the mentioned problem.
> What are your settings?
>
> Cheers,
> Tamas Sarga Sárga Tamás
Hi,
thanks for replying..
My setting are:
$CCACHE_DIR=/root/.ccache/
Portage user is also portage.
# ll .ccache/
total 14
drwxrwS--- 18 root portage 576 Sep 29 00:21 .
drwx------ 19 root root 1032 Sep 29 23:39 ..
-rw-rw-r-- 1 root portage 0 Aug 25 13:32 .keep
drwxrwsr-x 18 root portage 456 Sep 3 21:48 0
drwxrwsr-x 18 root portage 456 Sep 3 21:35 1
drwxrwsr-x 18 root portage 456 Sep 3 21:43 2
drwxrwsr-x 18 root portage 456 Sep 3 21:42 3
drwxrwsr-x 18 root portage 456 Sep 3 22:00 4
drwxrwsr-x 18 root portage 456 Sep 3 21:42 5
drwxrwsr-x 18 root portage 456 Sep 3 20:55 6
drwxrwsr-x 18 root portage 456 Sep 3 21:42 7
drwxrwsr-x 18 root portage 456 Sep 3 21:55 8
drwxrwsr-x 18 root portage 456 Sep 3 21:43 9
drwxrwsr-x 18 root portage 456 Sep 3 21:37 a
drwxrwsr-x 18 root portage 456 Sep 3 21:44 b
drwxrwsr-x 18 root portage 456 Sep 3 21:48 c
drwxrwsr-x 18 root portage 456 Sep 3 21:43 d
drwxrwsr-x 18 root portage 456 Sep 3 21:49 e
drwxrwsr-x 18 root portage 456 Sep 3 20:55 f
-rw-rw-r-- 1 root portage 66 Sep 29 00:21 stats
-rw-rw-r-- 1 root portage 120 Sep 24 22:32 tmp.hash.nandux.29184.gcno
-rw-rw-r-- 1 root portage 120 Sep 12 00:13 tmp.hash.nandux.6642.gcno
# du -sh .ccache/
965M .ccache/
# ccache -s
cache hit 4569
cache miss 32736
called for link 3200
multiple source files 7
compile failed 618
preprocessor error 209
not a C/C++ file 1420
autoconf compile/link 3617
unsupported compiler option 1214
no input file 2570
files in cache 65472
cache size 960.6 Mbytes
max cache size 2.0 Gbytes
Can it be just because it's inside root's dir?
Cheers,
Fernando
[-- Attachment #2: Type: text/html, Size: 6453 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] ccache taking way too long time
2005-09-29 21:44 ` Fernando Meira
@ 2005-09-30 13:54 ` Darragh Bailey
2005-09-30 16:38 ` Jason Stubbs
1 sibling, 0 replies; 6+ messages in thread
From: Darragh Bailey @ 2005-09-30 13:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
On 9/29/05, Fernando Meira <fmeira@gmail.com> wrote:
>
>
> # du -sh .ccache/
> 965M .ccache/
>
> # ccache -s
> cache hit 4569
> cache miss 32736
> called for link 3200
> multiple source files 7
> compile failed 618
> preprocessor error 209
> not a C/C++ file 1420
> autoconf compile/link 3617
> unsupported compiler option 1214
> no input file 2570
> files in cache 65472
> cache size 960.6 Mbytes
> max cache size 2.0 Gbytes
>
> Can it be just because it's inside root's dir?
>
> Cheers,
> Fernando
>
Depends on what features your using, but yes is probably the correct answer.
Not 100% certain about all the features that can have this affect but
userpriv would definitely prevent use of that ccache location when
compiling.
If it is enabled you can disable it and allow root to build, but personally
I think a better bet is to use a different location for the ccache.
--
Darragh Bailey
"Nothing is foolproof to a sufficiently talented fool"
[-- Attachment #2: Type: text/html, Size: 2963 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] ccache taking way too long time
2005-09-29 21:44 ` Fernando Meira
2005-09-30 13:54 ` Darragh Bailey
@ 2005-09-30 16:38 ` Jason Stubbs
2005-09-30 20:48 ` Fernando Meira
1 sibling, 1 reply; 6+ messages in thread
From: Jason Stubbs @ 2005-09-30 16:38 UTC (permalink / raw
To: gentoo-user
On Friday 30 September 2005 06:44, Fernando Meira wrote:
> drwxrwS--- 18 root portage 576 Sep 29 00:21 .
Which portage version are you using? 2.0.51.22-r2? There was a bug in one of
them that would cause ccache permissions to be updated everytime in exactly
the above situation. What you have there is 2760 permissions. What you need
is 2750. `chmod 2750 /root/.ccache` will fix it.
--
Jason Stubbs
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] ccache taking way too long time
2005-09-30 16:38 ` Jason Stubbs
@ 2005-09-30 20:48 ` Fernando Meira
0 siblings, 0 replies; 6+ messages in thread
From: Fernando Meira @ 2005-09-30 20:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
On 9/30/05, Jason Stubbs <jstubbs@gentoo.org> wrote:
>
> On Friday 30 September 2005 06:44, Fernando Meira wrote:
> > drwxrwS--- 18 root portage 576 Sep 29 00:21 .
>
> Which portage version are you using? 2.0.51.22-r2? There was a bug in one
> of
> them that would cause ccache permissions to be updated everytime in
> exactly
> the above situation. What you have there is 2760 permissions. What you
> need
> is 2750. `chmod 2750 /root/.ccache` will fix it.
Hi, I tried that and the first app I installed after (bin2iso ~ 7Kb) took
longer waiting for ccache than compiling&installing.
However, when emerging a second app there was no waiting time for ccache
ajustment of permissions!! So it looks that it's woking!
I'll run an update world later.. as a final test :)
Thanks everyone!!
Fernando
[-- Attachment #2: Type: text/html, Size: 1124 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-30 20:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-25 16:20 [gentoo-user] ccache taking way too long time Fernando Meira
2005-09-28 19:55 ` Tamas Sarga
2005-09-29 21:44 ` Fernando Meira
2005-09-30 13:54 ` Darragh Bailey
2005-09-30 16:38 ` Jason Stubbs
2005-09-30 20:48 ` Fernando Meira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox