You are not logged in.

#1 2015-11-03 00:15:51

Rob_H
Member
Registered: 2012-06-19
Posts: 72

Kernel builds and ccache

I'm trying to use ccache to speed up compilation of the kernel for bisecting. So I uncommented ccache in /etc/makepkg.conf and as I run each build with makepkg -efsi, I see the size of the cache grow. But every time I check out a different commit and rebuild, it is compiling everything again. If I run ccache -s, cache hits is always 0. What am I doing wrong?

Offline

#2 2015-11-03 00:20:22

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Kernel builds and ccache

I don't think you're doing anything wrong. It's just how it is. Perhaps a .h file changes that's used everywhere, and that then causes all source files to be seen as different by ccache, and then it decides it can't use its store and runs gcc.

Offline

#3 2015-11-03 00:46:04

Rob_H
Member
Registered: 2012-06-19
Posts: 72

Re: Kernel builds and ccache

I think you're right. If I checkout a "nearby" commit and rebuild, I am seeing some cache hits. Thanks! It's not the tremendous speedup I'd hoped for, but that's a different issue. hmm

Offline

#4 2015-11-05 06:54:38

Elizine
Member
From: United Kingdom
Registered: 2015-10-07
Posts: 39
Website

Re: Kernel builds and ccache

Hi,

You can go through  the wiki page for ccache - http://wiki.archlinux.org/index.php/Ccache

It might solve your query.

Offline

Board footer

Powered by FluxBB