Bug 65570 - ccache almost always cache-misses on LibreOffice currently
Summary: ccache almost always cache-misses on LibreOffice currently
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.1.0.0.beta2
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillScript
Depends on:
Blocks:
 
Reported: 2013-06-09 13:07 UTC by Björn Michaelsen
Modified: 2015-12-16 00:44 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2013-06-09 13:07:21 UTC
Building LibreOffice 4.1.0.0beta2 with a ccache -z before, I see:
ccache -s
cache directory                     /root/.ccache
cache hit (direct)                   165
cache hit (preprocessed)              23
cache miss                          9139
called for link                      327
called for preprocessing              98
multiple source files                  2
compile failed                        14
preprocessor error                     7
bad compiler arguments                25
unsupported source language            1
autoconf compile/link                184
unsupported compiler option         1176
no input file                         79
files in cache                     11433
cache size                           9.0 Gbytes
max cache size                      10.0 Gbytes

afterwards, although the cache was populated before. This EasyHack is to run a ccache build with CCACHE_LOGFILE set and to analyse why we cant use the cache (do we have e.g. timestamps in header? etc.)
Comment 1 Artur Dryomov 2013-07-18 20:43:32 UTC
I built LO from master using ccache. After building with empty ccache (ccache --clear was runned before) cache size is about 2.1 GB. After the second build (make clean was runned before it) I had the same cache size. The same thing was after the third build. The building time is not so pretty as I expected: 1st build ≈ 2 hours, 2nd build ≈ 40 minutes, 3rd build ≈ 40 minutes. I have all logs ccache done using CCACHE_LOGFILE so I can provide you them if you wish. They are pretty heavy (50—100 MB) so it is not a great idea to upload them to Bugzilla I suppose ;-)
Comment 2 Björn Michaelsen 2013-07-29 23:01:40 UTC
Hi Artur,
-- actually you cant upload files that big to bugzilla. ;) But the task at hand is really to look for the reasons ccache does cache misses in such a clean rebuild scenario. Maybe you can send suspicous looking part of the log to libreoffice@lists.freedesktop.org ?
Comment 3 Artur Dryomov 2013-07-29 23:54:35 UTC
Hi Björn. I thought if the cache size remains the same everything is fine :-? The only thing bothering me that clean build takes something about 2 hours and next builds take 40 minutes. Is it normal or builds should take less time? I looked up a log and basically I see “cache hit” messages all around and don’t see anything suspicious. I can send you an email with a second build’s log — it takes 4.5 MB compressed — if it‘ll help. Maybe I’m just missing something.
Comment 4 Björn Michaelsen 2013-07-30 08:49:11 UTC
@Artur: Hmm. Ok, closing this one for now then. I also have _some_ scenarios, were ccache is working fine and others were its not. Seems I need to investigate thoroughly was sets those apart to make those that dont work more reproducable.

Thanks for your work on this!
Comment 5 Robinson Tryon (qubit) 2015-12-16 00:44:37 UTC
Migrating Whiteboard tags to Keywords: (EasyHack SkillScript DifficultyBeginner)
[NinjaEdit]