Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
You could be wasting up to 2 gigas!!!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MaxDamage
l33t
l33t


Joined: 03 Jan 2004
Posts: 650
Location: Oviedo, Spain

PostPosted: Fri Apr 16, 2004 10:52 pm    Post subject: You could be wasting up to 2 gigas!!!! Reply with quote

I've just been using Gentoo since last Xmas. In some point i emerged ccache as I thought it could speed up re-compilation of packages. You can read about it here:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=3#doc_chap2

Well, the funny thing is by default ccache sets a limit of diskspace used of 2Gb!!

Today I was curious and did a
Code:
du -sh /root/.ccache

and... yes, it was already using 2 gigas :lol: :lol: :lol: :lol: :lol: :lol: :lol:

In the doc I linked above, is explained how to set the limit you want editing a variable in the file
Code:
/etc/make.conf


Just a warning for unconscious users like me, because as I said, I was wasting 2Gb of my 40Gb HD and it wasn't funny :evil:
_________________
La PDA de tungsteno
Back to top
View user's profile Send private message
benguru
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2004
Posts: 125

PostPosted: Sat Apr 17, 2004 2:50 pm    Post subject: Good tip Reply with quote

Hi,
That is a good tip, however when you are experimenting with options in the kernel, and need to keep rebooting it speeds up kernel compile time by a lot. However I don't recompile stuff much, except for upgrades, so maybe I should stop using it? Anyway also you can clean out /usr/portage/distfiles/
Back to top
View user's profile Send private message
Elm0
Apprentice
Apprentice


Joined: 24 Nov 2002
Posts: 281
Location: UK

PostPosted: Sat Apr 17, 2004 3:25 pm    Post subject: Reply with quote

The 2.6 kernel build system doesn't rebuild every object file for the kernel every time you run make bzImage anymore, so this isn't really an issue anymore if kernel compile times are important. With 1 or 2 changes it usually takes about 30 seconds to compile a kernel on my PC.
Back to top
View user's profile Send private message
Spawn of Lovechild
Apprentice
Apprentice


Joined: 03 Feb 2004
Posts: 253
Location: Århus, Denmark

PostPosted: Sat Apr 17, 2004 3:49 pm    Post subject: Reply with quote

I won't call that waste, you are caching.
_________________
Proud to be a 22 year old Infidel, GNOME lover and member of LIK.
Back to top
View user's profile Send private message
blaksaga
Guru
Guru


Joined: 19 May 2003
Posts: 461
Location: Omaha, NE, USA

PostPosted: Sat Apr 17, 2004 6:12 pm    Post subject: Reply with quote

Code:
emerge -C ccache


;)
_________________
[ blaksaga.com ]
Back to top
View user's profile Send private message
Gil-galad55
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 101

PostPosted: Sat Apr 17, 2004 6:21 pm    Post subject: Reply with quote

Here's a newbish question:

If the ccache FEATURES tag is set in make.globals, but ccache isn't merged, does that mean the system is still using ccache, just "under the covers"? Or is an explicit emerge of ccache required for the FEATURE tag to have meaning?
_________________
a^2 + b^2 = c^2
"To strive, to seek, to find, and not to yield." Tennyson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum