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

2013-09-15

Windows 7 insomnia after Ubuntu installation

Recently, I installed Ubuntu 13.04 on my Windows 7 machine. It all went smooth, and was even surprised how everything seemed to work well in Ubuntu without any tweaking. The collateral damage was on the Windows side: it could not go to stand-by any more, even if it was no problem before I installed Ubuntu.

A short search showed an interesting thread from the Ubuntu forum. The various solutions requiring activating a partition were not helpful to me, since the installation was on two separate disks, both active partitions. However, the powercfg command did the trick:

powercfg -h off as administrator restaured instantly my stand-by :)