I noted my backups were very slow so I did a speed test using sysbench like this:
$ mkdir benchmark
$ cd benchmark
$ sysbench fileio prepare
$ sysbench fileio --file-test-mode=rndrw run
These are the results:
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Extra file open flags: 0
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...
Threads started!
File operations:
reads/s: 72.23
writes/s: 48.16
fsyncs/s: 153.46
Throughput:
read, MiB/s: 1.13
written, MiB/s: 0.75
General statistics:
total time: 10.0039s
total number of events: 2741
Latency (ms):
min: 0.03
avg: 3.65
max: 86.83
95th percentile: 12.30
sum: 9991.70
Threads fairness:
events (avg/stddev): 2741.0000/0.00
execution time (avg/stddev): 9.9917/0.00
The hard drive is a new 4tb western digital inside a Nisuta USB 3 case .
Only partition in the drive is empty and is EXT4.
Why is it so slow?