PDA

View Full Version : 100% cpu


inercia
September 28th, 2008, 01:29 PM
Hi all,

I have noticed that sometimes Boxee takes 100% CPU when watching a video, eating a lot of memory too.

Processes: 65 total, 4 running, 61 sleeping... 256 threads 19:14:13
Load Avg: 1.39, 0.86, 0.60 CPU usage: 42.18% user, 16.11% sys, 41.71% idle
SharedLibs: num = 8, resident = 12M code, 368K data, 1416K linkedit.
MemRegions: num = 8051, resident = 1769M + 3028K private, 22M shared.
PhysMem: 252M wired, 1190M active, 593M inactive, 2039M used, 9132K free.
VM: 8417M + 371M 7013243(414) pageins, 6439230(630) pageouts

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
25436 Boxee 104.7% 50:09.88 29 1655 3405 1733M- 1232K 1670M- 3411M
33410 top 5.3% 0:00.61 1 19 34 912K 172K 1500K 19M
0 kernel_tas 2.6% 30:22.89 55 2 539 5836K 0 76M+ 286M
2734 boxee-rtor 1.7% 32:42.87 1 15 99 7224K- 332K 7644K+ 43M
...


xbmc.log usually ends with something like this:


...
19:15:38 T:2984472576 M: 12521472 ERROR: - Timeout waiting for previous frame to be presented
19:15:39 T:2965147648 M: 15458304 ERROR: Server returned: 404 Not Found
19:15:39 T:2965147648 M: 15097856 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php?seriesname=jericho
19:15:39 T:2967277568 M: 14413824 ERROR: SQLite: The database file is locked
Query: select * from media_folders where strPath='/Volumes/Media/Music/Library/The Life Aquatic With Steve Zissou/The Life Aquatic With Steve Zissou/' and strType='musicFold
er'
19:15:39 T:2964615168 M: 13561856 ERROR: SQLite: The database file is locked
Query: update media_folders set strStatus='unresolved', iDateStatus=1222622136, iNeedsRescan=iNeedsRescan-1 where strPath='/Volumes/Media/Movies/Series/Sex and The City/Seas
on 1/DVD 1/VIDEO_TS/'
19:15:39 T:2965147648 M: 13377536 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/series/79092/all/.zip
19:15:39 T:2984472576 M: 12472320 ERROR: - Timeout waiting for previous frame to be presented
19:15:40 T:2965147648 M: 12091392 ERROR: Server returned: 404 Not Found
19:15:40 T:2965147648 M: 12677120 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/languages.xml
19:15:40 T:2965147648 M: 14802944 ERROR: Server returned: 404 Not Found
19:15:40 T:2965147648 M: 14532608 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php?seriesname=jericho
19:15:40 T:2964615168 M: 13479936 ERROR: SQLite: The database file is locked
Query: update media_folders set strStatus='unresolved', iDateStatus=1222622136, iNeedsRescan=iNeedsRescan-1 where strPath='/Volumes/Media/Movies/Series/Sex and The City/Seas
on 1/DVD 1/VIDEO_TS/'
19:15:40 T:2984472576 M: 13017088 ERROR: - Timeout waiting for previous frame to be presented
19:15:41 T:2965147648 M: 11853824 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/series/79092/all/.zip
19:15:41 T:2965147648 M: 14229504 ERROR: Server returned: 404 Not Found
19:15:41 T:2965147648 M: 13684736 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/languages.xml
19:15:41 T:2967277568 M: 12226560 ERROR: SQLite: The database file is locked
Query: select * from media_folders where strPath='/Volumes/Media/Music/Library/The Libertines/'
19:15:41 T:2984472576 M: 14082048 ERROR: - Timeout waiting for previous frame to be presented
19:15:42 T:2964615168 M: 14057472 ERROR: SQLite: The database file is locked
Query: update media_folders set strStatus='unresolved', iDateStatus=1222622136, iNeedsRescan=iNeedsRescan-1 where strPath='/Volumes/Media/Movies/Series/Sex and The City/Seas
on 1/DVD 1/VIDEO_TS/'
19:15:42 T:2965147648 M: 13901824 ERROR: Server returned: 404 Not Found
19:15:42 T:2965147648 M: 13877248 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php?seriesname=jericho
19:15:42 T:2965147648 M: 14839808 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/series/79092/all/.zip
19:15:43 T:2984472576 M: 14323712 ERROR: - Timeout waiting for previous frame to be presented
19:15:43 T:2965147648 M: 12664832 ERROR: Server returned: 404 Not Found
19:15:43 T:2965147648 M: 12304384 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/languages.xml
19:15:43 T:2965147648 M: 14643200 ERROR: Server returned: 404 Not Found
19:15:43 T:2965147648 M: 14364672 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php?seriesname=jericho
19:15:44 T:2964615168 M: 12005376 ERROR: SQLite: The database file is locked
Query: update media_folders set strStatus='resolving', iDateStatus=1222622143 where idFolder=2234
19:15:44 T:2984472576 M: 12410880 ERROR: - Timeout waiting for previous frame to be presented
19:15:44 T:2965147648 M: 14868480 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/series/79092/all/.zip
19:15:44 T:2965147648 M: 13238272 ERROR: Server returned: 404 Not Found
19:15:44 T:2965147648 M: 13271040 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C444/languages.xml
19:15:45 T:2964615168 M: 14548992 ERROR: SQLite: The database file is locked
Query: update media_folders set strStatus='resolving', iDateStatus=1222622143 where idFolder=2234
19:15:45 T:2965147648 M: 14307328 ERROR: Server returned: 404 Not Found
19:15:45 T:2965147648 M: 14245888 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php?seriesname=jericho
19:15:45 T:2984472576 M: 14012416 ERROR: - Timeout waiting for previous frame to be presented


or with a lot of "Timeout waiting for previous frame to be presented" lines.

marcel
September 29th, 2008, 01:35 AM
i check into this ..does it happen on all video content or just specific files ,what other applications were running...

inercia
October 1st, 2008, 06:56 AM
It happens sometimes, but I'm not sure if it is related to video playback.

I've just got a new 100% CPU usage, with a log like this:


...
12:06:55 T:2973007872 M:988303360 INFO: NOTICE: RTorrent (ver: 1.0) used default settings
12:06:55 T:2968748032 M:987574272 INFO: Get URL: http://akas.imdb.com/find?s=tt;q=snow%20angelvdrip
12:06:57 T:2969280512 M:968871936 INFO: Get URL: http://akas.imdb.com/find?s=tt;q=le%20retourhenri%20cartier%20bresson
12:06:59 T:2969280512 M:949817344 INFO: Get URL: http://akas.imdb.com/find?s=tt;q=henri%20cartier%20bresson%20le%20ret
our
12:07:16 T:2973007872 M:863195136 ERROR: ClearBlock: Trying to clear non existent block /Applications/Boxee.app/Content
s/Resources/Boxee/scripts/RTorrent/resources
12:07:16 T:2973007872 M:874582016 INFO: Scriptresult: Succes
12:07:17 T:2973007872 M:883228672 INFO: waiting for thread - Thread-17
12:07:17 T:2973007872 M:883228672 INFO:
12:07:54 T:2973007872 M:877912064 INFO: waiting for thread - Thread-17
...
12:18:12 T:2973007872 M:411869184 INFO: waiting for thread - Thread-17


filling 250Mb of logs with the "waiting for thread" message... I guess I should install Shark.

marcel
October 2nd, 2008, 04:08 AM
hi inercia

this will be fixed in the next version..:)

inercia
October 2nd, 2008, 04:31 AM
Cool! Thanks!