Page MenuHomeDevCentral

Export metrics for ccache
ClosedPublic

Authored by dereckson on Oct 6 2024, 17:50.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 22:18
Unknown Object (File)
Thu, Nov 21, 21:25
Unknown Object (File)
Thu, Nov 21, 17:45
Unknown Object (File)
Thu, Nov 21, 17:45
Unknown Object (File)
Thu, Nov 21, 17:44
Unknown Object (File)
Thu, Nov 21, 17:44
Unknown Object (File)
Thu, Nov 21, 17:43
Unknown Object (File)
Thu, Nov 21, 16:50
Subscribers
None
Tokens
"Y So Serious" token, awarded by dereckson.

Details

Summary

Poudriere speed is improved by ccache use, introduced in D3486.
This change exports metrics for ccache, so we can offer visibility
on the cache current use and efficiency.

From a performance point of view, ccache_cache_hit_rate gives the hit %.

From a monitoring point of view, ccache_cache_size and ccache_max_cache_size
are a nice pair of values to watch, so we know when to increase cache size.

To get metrics for the common cache used by local ports and poudriere:

$ export CCACHE_DIR=/var/cache/ccache
$ ccache-metrics

Ref T2039

Test Plan

ccache-metrics on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
Unit
No Test Coverage
Branch
ccache-metrics
Build Status
Buildable 5552
Build 5833: arc lint + arc unit

Event Timeline

dereckson created this revision.

Remove os and sys unused imports

Adhere to OpenMetrics format

Tested with Prometheus, we can see the metrics at http://localhost:9090/graph

This revision is now accepted and ready to land.Fri, Oct 25, 18:55
This revision was automatically updated to reflect the committed changes.