Kodi Community Forum
[LINUX] Problems compiling crystalhd branch - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [LINUX] Problems compiling crystalhd branch (/showthread.php?tid=62708)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


- TeknoJnky - 2009-12-11

I copied a bluray m2ts to the atv drive so it loads locally, and I still get 100% cpu and ~13fps. Some movies do play smoother than others tho.

If this expected, I'm fine with it, but if it is not expected, then I've done something wrong, not done something right, or otherwise screwed something up.

when I did svn up and compiled this last night, it was R25514, but I guess the log goes by the 'last changed' rev 25493

http://pastebin.com/m25b7695e

I did notice the xbmc log has some pulse audio lines, I thought it was supposed to be using ALSA?


- padukes - 2009-12-11

davilla Wrote:pastebin the output of dmesg and xbmc.log, you know the usual stuff Smile

Hey Davilla,

The below pastebin has the xbmc.log and the kern.log from a recent attempt. I first tried to watch a video recorded on my HDHomerun (via MythTV) that video would play but pegged the CPU at 100% (I'm assuming that means it didn't use the Crystal HD). The second video was recorded via my HD-PVR. After hitting play it paused for a while and then flashed and displayed nothing. Both were played over a wired network via SMB.

http://pastebin.com/m13509b34

Any help would be much appreciated!
P


- davilla - 2009-12-11

TeknoJnky Wrote:I copied a bluray m2ts to the atv drive so it loads locally, and I still get 100% cpu and ~13fps. Some movies do play smoother than others tho.

If this expected, I'm fine with it, but if it is not expected, then I've done something wrong, not done something right, or otherwise screwed something up.

when I did svn up and compiled this last night, it was R25514, but I guess the log goes by the 'last changed' rev 25493

http://pastebin.com/m25b7695e

I did notice the xbmc log has some pulse audio lines, I thought it was supposed to be using ALSA?

pulseaudio, demon spawn that it is. make it die by "pulseaudio -k" before starting xbmc. To make it permanent 'sudo apt-get purge ".*pulse.*"', you will have to ./configure and make again.

I'd like to see what top shows and also "o" will show stats, aq and vq are what I'm interested in. aq is audio demux queue, vq is video demux queue. If either drops to 0, that can starve the other and you get video glitches or low fps.

After I finish this round of code work, the next round goes after feeding demux input (both audio and video). Bluray tends to be the most twichy with current demux consumer code.


- TeknoJnky - 2009-12-11

killed pulse audio, also checked my xbmc audio setting were somehow set to pulseaudio, not sure how that happened, I haven't touch anything that I can remember even mentioning pulseaudio.

aq ~10 to 50% kbs 628.22
vq ~ 99% dc mbs ~30-32 drop 8000+ pc none
c(ad 0.000 a/v ~3.9 edl- dcpu ~4% acpu 3% vcpu ~75-80%)
w(fps ~13 cpu0 100%)

I couldn't quickly figure out to make a screenshot, the printscreen button wasnt working.

http://pastebin.com/m4db74d0d

Code:
top - 20:07:40 up 33 min,  3 users,  load average: 1.93, 1.34, 1.23
Tasks: 112 total,   3 running, 109 sleeping,   0 stopped,   0 zombie
Cpu(s): 34.9%us, 64.8%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:    252084k total,   249084k used,     3000k free,      144k buffers
Swap:  1103728k total,   158980k used,   944748k free,    55716k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6985 tekno     20   0  288m 124m  27m S 98.3 50.4   1:00.42 xbmc.bin
6805 tekno     20   0  2308 1044  816 R  0.7  0.4   0:02.94 top
    1 root      20   0  2844  520  472 S  0.0  0.2   0:01.72 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.82 kblockd/0
   44 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   45 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  109 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  143 root      20   0     0    0    0 S  0.0  0.0   0:00.04 pdflush
  144 root      20   0     0    0    0 S  0.0  0.0   0:00.06 pdflush
  145 root      15  -5     0    0    0 D  0.0  0.0   0:01.62 kswapd0
  186 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0



- davilla - 2009-12-11

TeknoJnky Wrote:killed pulse audio, also checked my xbmc audio setting were somehow set to pulseaudio, not sure how that happened, I haven't touch anything that I can remember even mentioning pulseaudio.

aq ~10 to 50% kbs 628.22
vq ~ 99% dc mbs ~30-32 drop 8000+ pc none
c(ad 0.000 a/v ~3.9 edl- dcpu ~4% acpu 3% vcpu ~75-80%)
w(fps ~13 cpu0 100%)

I couldn't quickly figure out to make a screenshot, the printscreen button wasnt working.

http://pastebin.com/m4db74d0d

Code:
top - 20:07:40 up 33 min,  3 users,  load average: 1.93, 1.34, 1.23
Tasks: 112 total,   3 running, 109 sleeping,   0 stopped,   0 zombie
Cpu(s): 34.9%us, 64.8%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:    252084k total,   249084k used,     3000k free,      144k buffers
Swap:  1103728k total,   158980k used,   944748k free,    55716k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6985 tekno     20   0  288m 124m  27m S 98.3 50.4   1:00.42 xbmc.bin
6805 tekno     20   0  2308 1044  816 R  0.7  0.4   0:02.94 top
    1 root      20   0  2844  520  472 S  0.0  0.2   0:01.72 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.82 kblockd/0
   44 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   45 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  109 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  143 root      20   0     0    0    0 S  0.0  0.0   0:00.04 pdflush
  144 root      20   0     0    0    0 S  0.0  0.0   0:00.06 pdflush
  145 root      15  -5     0    0    0 D  0.0  0.0   0:01.62 kswapd0
  186 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0

64.8%sys, something smells fishy. It's spending a lot of time in system calls.

You do have composite disabled in xorg.conf ?

Section "Extensions"
Option "Composite" "Disable"
EndSection


- TeknoJnky - 2009-12-11

yea

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard" "CoreKeyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RegistryDwords" "RMDisableRenderToSysmem=1"
    Option         "DynamicTwinView" "false"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "Coolbits" "1"
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

tekno@AppleTV:~$

I think this weekend I'm gonna nuke it all and start from a clean netboot install again since I'm getting more comfortable with it all.


- davilla - 2009-12-11

From earlier in this thread:

Quote:I'm also running nvidia 185.18.14 but analog out. Not sure if audio over hdmi works with this version.

Other hints, install cpufreq as Ubuntu 8.04 will cycle down to 600MHz when CPU drops below 20 percent.

sudo cpufreq-set -d 1000MHz -u 1000MHz

will stop that silliness.

Add "processor.max_cstate=2" to the kernel boot args in menu.1st to keep out of C3.



- TeknoJnky - 2009-12-11

hmm ok, I had done the cpufreq thing, but now when I look at the cpu speed in xbmc it didn't stick.

didn't do the menu tho, didn't know where/how and forgot to look


- davilla - 2009-12-11

TeknoJnky Wrote:hmm ok, I had done the cpufreq thing, but now when I look at the cpu speed in xbmc it didn't stick.

didn't do the menu tho, didn't know where/how and forgot to look

if you reboot, you have to do the cpufreq again, it will not stick across a reboot.


/boot/grub/menu.lst


- TeknoJnky - 2009-12-11

ok last post for the night

updated grub list, rebooted, set cpufreq, pulseaudio -k

possibly slightly better, but still running ~14fps 100% cpu most of the time

the aq and vq vary wildly, sometimes aq is running 99% while vq is running ~10%, at other points aq is bouncing ~10% and vq is ~90%.

when the video bitrate is around 10mbs or less, it usually doing 24fps, but it starts hitting 30-35 mbs, its back to ~14 fps. But then there was also time when it was low bitrate (1-2mbs) and still floating ~14fps.

off topic, I found a wierd behavior: when I play a video from the favorites menu, it always resumes even though I have resume set to off in the options. When I play from the library it loads from the beginning.

gonna clear pulseaudio, svn up and recompile over night.

thanks for your help and patience and sorry for the hassle


http://pastebin.com/m418c2e27

Code:
top - 01:35:30 up 38 min,  3 users,  load average: 2.03, 2.22, 1.83
Tasks: 112 total,   3 running, 109 sleeping,   0 stopped,   0 zombie
Cpu(s): 31.9%us, 65.1%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  3.0%si,  0.0%st
Mem:    252084k total,   248032k used,     4052k free,      220k buffers
Swap:  1103728k total,   169524k used,   934204k free,    63676k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
7359 tekno     20   0  306m 118m  31m S 99.9 48.1   3:53.97 xbmc.bin
  145 root      15  -5     0    0    0 D  0.7  0.0   0:02.00 kswapd0
    1 root      20   0  2844  532  484 S  0.0  0.2   0:01.70 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   41 root      15  -5     0    0    0 S  0.0  0.0   0:01.08 kblockd/0
   44 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   45 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  109 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  143 root      20   0     0    0    0 S  0.0  0.0   0:00.04 pdflush
  144 root      20   0     0    0    0 S  0.0  0.0   0:00.04 pdflush
  186 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
1454 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksuspend_usbd



- TeknoJnky - 2009-12-11

r25537 can't seem to play the m2ts file at all now, but a dvd iso seemed to play ok when I tried (but isn't in below log).

http://pastebin.com/m9872bf2

only change from previous was post was purging pulseaudio, svn up, clean make, bootstrap, configure, make, make install


- davilla - 2009-12-11

TeknoJnky Wrote:r25537 can't seem to play the m2ts file at all now, but a dvd iso seemed to play ok when I tried (but isn't in below log).

http://pastebin.com/m9872bf2

only change from previous was post was purging pulseaudio, svn up, clean make, bootstrap, configure, make, make install

Opps, fixed in R25542, that was a test that should not have been commited.


- davilla - 2009-12-11

@TeknoJnky, your xbmc.log indicates you are running version 169.12 as the nvidia driver. I'd like to see if 185.18.14 resolves the high CPU in sys (65.1%sy) that top is showing.


- TeknoJnky - 2009-12-11

ok I'll check it out when I get home, thank you


- davilla - 2009-12-11

Just a heads up. When Broadcom does push the Linux driver and lib source code public there will be some disruption in crystalhd branch as we merge in changes. Of note will be name changes to driver and library and the firmware location changes. So expect breakage until this settles. I'll give warning here.

OSX kext and lib should pop out within a few days of them pushing public.