ccache を使って buildkernel(結果)

http://d.hatena.ne.jp/taizooo/20060605/1149502614 の結果についてである.

  • buildkernelにかかった時間
    • ccache 1回目
% ( head -1 && tail -1 ) < buildkenel.060506.log
Mon Jun  5 19:21:50 JST 2006
Mon Jun  5 20:02:13 JST 2006

ということで、40分23秒くらい.

  • ccache -s の結果
    • buildkernel 前
cache directory                     /usr/local/var/.ccache
cache hit                            536
cache miss                         15278
called for link                      582
multiple source files                  1
compile failed                        32
preprocessor error                    18
not a C/C++ file                    1610
autoconf compile/link                419
no input file                          9
files in cache                     30556
cache size                         105.0 Mbytes
max cache size                     976.6 Mbytes
  • ccache -s の結果
    • buildkernel 後
cache directory                     /usr/local/var/.ccache
cache hit                            536
cache miss                         17336
called for link                      585
multiple source files                  1
compile failed                        32
preprocessor error                    18
not a C/C++ file                    1614
autoconf compile/link                419
unsupported compiler option            6
no input file                          9
files in cache                     34672
cache size                         202.5 Mbytes
max cache size                     976.6 Mbytes


まああたりまえだけども、全然 cache hit していません.

さて仕上げです.

% cd /usr/src/usr.sbin/ypserv
% make obj && make depend && make && make install

で ypserv をアップデートしてから

% sudo make installkernel
% sudo reboot

と、カーネルをアップデートして再起動.

% uname -r
6.1-RELEASE-p1

で、アップデートされました.