News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Update Media Daemon: eats cpu despite being disabled

Started by bulek, December 26, 2008, 11:22:28 AM

Previous topic - Next topic

bulek

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

I've also noticed this. I think the daemon is restarted at boot time, regardless of the setting.

Maybe a bug?

br,
sambuca

hari

* hari thinks it is annoying that it only sleeps for 2 minutes...
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Zaerc

This has nothing to do with development, please post in the appropriate sections of the forum.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

colinjones

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

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

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

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

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.