Page MenuHomeDevCentral

Export metrics for ccache
ClosedPublic

Authored by dereckson on Oct 6 2024, 17:50.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 12:18
Unknown Object (File)
Tue, Nov 19, 07:56
Unknown Object (File)
Tue, Nov 19, 07:15
Unknown Object (File)
Tue, Nov 19, 07:15
Unknown Object (File)
Tue, Nov 19, 07:15
Unknown Object (File)
Tue, Nov 19, 07:14
Unknown Object (File)
Tue, Nov 19, 07:14
Unknown Object (File)
Sun, Nov 17, 19:30
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 Not Applicable
Unit
Tests Not Applicable

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.