Folks!
After a few days spent on backup and restore 1.5TB of data *), I made some observation which I do not want to withhold from you.
A bunch of write tests with different file size may explain why you sometimes see
very slow transfer rates.
So I set up files from 0 Bytes, a few bytes, some kB, some MB to 1 GB and measured
how long it takes to transfer this from my PC via a Gigabit Ethernet to my NAS (Raid 1 with 2x3TB WD Red).
The results in short (write to NAS):
- micro size files: Even transfering 0 Bytes takes 22 sec for 1000 files! Maximum is about 45 files/sec
- mini size files: Up to 100kB file size, the transfer time is almost independent of size, only dependent on number of files.
- medium size files: Between 500kB up to 5MB (typical size of Photos & Music) it is a mixture of size and number of files, and definitely not at maximum speed.
- large size files: From 20MB to 1GB (and larger) the speed is limited by the maximum write data rate, which is ~28MByte/sec in my case.
And here the details:
Time needed to write 1000 files of given size to NAS.
file size | | MB/s | | files/s | | time for 1000 files [h:m:s] |
0 Bytes | | 0.00 | | 45.5 | | 0:00:22 |
10 Byte | | 0.00 | | 43.5 | | 0:00:23 |
1000 Byte | | 0.04 | | 41.7 | | 0:00:24 |
4000 Byte | | 0.15 | | 38.5 | | 0:00:26 |
10kB | | 0.37 | | 38.5 | | 0:00:26 |
20kB | | 0.70 | | 37.0 | | 0:00:27 |
50kB | | 1.68 | | 34.5 | | 0:00:29 |
100kB | | 2.94 | | 30.1 | | 0:00:33 |
500kB | | 9.09 | | 18.6 | | 0:00:54 |
1MB | | 13.13 | | 13.1 | | 0:01:16 |
5MB | | 23.81 | | 4.8 | | 0:03:30 |
20MB | | 27.21 | | 1.4 | | 0:12:11 |
100MB | | 27.58 | | 0.3 | | 1:00:00 |
1GB | | 27.58 | | 0.0 | | 10:00:00 |
How long does it take to write 1GB to NAS, depending on single file size.file size | | number of files | | duration for 1GB [min:sec] |
10kB | | 104,858 | | 46:43 |
20kB | | 52,429 | | 24:15 |
50kB | | 20,972 | | 10:09 |
100kB | | 10,486 | | 05:48 |
500kB | | 2,097 | | 01:53 |
1MB | | 1,024 | | 01:18 |
5MB | | 205 | | 00:43 |
20MB | | 51 | | 00:38 |
100MB | | 10 | | 00:37 |
1GB | | 1 | | 00:37 |
*) Following
JavaLawyer's hint to backup data: you need time! A lot of time!
For a half full NAS (1.5TB), you need a full night to write the backup from the NAS and about 1 day to restore it. Wow!
Looking forward for somebody making a fancy graph displaying the odd numbers above...
Mausschubser