I've setup a file server using my new PI, and I'm very disappointed about the performance. I have attached by USB 2.0 2.5" HDD with an USB hub, formatted using NTFS, and mounted automatically. I had installed samba server and setup the share.
I can download/upload files only at about 700 KB/s (peak), with an average to 300 KB/s.
At first, I suspected about HDD link performance. Indeed I performed the test:
pi@raspmedia ~ $ sudo hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 60 MB in 3.05 seconds = 19.69 MB/sec
Indeed, the bottleneck is not the HDD link. Therefore it could be the network link? Lets test using iperf:
pi@raspmedia ~ $ iperf -s -p 10000
------------------------------------------------------------
Server listening on TCP port 10000
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.1.103 port 10000 connected with 192.168.1.102 port 56077
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.8 sec 2.88 MBytes 2.24 Mbits/sec
[ 5] local 192.168.1.103 port 10000 connected with 192.168.1.102 port 56080
[ 5] 0.0-95.6 sec 23.4 MBytes 2.05 Mbits/sec
That's it! It seems that the bottleneck is the WiFi network. But... wait! Here is the wifi statistics:
pi@raspmedia ~ $ sudo iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: XX:XX:XX:XX:XX:XX
ESSID:"XXXXXXXXXXXXXXX"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key:on
Bit Rates:144 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Quality=96/100 Signal level=44/100
Has you can see
- Bit Rates:144 Mb/s
- Quality=96/100 Signal level=44/100
What's3 wrong with my Wifi? It is the signal level too low? Can anyone explain me how the above statistics affect network performance?