# Cache size recommandation

**URL:** <https://kopia.discourse.group/t/cache-size-recommandation/562>\
**Category:** General\
**Created:** [July 27, 2021, 8:37am UTC](https://kopia.discourse.group/t/cache-size-recommandation/562 "2021-07-27T08:37:02Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![budy](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/budy/32/38_2.png) [@budy](https://kopia.discourse.group/u/budy)\
**Post date:** [March 23, 2022, 3:53pm UTC](https://kopia.discourse.group/t/cache-size-recommandation/562/10 "2022-03-23T15:53:07Z")

</div>

There is a command in Kopia CLI which you can run to estimate how much cache you should provide. This is for metadata, which is by far the most critical. If you run

`kopia blob stats --prefix=q`

which you then should multiply by 2x up to 5x as posted here: [https://kopia.discourse.group/t/cache-directories/98](https://kopia.discourse.group/t/cache-directories/98)

When I run this on my 1 TB repo, I am getting this…

[root@kopia repos]# kopia blob stats --prefix=q  
Count: 100  
Total: 1.7 GB  
Average: 16.7 MB  
Histogram:

```
    0 between 0 B and 10 B (total 0 B)
    0 between 10 B and 100 B (total 0 B)
    0 between 100 B and 1 KB (total 0 B)
    3 between 1 KB and 10 KB (total 25.4 KB)
    4 between 10 KB and 100 KB (total 67.7 KB)
    0 between 100 KB and 1 MB (total 0 B)
    6 between 1 MB and 10 MB (total 27.4 MB)
   87 between 10 MB and 100 MB (total 1.6 GB)

```

So… 1.6 x 5 is a bit above 5 GB, but I don’t expect this repo to grow much larger, so I’d be probably okay with even 2 GB…

---

_[View the full topic](https://kopia.discourse.group/t/cache-size-recommandation/562)._
