Posts: 1,533
Joined: Sep 2007
Reputation:
20
arnova
Team-Kodi Developer
Posts: 1,533
How long does it take to access this directory you are referring to? I can't spot the problem yet from your log file. Could you also provide some timestamps (for the logs) when you perform certain actions (access directory, start movie, movie plays, etc.) ? I already understood from one of the devs that smb has major performance issues which need to be looked at but I'm not sure yet that this is the same issue....
-= Team Kodi developer fueled by heavy metal =-
Posts: 178
Joined: Oct 2008
Reputation:
0
Krieg
Senior Member
Posts: 178
When browsing the directory directly it takes about 20 to 30 seconds to open the directory. Then when I choose one file to be played it takes again 20 to 30 seconds before starting buffering the actual file. I've straced the smbd in the other end (the NAS server) and what happens is that XBMC is requesting a bunch of data from the whole directory (from every single file in the directory).
Whe I play a file in Library mode, again XBMC loads data from the whole directory. It takes the same 20 to 30 seconds before starting buffering.
This does not make sense, why you need to load data from every single file in the directory when you already know which file you want to play?
You will notice these delays only when you have lots of files in the same directory.
You can reproduce the problem in your own system if you have an SMB share. Just play any file and check how data about other files in the same directory is collected.
Posts: 1,533
Joined: Sep 2007
Reputation:
20
arnova
Team-Kodi Developer
Posts: 1,533
I think you're "experiencing" 2 problems: the background (fanart) scanner using the same connection which slows down the loading. And next to that an issue I'm also encountering and that is that every file inside an SMB directory is being stat()'ed. For Xbox I wrote a patch to disable this (via advancedsettings) but maybe we should commit it to the other branches too. Please create a trac report about this issue as it certainly is something that needs to be looked at...
-= Team Kodi developer fueled by heavy metal =-
Posts: 1,533
Joined: Sep 2007
Reputation:
20
arnova
Team-Kodi Developer
Posts: 1,533
Another idea is to set the content on the directory again and disable "scan for fanart"... This might improve things (if you didn't already)....
-= Team Kodi developer fueled by heavy metal =-
Posts: 178
Joined: Oct 2008
Reputation:
0
Krieg
Senior Member
Posts: 178
Any updates on this? I saw the priority of the error was changed to "normal".
I realized this problem has other implications, like when you want to watch pictures, same thing happens when you have many pictures in the directory. You need like half a minute to open a picture because always you move to a new picture data about all the pictures in the directory is collecteed. It is madness. Basically you can not watch your pictures (or you need to be really patiente and have lot of free time).
This error is pretty much a stopper for everyone with a decent collection.
Posts: 1,533
Joined: Sep 2007
Reputation:
20
arnova
Team-Kodi Developer
Posts: 1,533
You could try to disable smb_stat() with the new stat_files option in advancedsettings and see whether this improves things? Note that you need to compile an up2date version of XBMC to use this feature. Please report back if it fixed the problem.
-= Team Kodi developer fueled by heavy metal =-
Posts: 178
Joined: Oct 2008
Reputation:
0
Krieg
Senior Member
Posts: 178
I can help testing if binaries are provided either for ATV or for Hardy.
Posts: 1,533
Joined: Sep 2007
Reputation:
20
arnova
Team-Kodi Developer
Posts: 1,533
Aren't there any new SVN versions in the PPA? Else I kindly ask you set up a compile environment for Ubuntu: it's really easy if you follow the steps described in our wiki.
-= Team Kodi developer fueled by heavy metal =-