-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sccache
does not persist cache hit stats when server restart
#2143
Comments
Not sure it is a bug here. |
Yes, cache are preserved. But when I happened to curious about the cache hit rate all these times, disappointedly, I found the cache hit rate stats are lost. I think, it is a design bug, that I cannot see the history cache hit rate stats, since when I started to use sccache to now. Hope a default option, or at least an opt-in config option, to persist cache hit rate stats. Lines 346 to 356 in a859c3b
adv-stats-persist-path = |
Quote README.md
So, there are two possibilities. If
If
|
Note that you can store the stats into a json file easily with --show-adv-stats --stats-format=json As we don't have the use for persistent cache results (and I would not use it in general. I prefer to have stats per run of a project to easily see its impact or issues), I don't think we are going to spend time on it. |
The client-server model has nothing to do with not keeping stats. The main blocker is that the main sccache use-case is to use a shared non-local cache. Persisting its stats is a challenge in itself. |
BUG
sccache
does not persist cache hit stats when server stopactual
When devcontainer restart, sccache restart.
sccache
does not persist cache hit stats when server restart.It leads to cache hit stats lost, all zero.
expected
sccache
persist cache hit stats when server restart.Keep cache stats across sccache restart.
The text was updated successfully, but these errors were encountered: