Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page ccache not working?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 07-19-2005   #1 (permalink)
josolanes
Linux Enthusiast
 
Join Date: Jun 2005
Location: Odessa, FL
Posts: 583
Send a message via AIM to josolanes Send a message via Yahoo to josolanes
ccache not working?

ccache worked at first, but after some updates it doesn't seem to do anything any more.

when i run "ccache -s", the stats never change. i recently zeroed them out...but after re-emerging "gnome-system-monitor" as a test, the stats didn't show any change at all.

i added FEATURES="ccache" and "CCACHE_SIZE='2G'" both in make.conf and also followed the second installation instructions found in "man ccache" but neither of these seemed to fix it

if you need any info, just let me know and i'll post it up

thanks in advance!
__________________
System Specs: Arch 0.7.2 (Gimmick); Kernel=2.6.16-ARCH; Fvwm; xorg-7.0 (w/3D!!); Dual Athlon MP 1800+; Asus A7M266-D mobo; 40GB (ATA 133); Audigy 2 Platinum; Radeon 9800 Pro (3D included )
Registered Linux user number 395691
josolanes is offline   Reply With Quote
Old 07-20-2005   #2 (permalink)
josolanes
Linux Enthusiast
 
Join Date: Jun 2005
Location: Odessa, FL
Posts: 583
Send a message via AIM to josolanes Send a message via Yahoo to josolanes
*bump*
does anyone have any ideas?
__________________
System Specs: Arch 0.7.2 (Gimmick); Kernel=2.6.16-ARCH; Fvwm; xorg-7.0 (w/3D!!); Dual Athlon MP 1800+; Asus A7M266-D mobo; 40GB (ATA 133); Audigy 2 Platinum; Radeon 9800 Pro (3D included )
Registered Linux user number 395691
josolanes is offline   Reply With Quote
Old 07-22-2005   #3 (permalink)
josolanes
Linux Enthusiast
 
Join Date: Jun 2005
Location: Odessa, FL
Posts: 583
Send a message via AIM to josolanes Send a message via Yahoo to josolanes
noone knows?

i can give any extra information that you might need to help me fix this...

i'd like to get it to work so i can speed up any large updates (kdelibs, xorg, etc,..)
__________________
System Specs: Arch 0.7.2 (Gimmick); Kernel=2.6.16-ARCH; Fvwm; xorg-7.0 (w/3D!!); Dual Athlon MP 1800+; Asus A7M266-D mobo; 40GB (ATA 133); Audigy 2 Platinum; Radeon 9800 Pro (3D included )
Registered Linux user number 395691
josolanes is offline   Reply With Quote
Old 07-26-2005   #4 (permalink)
sarumont
Content Team Leader
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,662
Try putting this:

Code:
PORTAGE_TMPDIR="/var/tmp/portage"
in your /etc/make.conf. It being portage, I don't think that everything works like it would normally with ccache.
sarumont is offline   Reply With Quote
Old 07-26-2005   #5 (permalink)
josolanes
Linux Enthusiast
 
Join Date: Jun 2005
Location: Odessa, FL
Posts: 583
Send a message via AIM to josolanes Send a message via Yahoo to josolanes
Quote:
Originally Posted by sarumont
Try putting this:

Code:
PORTAGE_TMPDIR="/var/tmp/portage"
in your /etc/make.conf. It being portage, I don't think that everything works like it would normally with ccache.
hmm...that didn't work either

i don't understand what went wrong. it worked early in my gentoo install, but once i started doing some updates it simply stopped doing anything. it was really unusual. oh well, i can live without it. i've installed enough things now that when i isntall something else or do an update it doesn't take too long, so i'm ok now

thanks for the suggestion though!
__________________
System Specs: Arch 0.7.2 (Gimmick); Kernel=2.6.16-ARCH; Fvwm; xorg-7.0 (w/3D!!); Dual Athlon MP 1800+; Asus A7M266-D mobo; 40GB (ATA 133); Audigy 2 Platinum; Radeon 9800 Pro (3D included )
Registered Linux user number 395691
josolanes is offline   Reply With Quote
Old 07-28-2005   #6 (permalink)
rikster
Just Joined!
 
Join Date: Jul 2005
Posts: 1
Something must have changed recently because I came across the same problem. I fixed it by adding the CCACHE_DIR variable to make.conf.

It seems previously that CCACHE_DIR was implicitly set when ccache was added to FEATURES. The old cache directory for portage was /var/tmp/ccache. Unfortunately, ccache -s checks the default directory which is $HOME/.ccache. You can either set CCACHE_DIR as an environment variable in your startup scripts or use my approach which was to switch the portage ccache over to /root/.ccache.

Steps to solve:
1) add CCACHE_DIR="/root/.ccache" to /etc/make.conf
2) ccache -z -C [clear cache and zero stats]

Now try emerging something and testing with ccache -s.
rikster is offline   Reply With Quote
Old 07-29-2005   #7 (permalink)
josolanes
Linux Enthusiast
 
Join Date: Jun 2005
Location: Odessa, FL
Posts: 583
Send a message via AIM to josolanes Send a message via Yahoo to josolanes
Quote:
Originally Posted by rikster
Something must have changed recently because I came across the same problem. I fixed it by adding the CCACHE_DIR variable to make.conf.

It seems previously that CCACHE_DIR was implicitly set when ccache was added to FEATURES. The old cache directory for portage was /var/tmp/ccache. Unfortunately, ccache -s checks the default directory which is $HOME/.ccache. You can either set CCACHE_DIR as an environment variable in your startup scripts or use my approach which was to switch the portage ccache over to /root/.ccache.

Steps to solve:
1) add CCACHE_DIR="/root/.ccache" to /etc/make.conf
2) ccache -z -C [clear cache and zero stats]

Now try emerging something and testing with ccache -s.
that worked!

thanks a lot!
__________________
System Specs: Arch 0.7.2 (Gimmick); Kernel=2.6.16-ARCH; Fvwm; xorg-7.0 (w/3D!!); Dual Athlon MP 1800+; Asus A7M266-D mobo; 40GB (ATA 133); Audigy 2 Platinum; Radeon 9800 Pro (3D included )
Registered Linux user number 395691
josolanes is offline   Reply With Quote
Old 07-30-2005   #8 (permalink)
St. Joe
Linux User
 
St. Joe's Avatar
 
Join Date: Jun 2005
Location: USA
Posts: 271
This worked for me: Ccache Troubleshooting.
__________________
It may be that your sole purpose in life is simply to serve as a warning to others.
St. Joe is offline   Reply With Quote
Old 08-03-2005   #9 (permalink)
sarumont
Content Team Leader
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,662
Good find.
sarumont is offline   Reply With Quote
Old 08-08-2005   #10 (permalink)
dundas
Just Joined!
 
Join Date: Aug 2005
Posts: 3
thanks rikster for that info!
dundas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 09:17 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0