mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Support a configurable hash size
This commit is contained in:
parent
5b06549ee3
commit
ab7d4e896c
6 changed files with 200 additions and 17 deletions
36
snapraid.1
36
snapraid.1
|
|
@ -1339,7 +1339,14 @@ block size in bytes.
|
|||
For example with 8 disks of 4 TB and a block size of 256 KiB
|
||||
(1 KiB = 1024 bytes) you have:
|
||||
.PP
|
||||
RAM = (8 * 4 * 10^12) * 17 / (256 * 2^10) = 1.9 GiB
|
||||
RAM = (8 * 4 * 10^12) * 17 / (256 * 2^10) = 1.93 GiB
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
.PP
|
||||
Switching to a block size of 512 KiB, you have:
|
||||
.PP
|
||||
RAM = (8 * 4 * 10^12) * 17 / (512 * 2^10) = 0.97 GiB
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
|
|
@ -1384,6 +1391,33 @@ mkfs.ext4 \-m 0 \-T largefile4 DEVICE
|
|||
This results in about 1.5% of extra space. Meaning about 60 GB for
|
||||
a 4 TB disk, that allows about 460000 files in each data disk without
|
||||
any wasted space.
|
||||
.SS hashsize SIZE_IN_BYTES
|
||||
Defines the basic hash size in bytes of the saved blocks.
|
||||
The default hashsize is 16 bytes \-> 128 bits, and it should work
|
||||
for most cases.
|
||||
.PP
|
||||
A reason to use a different hashsize is if your system has less
|
||||
than 1 GiB of memory. As a rule of thumb, with 1 GiB or more memory
|
||||
use the default 16, with 512 MiB use 8, and with 256 GiB use 4.
|
||||
.PP
|
||||
In more details SnapRAID requires about TS*(1+HS)/BS bytes of RAM memory.
|
||||
Where TS is the total size in bytes of your disk array, BS is the
|
||||
block size in bytes, and HS is the hash size in bytes.
|
||||
.PP
|
||||
For example with 8 disks of 4 TB and a block size of 256 KiB
|
||||
(1 KiB = 1024 bytes), and an hash size of 16, you have:
|
||||
.PP
|
||||
RAM = (8 * 4 * 10^12) * (1+16) / (256 * 2^10) = 1.93 GiB
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
.PP
|
||||
Switching to a hash size of 8, you have:
|
||||
.PP
|
||||
RAM = (8 * 4 * 10^12) * (1+8) / (256 * 2^10) = 1.02 GiB
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
.SS autosave SIZE_IN_GIGABYTES
|
||||
Automatically save the state when syncing or scrubbing after the specified amount
|
||||
of GB processed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue