Cache size recommandation

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

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…

1 Like