xbmc.bin idling at 100% CPU usage
#16
Hi!

I have the same problem.

I have XBMC 11.0 git20120423 from Ubuntu 12.04 precise/universe repo running on an Asrock ION330, NVidia drivers 295.40-0ubuntu1.

I appiled the advancedsettings.xml in this thread.
I have v-sync only when playing video - not in GUI.
I have disabled "adapt refresh rate to match video".
I also run in windowed or fullscreen mode or even minimized.
I also have "blank" screensaver, 3 min.

I have ~44% CPU in idle.

The loop I see in strace is:

Code:
clock_gettime(CLOCK_MONOTONIC, {163919, 502462986}) = 0
clock_gettime(CLOCK_MONOTONIC, {163919, 502691026}) = 0
clock_gettime(CLOCK_MONOTONIC, {163919, 502904026}) = 0
time(NULL)                              = 1337091987
clock_gettime(CLOCK_MONOTONIC, {163919, 503318026}) = 0
clock_gettime(CLOCK_MONOTONIC, {163919, 503515226}) = 0
recv(8, 0x9080f70, 4096, 0)             = -1 EAGAIN (Resource temporarily unavailable)
select(9, [8], NULL, NULL, {0, 0})      = 0 (Timeout)
time(NULL)                              = 1337091987
time(NULL)                              = 1337091987
nanosleep({0, 1000000}, 0xbf95b648)     = 0

I am very intrigued about how can I find out what is this socket supposed to be? It is always invalid.

I can't see any other process connected to it. Only a few threads from this only xbmc.bin process.

BTW, I had this problem for at least one year, including version XBMC v10 and older Ubuntu versions such as 10.04.

What could it be?
Reply
#17
I am having the same issues. XBMC will not idle below 50% Sad

Any solutions?
Reply
#18
XBMC was designed to continuously refresh the image, like an XBox game as it was originally software made for XBox. There are some optimized settings to reduce unnecessary refreshes such as when the UI is idle, but, as they may cause problems on various GPUs, they aren't set as default.

Try this:

Code:
$ cat .xbmc/userdata/advancedsettings.xml
<advancedsettings>
<gui>
        <algorithmdirtyregions>2</algorithmdirtyregions>
        <nofliptimeout>0</nofliptimeout>
</gui>
</advancedsettings>

With this I get ~13%CPU on an ASRock ION 330. Without them it would be ~87% or more...

Try tuning those params as well, there is a wiki page here: http://wiki.xbmc.org/index.php?title=Dirty_regions

Please come back and share what worked best for you, and what hardware are you using.
Reply
#19
I have tried both

<advancedsettings>
<gui>
<algorithmdirtyregions>1</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
</advancedsettings>

and

<advancedsettings>
<gui>
<algorithmdirtyregions>2</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
</advancedsettings>

with both making no difference at all to CPU usage at idle Sad
Reply
#20
Make sure it's loaded by checking the log. It's impossible that it doesn't make a difference
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#21
Thnx for the advise rumburake! Previously my shuttle was idling with one core (of four) continuously at 100%. Now it's around 1%. Smile
Reply
#22
I can see it loading on the logs, but it really makes no difference. CPU keeps using much cpu all the time Sad


01:00:31 T:140524107442048 NOTICE: Loaded settings file from special://profile/advancedsettings.xml
01:00:31 T:140524107442048 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<gui>
<algorithmdirtyregions>2</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
</advancedsettings>
01:00:31 T:140524107442048 NOTICE: Getting hardware information now...
01:00:31 T:140524107442048 NOTICE: Checking resolution 12
01:00:31 T:140524107442048 NOTICE: Default DVD Player: dvdplayer
01:00:31 T:140524107442048 NOTICE: Default Video Player: dvdplayer
01:00:31 T:140524107442048 NOTICE: Default Audio Player: paplayer
01:00:31 T:140524107442048 NOTICE: Disabled debug logging due to GUI setting. Level 0.
01:00:31 T:140524107442048 NOTICE: Log level changed to 0
01:00:31 T:140524107442048 NOTICE: Loading media sources from special://masterprofile/sources.xml
01:00:33 T:140524107442048 NOTICE: Using visual 0x51
01:00:34 T:140524107442048 NOTICE: GL_VENDOR = ATI Technologies Inc.
01:00:34 T:140524107442048 NOTICE: GL_RENDERER = AMD Radeon HD 6310 Graphics
01:00:34 T:140524107442048 NOTICE: GL_VERSION = 4.2.11903 Compatibility Profile Context
01:00:34 T:140524107442048 NOTICE: GL_SHADING_LANGUAGE_VERSION = 4.20
Reply
#23
This also happening on Nvidia GF 210 with win7 4GB Athlon 170u..... Yeah, New HTPC build is being planned lol.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.bin idling at 100% CPU usage0