This got me a bit interested due to my recent disk-fiddlery (probably more disks than Excito ever imagined attached to the B3, conversion to EXT4, etc).
So I replicated Johannes test:
Code: Select all
root@b3:/home/niklas# dd if=/dev/zero of=/home/storage/test bs=8k count=100000
100000+0 records in
100000+0 records out
819200000 bytes (819 MB) copied, 72.5146 s, 11.3 MB/
Appalling! Then I realized that I was watching 720P video streamed from the same B3 during the test (hrm, sorry).
Second result (no video watching this time) was much better:
Code: Select all
root@b3:/home/niklas# dd if=/dev/zero of=/home/storage/test bs=8k count=100000
100000+0 records in
100000+0 records out
819200000 bytes (819 MB) copied, 9.22257 s, 88.8 MB/s
But why would Johannes use chunks of 8k at the time on a file system with 4k block size?
Does such things even matter?
Code: Select all
root@b3:/home/niklas# dd if=/dev/zero of=/home/storage/test bs=4k count=200000
200000+0 records in
200000+0 records out
819200000 bytes (819 MB) copied, 9.35668 s, 87.6 MB/s
Apparently not much.
Besides, none of these tests are against a physical volume, but a logical one - so might be completely irrelevant
My personal observations on network transfer speed:
I find NFS to be the absolutely quickest for copying large files over the local network.
Applications that might just stop in the middle of an operation, does seeks all the time, and generally misbehaves (like my media player) fares a lot better using SMB.
When using ssh (or SFTP), I have noticed that for some mysterious reason, a single transfer will often settle at some speed and then stay there - even if there is plenty more bandwidth and CPU resources (even on the B3) to go around.
If you then start a second SFTP transfer (from the same host), it reaches the same speed as the first one - so you have doubled the transfer rate by dividing it into two transfers! You can keep doing this a couple of times until you hit CPU/Memory limitations.
But why? Is there something in the protocol itself that tries to govern this?