Ok, at 9:42 I stopped scanning. No hang ups until now, but still these in mysql-slow:
Code:
# Time: 170215 9:44:14
# [email protected]: kodi[kodi] @ libreraspi [192.168.5.20]
# Query_time: 19.030705 Lock_time: 0.001124 Rows_sent: 191982 Rows_examined: 1344274
SET timestamp=1487148254;
SELECT songview.*, songartistview.* FROM songview JOIN songartistview ON songartistview.idsong = songview.idsong WHERE ((CAST(songview.iTimesPlayed as DECIMAL(5,1)) < 1)) ORDER BY songartistview.idsong, songartistview.idRole, songartistview.iOrder;
every 10 minutes, LDP-Addon is deactivated!
It's Estuary, so I guess the widgets are provoking these...
As said, without LDP no hang ups, but huge mem usage and no freeing again, see:
Here's mysql-slow.log
http://sprunge.us/AbWh
and the one before:
http://sprunge.us/ZSPT
15 minutes after I stopped scanning, these are memory results:
Code:
# free -m
total used free shared buffers cached
Mem: 735 673 62 7 10 68
-/+ buffers/cache: 594 140
Swap: 0 0 0
Code:
# cat /proc/meminfo
MemTotal: 753336 kB
MemFree: 63740 kB
MemAvailable: 94792 kB
Buffers: 10288 kB
Cached: 70152 kB
SwapCached: 0 kB
Active: 623972 kB
Inactive: 35604 kB
Active(anon): 583356 kB
Inactive(anon): 3672 kB
Active(file): 40616 kB
Inactive(file): 31932 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 20 kB
Writeback: 0 kB
AnonPages: 579020 kB
Mapped: 35632 kB
Shmem: 7892 kB
Slab: 17912 kB
SReclaimable: 7120 kB
SUnreclaim: 10792 kB
KernelStack: 1680 kB
PageTables: 2556 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 376668 kB
Committed_AS: 761392 kB
VmallocTotal: 1310720 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
CmaTotal: 8192 kB
CmaFree: 6592 kB
You see, mem is still fed up and doesn't recover. Kodi reports:
watch gallery
Here's mem-usage-log
http://sprunge.us/CMHc
DB is now at 82MB with
Code:
mysql> SELECT count(idSong) FROM song;
+---------------+
| count(idSong) |
+---------------+
| 49848 |
+---------------+
1 row in set (0.05 sec)
That's app 1/3
I'll upload the current kodi.log right now... as kodi crashed few minutes ago, it'll be a crashlog
Yes, scanning gets slower and slower. You can see that from the logs!
Every 'commit transaction' is an album from what I can tell, so here's a comparison:
Code:
17:02:52.180 T:1498411936 DEBUG: Mysql commit transaction
17:02:58.739 T:1498411936 DEBUG: Mysql commit transaction
17:03:02.406 T:1498411936 DEBUG: Mysql commit transaction
17:03:05.381 T:1498411936 DEBUG: Mysql commit transaction
17:03:10.659 T:1498411936 DEBUG: Mysql commit transaction
17:03:15.177 T:1498411936 DEBUG: Mysql commit transaction
17:03:17.226 T:1498411936 DEBUG: Mysql commit transaction
...
09:28:37.867 T:1498411936 DEBUG: Mysql commit transaction
09:29:04.666 T:1498411936 DEBUG: Mysql commit transaction
09:29:38.820 T:1498411936 DEBUG: Mysql commit transaction
09:30:14.659 T:1498411936 DEBUG: Mysql commit transaction
09:30:32.321 T:1498411936 DEBUG: Mysql commit transaction
09:30:53.451 T:1498411936 DEBUG: Mysql commit transaction
It's 3-6s in the beginning of log after disable of LDP and app. 30s this morning. As it's 1/3 of source, I'm 5times up already. So 5 times more for 2/3 and 5 times for 3/3 would be 25*30s=12,5m per album
I'm going to use a fresh sd-card with latest LE (7.95.3) and all standard, but advancedsettings for mysql and no online info while scanning and start from where I am right now with scanning further...
Anything other I can help with?