Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ccache - tempdir ... Beschreibung verwirrend
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Neo_0815
l33t
l33t


Joined: 24 Feb 2003
Posts: 815
Location: Leipzig

PostPosted: Mon Apr 11, 2005 4:09 am    Post subject: ccache - tempdir ... Beschreibung verwirrend Reply with quote

Code:

ccache Enable portage support for the ccache  package.   If  the
                     ccache dir is not present in the user's environment, then
                     portage will default  to  ${PORTAGE_TMPDIR}/ccache  (with
                     userpriv) and to /root/.ccache otherwise.


So was heißt das jetzt?

Users Environment ... ccache dir? Pfad, Environment Variable oder was?
Derzeit ist es so das ständig /root/.ccache bei mir genutzt wird, / aber nur sehr wenig Platz hat, Portage Tempdir ist riesig, der soll wieder dorthin, also was muss ich ändern?
Aus den Manpage Zeilen werd ich nicht schlau.

Gruß
_________________
[img:76661e22b8]http://www.biersekte.de/biersektebanner.gif[/img:76661e22b8]
Back to top
View user's profile Send private message
easy2k
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 129
Location: Östlichste Stadt Deutschlands

PostPosted: Mon Apr 11, 2005 5:42 am    Post subject: Reply with quote

Bei mir wird /var/tmp/portage/ccache überhaupt nicht genutzt.
Du solltest auch nach der Installation von ccache ein "ccache -M 2G" eingeben (um die cache-größe einzustellen).
Gib mal "ccache -s" ein um die Statistik abzurufen.
Bei mir sieht das so aus:
Code:

# ccache -s
cache hit                          10631
cache miss                         48506
called for link                     6005
multiple source files                 82
compile failed                      1038
preprocessor error                   715
not a C/C++ file                    1414
autoconf compile/link              10927
unsupported compiler option         1071
no input file                       2529
files in cache                     97012
cache size                           1.3 Gbytes
max cache size                       2.0 Gbytes

_________________
Athlon 64 3200+
MSI K8T Neo2-FIR
Back to top
View user's profile Send private message
TheCurse
l33t
l33t


Joined: 21 Jun 2004
Posts: 670
Location: Köln

PostPosted: Mon Apr 11, 2005 6:27 am    Post subject: Reply with quote

Du musst einfach nur die CCACHE_DIR Variable anpassen, wo dein ccache liegen soll, siehe man ccache. Kannst z.B. in deine /etc/profile ein
export CCACHE_DIR="/var/tmp/.ccache"
reinschreiben und ccache wird das Verzeichnis /var/tmp/.ccache nutzen.

Wenn die Variable CCACHE_DIR nicht gesetzt ist wird als CCACHE_DIR automatisch /root/.ccache genutzt.

MfG
TheCurse
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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