Author Topic: Update Media Daemon: eats cpu despite being disabled  (Read 4690 times)

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Update Media Daemon: eats cpu despite being disabled
« on: December 26, 2008, 11:22:28 am »
Hi,

I spot weird behaviour of update media daemon. In web-admin->Files & Media -> Media Files Sync I have unticked media update daemon, but after few rebots I still notice it taking cpu:

Quote
- 10:49:10 up  9:29,  1 user,  load average: 1.55, 2.24, 2.70
Tasks: 252 total,   1 running, 251 sleeping,   0 stopped,   0 zombie
Cpu(s): 14.2%us, 15.6%sy, 16.7%ni, 52.5%id,  0.2%wa,  0.3%hi,  0.5%si,  0.0%st
Mem:   1815860k total,  1765340k used,    50520k free,   343768k buffers
Swap:  1959888k total,    37992k used,  1921896k free,   521008k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4728 root      34  19 78460  29m 6352 S   42  1.7   1:48.56 UpdateMedia
 2507 root      15   0  112m  49m 6208 S   20  2.8 125:02.15 motion
 3043 root      25   0 59496 5656 4004 S   11  0.3  49:56.44 Generic_Serial_
 2800 root      20   0 63000 8356 4052 S   10  0.5  51:58.55 Generic_Serial_
 3464 root      25   0 51236 5420 3876 S    1  0.3   4:33.17 Generic_Serial_
 4559 root      19   0 72772  24m  11m S    0  1.4  21:00.51 Photo_Screen_Sa
 5129 root      15   0 10284 2712 1980 S    0  0.1   1:54.28 smbd

Anyone with more insight ? Is tick on web-admin not working ?

Can Media Update Daemon be run on daily basis (at night) ?

Thanks in advance,

regards,

Bulek.

Merry Christmas and happy New Year for everyone...
Thanks in advance,

regards,

Bulek.

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #1 on: December 26, 2008, 07:21:05 pm »
I've also noticed this. I think the daemon is restarted at boot time, regardless of the setting.

Maybe a bug?

br,
sambuca

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #2 on: December 26, 2008, 07:24:17 pm »
* hari thinks it is annoying that it only sleeps for 2 minutes...
rock your home - http://www.agocontrol.com home automation

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #3 on: December 26, 2008, 07:39:27 pm »
This has nothing to do with development, please post in the appropriate sections of the forum.
"Change is inevitable. Progress is optional."
-- Anonymous


colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #4 on: December 26, 2008, 11:18:22 pm »
tail the update media daemon log file, then check/uncheck the box. It definitely works, so you should see the logging activity obviously start and stop when you do this. Don't forget that if you manually run a sync this will start a new process that will appear in top until it has finished its scan...

A mod should move this thread into Users...

itsmeok

  • Veteran
  • ***
  • Posts: 100
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #5 on: January 23, 2009, 01:10:56 pm »
I have an observation on this topic. I added a USB disk with a windows file format NTFS. I also saw a high CPU usage even with the daemon disabled. it was looking on the driver every few minutes. After removing the drive and deleting the windows partition I added the disk again. got it back to work and formatted it in linux as described in the wiki. See tutorials.

I do not see the high usage of my CPU. I do not know exactly why this is and cannot do more testing since I needed the drive for my files. Maybe something to test if you see this happening on your system.

itsmeok

  • Veteran
  • ***
  • Posts: 100
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #6 on: January 29, 2009, 09:42:51 pm »
Sorry about coming back to this post but since today I have a strange behavior again on my USB disk. I am not sure when it starts but suddenly my CPU is completely used. It is impossible to play any media from then. If I remove the USB drive the CPU goes down to the normal value again. I do not see a process that is using a huge amount of CPU power in the performance tool on the KDE desktop.

more people that have seen this behavior before

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #7 on: January 29, 2009, 09:46:37 pm »
Don't do things like that from the desktop.

Use a shell from a remote PC (eg download PuTTY) and run "top". I till immediately tell you which process is consuming CPU

itsmeok

  • Veteran
  • ***
  • Posts: 100
    • View Profile
Re: Update Media Daemon: eats cpu despite being disabled
« Reply #8 on: January 30, 2009, 09:29:09 am »
Thanks for the suggestion. Tried it and I do not see anything consuming high amounts of CPU. But still didnĀ“t solve my issues of being unable to normally play any media. I have removed a disk from another USB disk I found and add it inside the pc. Since the issue stopped when I remove the USB drive I hope it is gone.