Page MenuHomeDevCentral

Export metrics for ccache
ClosedPublic

Authored by dereckson on Oct 6 2024, 17:50.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 22:59
Unknown Object (File)
Sat, Dec 7, 14:08
Unknown Object (File)
Sat, Nov 30, 16:05
Unknown Object (File)
Sat, Nov 30, 16:05
Unknown Object (File)
Sat, Nov 30, 16:05
Unknown Object (File)
Sat, Nov 30, 16:04
Unknown Object (File)
Sat, Nov 30, 16:04
Unknown Object (File)
Sat, Nov 30, 13:44
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 Passed
Unit
No Test Coverage
Branch
ccache-metrics
Build Status
Buildable 5558
Build 5839: 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.Oct 25 2024, 18:55
This revision was automatically updated to reflect the committed changes.