minidlna at 100% cpu usage when not in use

Help
2012-12-28
2013-05-29
  • Brian Vargo
    Brian Vargo
    2012-12-28

    I was looking at server load on my new box and saw the following and have no idea why minidlna would be at the top of top with 100% cpu usage.  I just double checked my attached devices and it's one laptop and a printer (unless my printer's off and the switch is what is showing up) besides the server. 

    any thoughts on how to reduce this besides spawning minidlna when i want to use it?  given that there is an i5 on a new board with 8 gb of ram running precise 12.04 LTS, loads of > 1.0 seem extremely high.

    root@g:/home # top -cd3
    top - 16:44:01 up 20:58,  2 users,  load average: 1.16, 1.14, 0.92
    Tasks: 140 total,   2 running, 135 sleeping,   2 stopped,   1 zombie
    Cpu(s):  2.0%us,  0.5%sy, 24.5%ni, 72.6%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   8065712k total,  7925164k used,   140548k free,    36768k buffers
    Swap:  8273916k total,        0k used,  8273916k free,  7354700k cached
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                              
    15809 minidlna  20   0  157m 3068 1456 S  100  0.0  22:49.30 /usr/bin/minidlna -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid                                                                            
     1202 mpd       20   0  590m  11m 4060 S    4  0.1  55:48.30 /usr/bin/mpd /etc/mpd.conf                                                                                                                           
    12443 bvargo    20   0  406m  55m 9036 S    2  0.7   8:18.85 /usr/bin/python /usr/bin/deluged
    

    a few minutes later after

    service minidlna stop
    

    and I get

    top - 16:54:24 up 21:08,  2 users,  load average: 0.04, 0.43, 0.71
    Tasks: 142 total,   1 running, 138 sleeping,   2 stopped,   1 zombie
    Cpu(s):  0.9%us,  0.1%sy,  0.0%ni, 98.7%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   8065712k total,  7911652k used,   154060k free,    36400k buffers
    Swap:  8273916k total,        0k used,  8273916k free,  7336212k cached
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                              
     1202 mpd       20   0  590m  11m 4060 S    5  0.1  56:22.07 /usr/bin/mpd /etc/mpd.conf                                                                                                                           
    12443 bvargo    20   0  406m  56m 9044 S    3  0.7   8:34.53 /usr/bin/python /usr/bin/deluged                                                                                                                     
     1083 root      20   0 15980  680  500 S    0  0.0   0:05.77 /usr/sbin/irqbalance                                                                                                                                 
        1 root      20   0 24432 2368 1296 S    0  0.0   0:00.70 /sbin/init                                                                                                                                           
        2 root      20   0     0    0    0 S    0  0.0   0:00.00 [kthreadd]                                                                                                                                           
        3 root      20   0     0    0    0 S    0  0.0   0:25.09 [ksoftirqd/0]                                                                                                                                        
        6 root      RT   0     0    0    0 S    0  0.0   0:00.05 [migration/0]
    

    when I first noticed this, i

    service minidlna restart
    

    and it dropped off the radar, an hour later and was back up to 100%.

     
  • Perry Werneck
    Perry Werneck
    2013-02-04

    Hi,

    Do you have any windows 8 machine in your network? I noticed a similar problem here and until now I wasn´t able to pinpoint the exact problem but, coincidence or not, if the windows 8 machine is kept off there´s no high cpu usage on minidlna.