diff options
Diffstat (limited to 'src/util/disk_cache.c')
-rw-r--r-- | src/util/disk_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index d9de8ef6e4a..9fd7b96adcf 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -331,10 +331,10 @@ disk_cache_create(const char *gpu_name, const char *timestamp) } } - /* Default to 1GB or 10% of filesystem for maximum cache size. */ + /* Default to 1GB or 5% of filesystem for maximum cache size. */ if (max_size == 0) { statvfs(path, &vfs); - max_size = MAX2(1024*1024*1024, vfs.f_blocks * vfs.f_bsize / 10); + max_size = MAX2(1024*1024*1024, vfs.f_blocks * vfs.f_bsize / 20); } cache->max_size = max_size; |