Trying to understand --set-datapack-growfactor
/--set-treepack-growfactor
#979
-
The last question this year. I have been staring at Could somebody show be some sample calculation? Let's say:
What will be pack size for 5TiB (5120GiB) repo? SQRT(5120) = 71.55 So am I correct that pack size in this case = As per
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As you seem to want to dive into the code as well, here is the calculation: https://github.com/rustic-rs/rustic_core/blob/853995e115da81535df4d5f79592990bf19b9df1/src/blob/packer.rs#L90 |
Beta Was this translation helpful? Give feedback.
-
Correct - your default datapack size is increased by 72MiB in this case. With a default size of 32 MiB this will result in targeted pack sizes of 104 MiB, then. N.B: 32kiB * 32 = 1 MiB. This means the default is to increase the pack size by 1 MiB per Some Examples using the default values:
|
Beta Was this translation helpful? Give feedback.
Correct - your default datapack size is increased by 72MiB in this case. With a default size of 32 MiB this will result in targeted pack sizes of 104 MiB, then.
N.B: 32kiB * 32 = 1 MiB. This means the default is to increase the pack size by 1 MiB per
sqrt(total size in GiB)
.Some Examples using the default values: