summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-11-22 18:27:31 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-11-22 18:27:31 +0000
commit048ac83973f08e19ec8fc5a8597ad3d283b6e7ad (patch)
treefc0291ed6ca4889deea00ae1c8f4fb2aef487562 /clang/docs
parent6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4 (diff)
downloadbcm5719-llvm-048ac83973f08e19ec8fc5a8597ad3d283b6e7ad.tar.gz
bcm5719-llvm-048ac83973f08e19ec8fc5a8597ad3d283b6e7ad.zip
CachePruning: Allow limiting the number of files in the cache directory.
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). Differential Revision: https://reviews.llvm.org/D40327 llvm-svn: 318857
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ThinLTO.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/docs/ThinLTO.rst b/clang/docs/ThinLTO.rst
index 607121fd1e5..14c098b052d 100644
--- a/clang/docs/ThinLTO.rst
+++ b/clang/docs/ThinLTO.rst
@@ -173,6 +173,10 @@ Possible key-value pairs are:
``cache_size_bytes=1g`` on its own will cause both the 1GB and default 75%
policies to be applied unless the default ``cache_size`` is overridden.
+- ``cache_size_files=X``:
+ Set the maximum number of files in the cache directory. Set to 0 to indicate
+ no limit. The default is 1000000 files.
+
- ``prune_after=Xs``, ``prune_after=Xm``, ``prune_after=Xh``: Sets the
expiration time for cache files to ``X`` seconds (or minutes, hours
respectively). When a file hasn't been accessed for ``prune_after`` seconds,
OpenPOWER on IntegriCloud