A SIMPLE calculation ... to clarify the extraspace neede for parity
In this example it dont care about the extra space needed to store by File system (FileSystem management, Blocksize of Filesystem,...)
And i know tyhat 1 KB is 1024 Byte and not 1000 ... but its simpler to calculate,
and it dont mather for this example.
1 TB = 1000 GB = 1 000 000 MB = 1 000 000 000 KB = 1 000 000 000 000 B
disParity split the files in blocks to xor them together.
So if the filesize isnt a exact multiplie of the Blocksize you have to add a whole block extra.
In worst case you nedd a whole block for only 1 Byte more ... the rest is filld up with 0.
I dont count the extra space neede by disparity to manage parity (Store Filename,Path,Date/Time,Blocknumbers,.....)
Becous there is no way i can calculate that, it depends on FilenameLength, Pathlength, how the informations are stored (FixLength Fields or not) ...
So i ignore it and say you need a little bit more than the calculated value
I dont know the bloksize disparity use but for my example, i use a blocksize of 512 KB (512000B)
Our experiment take the worst case that every file is 1 bytes bigger than the multiple
of the Blocksize so you need 512KB mor than the filesize for parity, for each file.
And we make parity for only one 1TB drive ... in real that would be senseless, but so its easier to calculate,
and if you have more drives it dont change so much on the way it works.
the worst case is the simplest.
You have files with only 1 Byte length ...
Files: 1 000 000 000 000
ParitySize: 512 000 000 000 000 000 Byte (512 000 TB)
Yes that is so much you need 1 Block (512KB) for each of the files ...
I know that its impossible to do this in real, its only an example of calculation.
If you have 1 TB DATA full of MP3 or Pictures each 4 MB
Files: 250 000
ParitySize: 1 128 000 000 000 Byte (1TB 128GB)
If you fill the drive wit 1CD Video-RIPs ... i calculate with 700MB
Files: 1428
ParitySize: rounded 1 000 731 000 000 Byte (1TB 731MB)
If you have untouched Rips of your Blurays each on is a 25GB ISO
Files: 40
ParitySize: rounded 1 000 020 000 000 Bytes (1TB 20MB)
If the Blocksize used by disparity is smaller i calculated in this example, you need less, if bigger you need more extraspace.
And as told at beginning there is more ManagementData to store and so the needed size is bigger as here calculated.
And in real life its a little more complex becous you have more then 1 data Drive and miexd filesizes.
But this example can help to get a feeling how the Filesize affects the needed Paritysize.
Or is my calculation completly wrong ....? What do you think Roland ?