View previous topic :: View next topic |
Author |
Message |
Neo_0815 l33t
Joined: 24 Feb 2003 Posts: 815 Location: Leipzig
|
Posted: Mon Apr 11, 2005 4:09 am Post subject: ccache - tempdir ... Beschreibung verwirrend |
|
|
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 |
|
|
easy2k Tux's lil' helper
Joined: 28 Aug 2002 Posts: 129 Location: Östlichste Stadt Deutschlands
|
Posted: Mon Apr 11, 2005 5:42 am Post subject: |
|
|
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 |
|
|
TheCurse l33t
Joined: 21 Jun 2004 Posts: 670 Location: Köln
|
Posted: Mon Apr 11, 2005 6:27 am Post subject: |
|
|
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 |
|
|
|