[PATCH] D18422: Add Cache Pruning support

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 17:56:36 PDT 2016


joker.eph created this revision.
joker.eph added a reviewer: dexonsmith.
joker.eph added a subscriber: llvm-commits.

Incremental LTO will usea cache to store object files.
This patch handles the pruning part of the cache, exposing
a few knobs:

- Pruning interval: the implementation keeps a "timestamp" file in the
  directory and will scan it only after a given interval since the
  last modification of the timestamp file. This is for performance
  purpose, we don't want to scan continuously the folder.
- Entry expiration: this is the time after which a file that hasn't
  been used is remove from the cache.
- Maximum size: expressed in percentage of the available disk space,
  it helps to avoid that we blow up the disk space.

http://reviews.llvm.org/D18422

Files:
  include/llvm/Support/CachePruning.h
  lib/Support/CMakeLists.txt
  lib/Support/CachePruning.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18422.51499.patch
Type: text/x-patch
Size: 7730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160324/472e5c02/attachment.bin>


More information about the llvm-commits mailing list