JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


ccache

Table des matières

CCache

CCache is a tool that cache compilation “chunk” used on Gentoo in order to speed up next time compilation.

Setup

To compile ccache

 emerge -v ccache

To activate ccache edit make.conf:

make.conf
 FEATURES="ccache"
 CCACHE_SIZE="2G"

Create necessary directories ( by default /var/tmp/ccache)

 cd /var/tmp
 mkdir ccache
 chown portage:portage ccache
 chmod 775 ccache

<note> Ccache can also be use in usermod using a user directory to stock compilation result.</note>

Statistics

  • For the current user:
 ccache -s 
  • For a given cache directory :
CCACHE_DIR=/var/tmp/ccache ccache -s 
cache directory                     /var/tmp/ccache/
cache hit                          12196
cache miss                         66465
called for link                     5895
multiple source files                 16
compile failed                      3003
preprocessor error                  1227
not a C/C++ file                    4247
autoconf compile/link              15593
unsupported compiler option         2791
no input file                       4071
files in cache                    132930
cache size                         814.7 Mbytes
max cache size                       3.0 Gbytes

search?q=Gentoo%20Linux%20EN&amp;btnI=lucky

ccache.txt · Dernière modification: 2018/02/18 16:01 (modification externe)