This is an archive of the discontinued LLVM Phabricator instance.

Add a ThinLTO cache policy for controlling the maximum cache size in bytes.
ClosedPublic

Authored by pcc on Jun 22 2017, 6:57 PM.

Details

Summary

This is useful when an upper limit on the cache size needs to be
controlled independently of the amount of the amount of free space.

One use case is a machine with a large number of cache directories
(e.g. a buildbot slave hosting a large number of independent build
jobs). By imposing an upper size limit on each cache directory,
users can more easily estimate the server's capacity.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jun 22 2017, 6:57 PM
mehdi_amini edited edge metadata.Jun 22 2017, 10:13 PM

LGTM.

llvm/lib/Support/CachePruning.cpp
97 ↗(On Diff #103683)

tolower() could be user-friendly?

pcc added inline comments.Jun 22 2017, 10:23 PM
llvm/lib/Support/CachePruning.cpp
97 ↗(On Diff #103683)

Sure, makes sense.

This revision is now accepted and ready to land.Jun 23 2017, 5:52 AM
This revision was automatically updated to reflect the committed changes.
pcc added inline comments.Jun 23 2017, 10:15 AM
llvm/lib/Support/CachePruning.cpp
97 ↗(On Diff #103683)

Done in r306129 (forgot to commit it as part of this change).