Slow SMB directory listing
#1
The directory listing from my NAS were fine (performance-wise), then I changed a few things and now the movie dir listing takes 17 seconds, so I hope you guys can help me narrow down the issue.

Structure
~370 movies within the same folder
trying to visualize the dir structure:
movies
|- mov1.mpq
|- mov1.nfo
|- mov1.txt
|- mov1-poster.jpg
|- mov2.mpq
|- mov2.nfo
|- mov2.txt
|- mov2-poster.jpg
...
(the *.txt files don't contain structured content, just some info for myself)


What changed
updated to CoreELEC 20.2-Nexus
exported my library to separate nfo files
exported images via Addon Artwork Dump

System specs
Kodi (20.2 (20.2.0) Git:f711b4e9497f1fadf83fd905b7abff64b2766cf0). Platform: Linux ARM 32-bit
Kodi compiled 2023-06-30 by GCC 12.2.0 for Linux ARM 32-bit version 4.9.255 (264703)
Hardkernel ODROID-N2 with CoreELEC (official): 20.2-Nexus, kernel: Linux ARM 64-bit version 4.9.269

kodi.log (debug, samba)
amahipobil.kodi (paste)
Reply
#2
OK, I forgot to mention I use the "Video" section, not the "Movie" section.

In order to increase the performance I tried the samba setting in the advancedsettings.xml :
Quote:<samba>
  <doscodepage></doscodepage> <!-- code page to use for filenames -->
  <clienttimeout>10</clienttimeout> <!-- timeout (in seconds) -->
  <statfiles>true</statfiles> <!-- Set to false to disable smb stat() on files to speed up listings of large directories (over slow links) -->
</samba>

How the performance is quite good. Thread may be marked as "solved".
Reply
#3
for anyone that reads this in the future

it had nothing to do with that setting and everything to do with having "Extract Thumbnails" enabled

note the 7 seconds it took to finish 1 ExtractThumb -
 
Quote:2023-10-04 11:43:56.341 T:11137   debug <general>: ExtractThumb
2023-10-04 11:44:03.602 T:11137   debug <general>: ExtractThumb - measured 7660 ms to extract thumb
Reply
#4
(2023-10-04, 15:30)jepsizofye Wrote: it had nothing to do with that setting and everything to do with having "Extract Thumbnails" enabled
note the 7 seconds it took to finish 1 ExtractThumb -
 
Quote:2023-10-04 11:43:56.341 T:11137   debug <general>: ExtractThumb
2023-10-04 11:44:03.602 T:11137   debug <general>: ExtractThumb - measured 7660 ms to extract thumb
Interesting find. So it seems the video file is somehow broken, so kodi tries each time to extract the thumb, but fails.

What would be the best thing to do to proceed? Disable extractThumb altogether or remove the movie (the movie is watchable, so it seems to be a minor error?) ?
Reply
#5
i recommend disabling extract thumbnails in all setups and scenarios regardless - im not even sure where these thumbs are displayed in kodi tbh


but a broken video file is no good either, recommend remux/re-encode with ffmpeg
Reply

Logout Mark Read Team Forum Stats Members Help
Slow SMB directory listing0