The default limit is 1000000 but it can be configured with a cache
policy. The motivation is that some filesystems (notably ext4) have
a limit on the number of files that can be contained in a directory
(separate from the inode limit).
Details
Details
- Reviewers
inglorion tejohnson - Commits
- rG048ac83973f0: CachePruning: Allow limiting the number of files in the cache directory.
rLLD318857: CachePruning: Allow limiting the number of files in the cache directory.
rC318857: CachePruning: Allow limiting the number of files in the cache directory.
rL318857: CachePruning: Allow limiting the number of files in the cache directory.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Support/CachePruning.cpp | ||
---|---|---|
232 ↗ | (On Diff #123871) | I think you will need to change the way ShouldComputeSize is set above (i.e. OR in Policy.MaxSizeFiles > 0) to ensure it is true and therefore FileSizes and TotalSize have been computed at this point. |
llvm/lib/Support/CachePruning.cpp | ||
---|---|---|
232 ↗ | (On Diff #123871) | Done, also fixed a bug where we were exiting early above, and another bug where prune_after=0s did not behave as documented. |