Page MenuHomeDevCentral

Export metrics for ccache
ClosedPublic

Authored by dereckson on Oct 6 2024, 17:50.
Tags
None
Referenced Files
F3751568: D3492.id9154.diff
Sun, Nov 17, 10:26
Unknown Object (File)
Sat, Nov 16, 01:54
Unknown Object (File)
Wed, Nov 13, 03:13
Unknown Object (File)
Thu, Nov 7, 00:12
Unknown Object (File)
Thu, Nov 7, 00:05
Unknown Object (File)
Wed, Nov 6, 22:26
Unknown Object (File)
Wed, Nov 6, 21:57
Unknown Object (File)
Thu, Oct 31, 03:13
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.