MPD on WRT160NL

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
User avatar
RaveGun
Posts: 3
Joined: Sun Dec 04, 2011 4:20 am

MPD on WRT160NL

Post by RaveGun »

Hi,

So I'm not hijacking other topic, here is a new one.

This is how my top looks like when nothing is playing.

Code: Select all

Mem: 26912K used, 2516K free, 0K shrd, 1608K buff, 12808K cached
CPU:   0% usr   0% sys   0% nic  98% idle   0% io   0% irq   0% sirq
Load average: 0.00 0.00 0.00 1/37 1935
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 1043     1 root     S     1472   5%   0% hostapd -P /var/run/wifi-phy0.pid -B
 1935  1930 root     R     1376   5%   0% top
 1389     1 root     S <  12408  42%   0% /usr/bin/mpd
 1392  1391 root     S <  12408  42%   0% /usr/bin/mpd
 1393  1391 root     S <  12408  42%   0% /usr/bin/mpd
 1391  1389 root     S <  12408  42%   0% /usr/bin/mpd
  339     1 root     S     1384   5%   0% syslogd -C16
  775     1 root     S     1384   5%   0% udhcpc -t 0 -i eth1 -b -p /var/run/dh
    1     0 root     S     1380   5%   0% init
  319     1 root     S     1380   5%   0% init
 1930  1929 root     S     1380   5%   0% -ash
 1400     1 root     S     1376   5%   0% watchdog -t 5 /dev/watchdog
 1404     1 root     S     1376   5%   0% /usr/sbin/ntpd -n -p 0.openwrt.pool.n
  341     1 root     S     1368   5%   0% klogd
 1929  1349 root     S     1204   4%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1354     1 root     S     1200   4%   0% /usr/sbin/uhttpd -f -h /www -r OpenWr
 1349     1 root     S     1132   4%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1377     1 nobody   S      916   3%   0% /usr/sbin/dnsmasq -K -D -y -Z -b -E -
  355     1 root     S      804   3%   0% /sbin/hotplug2 --override --persisten
   92     2 root     SW       0   0%   0% [ar71xx-spi]
Is this OK?
Thanks a lot.
User avatar
gerben
Posts: 164
Joined: Sat Oct 16, 2010 8:41 am
Location: Netherlands

Re: MPD on WRT160NL

Post by gerben »

Hi,

I managed yesterday to install and configure my Linksys WRT160NL as an Internet Radio. It works OK, but I have a question.

How many processes MPD needs. If I run a PS, it lists 4 MPD processes with the same size. Is this OK?
Now, I have about 2% free memory and also 2% free program space, and it's not playing anything.
I dont't see where you get the 2% from. You have almost 2.5MB free, plus nearly 13MB cached which if I recall correctly, Linux can free at any moment(, but it keeps it to gain performance in some cases).

My install has 3 MPD processes.

So nothing to worry about.

Happy coding.
User avatar
RaveGun
Posts: 3
Joined: Sun Dec 04, 2011 4:20 am

Re: MPD on WRT160NL

Post by RaveGun »

2%

Hi,
I was looking in UCI at the System -> Software were it stated 2% free.

I did not used the Mightyohm repository for the MPD, I used the default one. Maybe that's why the 3MPD vs 4MPD difference.

Anyway now it's all back to basics as I try to expand the program space with a 2GB memory stick and install everything else there.

Got a lot to learn about OpenWRT now (I was used to DDWRT from the previous WRT54GL router).

Thanks a lot for the reply.
User avatar
gerben
Posts: 164
Joined: Sat Oct 16, 2010 8:41 am
Location: Netherlands

Re: MPD on WRT160NL

Post by gerben »

I was looking in UCI at the System -> Software were it stated 2% free.
That's the free disk space. Not memory.

MightyOhms image uses an older MPD version, so that's most likely why yours has one more mpd process.

good luck
Post Reply