[GH-ISSUE #441] CI: sccache shows 0% cache hit rate #152

Closed
opened 2026-10-29 21:10:12 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @xiaguan on GitHub (Jun 3, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/441

Originally assigned to: @201341 on GitHub.

The sccache statistics from a recent CI run show the following:

Notice: 0% - 0 hits, 54 misses, 0 errors

Full human-readable stats:
Compile requests                      54
Compile requests executed             54
Cache hits                             0
Cache misses                          54
Cache misses (C/C++)                  54
Cache hits rate                     0.00 %
Cache hits rate (C/C++)             0.00 %
Cache timeouts                         0
Cache read errors                      0
Forced recaches                        0
Cache write errors                     0
Cache errors                           0
Compilations                          54
Compilation failures                   0
Non-cacheable compilations             0
Non-cacheable calls                    0
Unsupported compiler calls             0
Average cache write                0.002 s
Average compiler                  31.624 s
Average cache read hit             0.000 s
Failed distributed compilations        0
Cache location                  Local disk: "/root/.cache/sccache"
Use direct/preprocessor mode?   yes
Version (client)                0.10.0
Cache size                            91 MiB
Max cache size                        10 GiB
As you can see, there are 54 cache misses and 0 cache hits.

We expect sccache to have a reasonable cache hit rate, significantly reducing build times by reusing previously compiled objects when source files haven't changed.

Originally created by @xiaguan on GitHub (Jun 3, 2025). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/441 Originally assigned to: @201341 on GitHub. The sccache statistics from a recent CI run show the following: ```log Notice: 0% - 0 hits, 54 misses, 0 errors Full human-readable stats: Compile requests 54 Compile requests executed 54 Cache hits 0 Cache misses 54 Cache misses (C/C++) 54 Cache hits rate 0.00 % Cache hits rate (C/C++) 0.00 % Cache timeouts 0 Cache read errors 0 Forced recaches 0 Cache write errors 0 Cache errors 0 Compilations 54 Compilation failures 0 Non-cacheable compilations 0 Non-cacheable calls 0 Unsupported compiler calls 0 Average cache write 0.002 s Average compiler 31.624 s Average cache read hit 0.000 s Failed distributed compilations 0 Cache location Local disk: "/root/.cache/sccache" Use direct/preprocessor mode? yes Version (client) 0.10.0 Cache size 91 MiB Max cache size 10 GiB As you can see, there are 54 cache misses and 0 cache hits. ``` We expect sccache to have a reasonable cache hit rate, significantly reducing build times by reusing previously compiled objects when source files haven't changed.
Author
Owner

@201341 commented on GitHub (Jun 3, 2025):

assign to me, I will fix it @xiaguan

<!-- gh-comment-id:2935126147 --> @201341 commented on GitHub (Jun 3, 2025): assign to me, I will fix it @xiaguan
Author
Owner

@xiaguan commented on GitHub (Jun 6, 2025):

close #443

<!-- gh-comment-id:2948323350 --> @xiaguan commented on GitHub (Jun 6, 2025): close #443
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/Mooncake#152
No description provided.