From 63b7bce7a58ed0851a879c274b535e6078c02119 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 27 Sep 2013 00:44:51 +0200 Subject: [PATCH] Updates memory usage. The 24 was wrong, it was always 28. --- snapraid.1 | 6 +++--- snapraid.d | 6 +++--- snapraid.txt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/snapraid.1 b/snapraid.1 index ae6d0ddb..1cf6c8cf 100644 --- a/snapraid.1 +++ b/snapraid.1 @@ -791,14 +791,14 @@ memory to run SnapRAID. As a rule of thumb, with 4 GiB or more memory use the default 256, with 2 GiB use 512, and with 1 GiB use 1024. .PP -In more details SnapRAID requires about TS*24/BS bytes +In more details SnapRAID requires about TS*28/BS bytes of RAM memory to run. Where TS is the total size in bytes of your disk array, and BS is the block size in bytes. .PP -For example with 6 disk of 2 TiB and a block size of 256 KiB +For example with 4 disk of 3 TiB and a block size of 256 KiB (1 KiB = 1024 Bytes) you have: .PP -RAM = (6 * 2 * 2^40) * 24 / (256 * 2^10) = 1.1 GiB +RAM = (4 * 3 * 2^40) * 28 / (256 * 2^10) = 1.4 GiB .PD 0 .PP .PD diff --git a/snapraid.d b/snapraid.d index 3b55c957..1e37c502 100644 --- a/snapraid.d +++ b/snapraid.d @@ -623,14 +623,14 @@ Configuration As a rule of thumb, with 4 GiB or more memory use the default 256, with 2 GiB use 512, and with 1 GiB use 1024. - In more details SnapRAID requires about TS*24/BS bytes + In more details SnapRAID requires about TS*28/BS bytes of RAM memory to run. Where TS is the total size in bytes of your disk array, and BS is the block size in bytes. - For example with 6 disk of 2 TiB and a block size of 256 KiB + For example with 4 disk of 3 TiB and a block size of 256 KiB (1 KiB = 1024 Bytes) you have: - :RAM = (6 * 2 * 2^40) * 24 / (256 * 2^10) = 1.1 GiB + :RAM = (4 * 3 * 2^40) * 28 / (256 * 2^10) = 1.4 GiB You could instead decrease this value if you have a lot of small files in the disk array. For each file, even if of few diff --git a/snapraid.txt b/snapraid.txt index f7397580..5d5e6263 100644 --- a/snapraid.txt +++ b/snapraid.txt @@ -683,14 +683,14 @@ memory to run SnapRAID. As a rule of thumb, with 4 GiB or more memory use the default 256, with 2 GiB use 512, and with 1 GiB use 1024. -In more details SnapRAID requires about TS*24/BS bytes +In more details SnapRAID requires about TS*28/BS bytes of RAM memory to run. Where TS is the total size in bytes of your disk array, and BS is the block size in bytes. -For example with 6 disk of 2 TiB and a block size of 256 KiB +For example with 4 disk of 3 TiB and a block size of 256 KiB (1 KiB = 1024 Bytes) you have: -RAM = (6 * 2 * 2^40) * 24 / (256 * 2^10) = 1.1 GiB +RAM = (4 * 3 * 2^40) * 28 / (256 * 2^10) = 1.4 GiB You could instead decrease this value if you have a lot of small files in the disk array. For each file, even if of few