2013-09-27

Performance Test

My music is located on my NAS (Nas4Free), and my music player (mpd) is on another computer. Sometimes, the music stopped briefly. This needed to be fixed before getting too much on my nerves.

Monitoring the tasks on the player side, nothing suspicious showed up. The connection between both computer needed some investigation. iperf would help a lot for the investigation.

  • On my NAS, I wrote: iperf -s
  • And on the music playing computer side: iperf -c nasname (nasname should be the host name of the NAS, or its IP address)

Watching the results displaying, this gives quickly an idea of the bandwidth between both computers. It can be really useful to find out a slow wifi connection for example (148 KBits/sec versus 94.5 MBits/sec when using the LAN cable in my case)

me@mpd:~$ iperf -c nas
------------------------------------------------------------
Client connecting to 192.168.0.12, TCP port 5001
TCP window size: 21.6 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.45 port 41540 connected with 192.168.0.12 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-21.3 sec   384 KBytes   148 Kbits/sec

No comments:

Post a Comment