KRA 39 Posted March 30, 2015 Share Posted March 30, 2015 (edited) 22:18:10 T:139742658160384 NOTICE: Sync Episodes -> Finished 0:46 Added:2 Updated:8 22:18:11 T:139742658160384 NOTICE: Sync Movies -> Finished 0:1 22:18:11 T:139742658160384 NOTICE: Doing_Db_Sync: syncDatabase (Finished) True 22:18:25 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:18:32 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:18:32 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:19:03 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:19:10 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:19:10 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:19:41 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:19:48 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:19:48 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:20:19 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:20:26 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:20:26 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:20:40 T:139742658160384 NOTICE: Doing_Db_Sync: syncDatabase (Started) <snip> 22:21:25 T:139742658160384 NOTICE: Sync Episodes -> Finished 0:45 Added:2 Updated:8 22:21:26 T:139742658160384 NOTICE: Sync Movies -> Finished 0:1 22:21:26 T:139742658160384 NOTICE: Doing_Db_Sync: syncDatabase (Finished) True 22:21:44 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:21:50 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:21:50 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:22:22 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:22:28 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:22:28 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True 22:23:00 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Started) 22:23:06 T:139742658160384 NOTICE: Sync PlayCount -> Finished 0:6 22:23:06 T:139742658160384 NOTICE: Doing_Db_Sync: updatePlayCounts (Finished) True This is eating a lot of cpu, turned on debug log to see if I get more info. EDIT: debug didn't give any more spesific items, seems it's sync'ing database 200 items at a time. Hope this is a first time thing. Edited March 30, 2015 by KRA Link to comment Share on other sites More sharing options...
KRA 39 Posted March 30, 2015 Author Share Posted March 30, 2015 @@KRA I dont see anything odd in the log. I'm not 100% sure, but it seems to me that after I'm done watching a video it's doing a full database sync, it takes a long time and eating a lot of cpu. Link to comment Share on other sites More sharing options...
KRA 39 Posted March 31, 2015 Author Share Posted March 31, 2015 (edited) After an item stops it does do a sync of playcounts. Can you screen shot CPU graph of your system doing a Sync. Or just a screen shot of say 5 min of CPU activity with Kodi just sitting there and syncing in the background. http://1drv.ms/1xS1uki notice how the cpu is running at turboboost speeds a lot of the time, and 30 minutes after I stopped video it's still running, even though first initial sync (when installing plugin) was done in 10 minutes. Right before the end the cpu boost up again for "another run" but the screensaver in kodi came on so I stopped video. Edited March 31, 2015 by KRA Link to comment Share on other sites More sharing options...
KRA 39 Posted March 31, 2015 Author Share Posted March 31, 2015 @ I don't know if it impact navigation and browsing, will do more testing later, off to work soon. But it's still "sync'ing" 1 hour and 20 minutes after video finnish, this cannot be normal. And even if it doesn't impact navigation and browsing I don't want my NUC running cpu at turboboost levels half the time. It looks like after a reboot it does sync one time, but after playback it does it in loop (forever?), don't know if it's the case but it's the impression I got after looking at the log. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted March 31, 2015 Share Posted March 31, 2015 There are definitely problems with it syncing lastplayed over and over. We are looking into it. Link to comment Share on other sites More sharing options...
e123enitan 237 Posted April 1, 2015 Share Posted April 1, 2015 Window vista sync will not stop after initial update completed and it continual and interrupting any actions I wish to perform on Kodi. Cheers Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 1, 2015 Share Posted April 1, 2015 Window vista sync will not stop after initial update completed and it continual and interrupting any actions I wish to perform on Kodi. Cheers We are aware of this issue and working on a fix. I should have put this warning in the original post that it is quite possible we are going to have to ask you to delete your Kodi database and start over when we release the next version. The good news is if things go as planned it will be faster. xnappo Link to comment Share on other sites More sharing options...
e123enitan 237 Posted April 1, 2015 Share Posted April 1, 2015 (edited) We are aware of this issue and working on a fix. I should have put this warning in the original post that it is quite possible we are going to have to ask you to delete your Kodi database and start over when we release the next version. The good news is if things go as planned it will be faster. xnappo Nice, Thanks for the wonderful work, pls clarify what you menat by "delete your Kodi DB and restart". In actual fact I did uninstalled Kodi 14.2 delete all related files and then reinstalled 14.2 before I installed Emby , then kick off the sycro process is that the same process you're refering to? or something different? Cheers Edited April 1, 2015 by e123enitan Link to comment Share on other sites More sharing options...
im85288 1493 Posted April 1, 2015 Share Posted April 1, 2015 We will provide clear instructions if/when it is needed. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) ok, so I have version 0.10 installed and these are my findings. Problems persist somewhat but trigger has changed, I'm not 100% sure this is plugin fault, because I don't see anything in the log. And I never had the local kodi database populated before (only using xbmbc plugin) So when I'm at kodi homescreen idle the cpu usage is around 10, sometimes 20 % So when I enter the tv-series view the cpu raise to 50+ % and stays there. Even completely idle (5 minutes) When I start playback cpu usage drops to 10% again. -> stop playback, up to 50% again, staying there "idle", exit to homescreen -> drops to 10% agin. EDIT: Just to check I renamed userdata folder and disable emby plugin to get a clean kodi, then added a video database local in kodi (without scraping) and cpu sits at 5-10% also, with clean kodi cpu is running at 533MHz, with emby plugin it's at 2400MHz all the time, also in main menu where cpu usage drops, MHz stays at full speed. Edited April 3, 2015 by KRA Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 Wait a bit for it to settle out. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) ok, I've done some reboots etc after install, initial sync was 10-15 minutes, how long would you estimate the wait ? I don't see anything happening in the log. I see xbmc jumping cpu cores all the time, don't know if that is normal. EDIT, I started playback of video and cpu dropped to 10% and 533 mhz Edited April 3, 2015 by KRA Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 It is getting art. You could try running the script that precaches the art, or just wait until you have moved around enough to cache it all. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 Patience is a virtue I do not possess when it comes to computers I'm not sure I understand correct but I have browsed through all the season folders to let kodi read files, and it makes noe difference. Will give it some time to work and see. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 Do you know about the cache script I am talking about? Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) @@xnappo No http://forum.kodi.tv/showthread.php?tid=158373 Running this with "c" option now. Correct ? If so it made no change. Edited April 3, 2015 by KRA Link to comment Share on other sites More sharing options...
Tolotos 61 Posted April 3, 2015 Share Posted April 3, 2015 I have an additional video for 0.0.10. The HTPC (OpenElec) is idle: https://dl.dropboxusercontent.com/u/29070379/Video%2003.04.15%2022%2013%2008.mov 1 Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 Correct - that tool. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 I have an additional video for 0.0.10. The HTPC (OpenElec) is idle: https://dl.dropboxusercontent.com/u/29070379/Video%2003.04.15%2022%2013%2008.mov YES! This looks very familiar. As soon as I start a video cpu usage and freq drops to a minimum, when playback is done the cpu is a max freq and 100% on one core, constantly swapping cores. I've run the tecture cache script but it didn't have any effect. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 Okay, let's see if it is the service, or Kodi checking stuff out. Open up addons/plugin.video.emby/service.py Change line 57 from: xbmc.sleep(1000) to xbmc.sleep(1000000) restart, and report back. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) Yes, that worked. At least initially. So something that was done every 1 second is now done every 10 sec ? That change made cpu util drop to idle, and cpu freq running at lowest possible. And since it's been like that for more than 10 sec, can we assume it is a solution ? Edited April 3, 2015 by KRA Link to comment Share on other sites More sharing options...
Tolotos 61 Posted April 3, 2015 Share Posted April 3, 2015 The CPU is now around 5% after reboot. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted April 3, 2015 Share Posted April 3, 2015 (edited) @@Tolotos - that is WITH this mod? Note that you don't want to keep it like this, it was just for debug. @ @@marcelveldt @@im85288 - thoughts? Probably 10000 is a more reasonable number? Edited April 3, 2015 by xnappo Link to comment Share on other sites More sharing options...
Tolotos 61 Posted April 3, 2015 Share Posted April 3, 2015 @@xnappo - With the 1000000 ms wait the CPU was down to the approx. 5%. I changed to 10000 and the CPU is again at >50% The load switches every ~3sec between by two cores. Link to comment Share on other sites More sharing options...
KRA 39 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) ok, I see I might have been a little crosseyed and confused someone. I did ofcourse change the value to what xnappo wrote, that would indicate 1000 seconds aka ~17 minutes ?? Am I counting the 0 correct now ? rather than every second ? PS, I tried xbmc.sleep(100000) And even at that point it's working too much for my cpu. Edited April 3, 2015 by KRA Link to comment Share on other sites More sharing options...
Recommended Posts