Kodi Community Forum

Full Version: High CPU load while screensaver (black) is active
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

i know, there are a lot of threads talking about high load, but mine problem is only when the screensaver (black) is active... well it could be that it is after a while and not because of the screensaver.

I have a dualcore AMD E-350 with 2 gb ram, 1 x 320 gb HDD, 1 x 2 TB HDD running xbmcbuntu upgraded to 13.04, removed pulseaudio. I have a samba and ftp server running too on the same machine, but i think those servers have nothing to do with my problem.

At this machine i have connected a wifi keyboard, my plasma-television and my hifi-stereo. To use the XBMC i use my smartphone to navigate or to start whatever i want to watch or listen... BUT... after a couple of minutes the screensaver puts the screen in black and my cpu is running on one core at 100 %

Here is my xbmc.log
http://paste.ubuntu.com/5911351/

when i start strace i see only those lines:

Code:
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0

and this stops only when i press a key on the keyboard or i press the cursorbuttons on the smartphone.

When i start a movie or something my smartphone keeps waiting on any response, but nothing happens, and after 5-8 seconds the smartphone looses the connection to the xbmc

so i waited looking in the strace before that happen, but i don't have any idea what is the problem now.

Code:
clock_gettime(CLOCK_MONOTONIC, {2414, 221961863}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 222388048}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 222558098}) = 0
poll([{fd=9, events=POLLIN}], 1, 0)     = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {2414, 222932532}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 223085147}) = 0
poll([{fd=16, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=16, revents=POLLOUT}])
writev(16, [{"\224\4\1\0\224\6\2\0\2\0\0\0", 12}, {NULL, 0}, {"", 0}], 3) = 12
recv(16, 0x9b803e8, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {2414, 223840210}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 223997569}) = 0
clock_gettime(CLOCK_REALTIME, {1374763856, 532834574}) = 0
clock_gettime(CLOCK_REALTIME, {1374763856, 532960393}) = 0
futex(0x9161720, FUTEX_WAKE_PRIVATE, 1) = 0
poll([{fd=15, events=POLLIN}], 1, 0)    = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {2414, 224774759}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 224906823}) = 0
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "cpu  31325 5476 105636 324112 51"..., 1024) = 1024
clock_gettime(CLOCK_MONOTONIC, {2414, 225482381}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 225609762}) = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 225734808}) = 0
recv(16, 0x9b803e8, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
time(NULL)                              = 1374763856
time(NULL)                              = 1374763856
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
ioctl(19, 0xc01c64a6, 0xbfa16560)       = 0
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
gettid()                                = 1841
clock_gettime(CLOCK_MONOTONIC, {2414, 238807814}) = 0
nanosleep({0, 183000000}, NULL)         = 0
clock_gettime(CLOCK_MONOTONIC, {2414, 422699749}) = 0
ioctl(19, 0x4008642a, 0xbfa161c8)       = 0
ioctl(19, 0xc01c64a6, 0xbfa14cf4)       = 0
ioctl(19, 0xc01c64a6, 0xbfa14cf4)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0
ioctl(19, 0xc00c645c, 0xbfa169b0)       = 0

dpkg -l:
Code:
ii  xbmc                                      2:12.2~git20130521.1119-frodo-0raring     all          XBMC Media Center PVR Xvba Edition (arch-independent data package)
ii  xbmc-bin                                  2:12.2~git20130521.1119-frodo-0raring     i386         XBMC Media Center PVR Xvba Edition (binary data package)
wsnipex xvba version !


When i press any key on the keyboard, the screensaver stops and the system is on a normal load... maybe 6-9% cpu load (for me very good)

I hope someone can help me. If i forgot something tell me what you need and i will post it!

tia
FreakErn
13.04 has by default 100% CPU Load on you amd hardware ... driver bug. The Upgrade was a real bad idea.
well, i installed xbmcbuntu yesterday from the scratch and i upgraded like i have had it before......... i can't believe that. thanks man

do you have a link to bugzilla or something, i don't know what to search for. what is the reason for that problem?
Reason: Bug in every catalyst driver > Catalyst 12.10. It was fixed in 13.6 beta which introduced other bugs ...
Okay, thx... i tried to disable vertical blank synchronization and for now it helps. cpu usage is at 4% within the last 15 minutes Smile
Yes, exactly this is the bug :-( Happy watching movies without vblank sync.