Page 1 of 1
Auto Library update request

Posted:
Sat Mar 10, 2012 10:59 am
by smidgey
G'day,
I'm not sure if Serviio already does this or not, but I've been noticing that if I am playing a video on my WDTV and Serviio starts looking for new files it churns the drive and causes stuttering in my playback. What I am requesting is the ability to either limit the rate at which Serviio hunts for updates, or to update only when not streaming media. In the interim I've disabled automatic updating, but I typically rely on the feature as I have programmes appearing on my drive 'automagically'.
Regards,
Smidge.
Re: Auto Library update request

Posted:
Sat Mar 10, 2012 11:25 am
by will
You could turn off the check for updates to files so that serviio only looks for new files (Library and untick seach for updates to currently shared files). In the future once Java 7 is used, the OS will notify serviio when files have been added so the process should be much less intensive.
Re: Auto Library update request

Posted:
Sat Mar 17, 2012 9:16 am
by smidgey
Cheers for the response,
I've been running with all library updating turned off for a week now and it was definitely the culprit causing my video streams to stutter. Do you know if the Java 7 API will notify about all file system changes (i.e. creation, deletion, rename etc)?
For now I'll just remember to press the force refresh button every so often, and Serviio continues to be absolutely rock solid. Cheers for the advice.
Re: Auto Library update request

Posted:
Sat Mar 17, 2012 10:31 am
by will
Yes, but it doesn't work for network drives so zip is writing a custom implementation somewhere between what we have now and what java 7 supports so that it will be the same accross all types of folders.
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 10:29 am
by NotAgain
Will simply using Java7 enable this, or is there still server side work to be done?
(If it makes any difference, I'm using the OpenJDK version of Java7 on Ubuntu 11.10 and Serviio 0.6.2)
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 10:45 am
by will
Using java 7 wouldn't automatically enable it, but as I said, because it only works for local drives, and not network drives, it won't be used and something in between what we have now and what java 7 supports for local drives will be used. This is so that is is consistant accross local and network folders. At least, that is the current plan as far as I know.
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 11:12 am
by NotAgain
Any idea in timescales? I'm trying to work out if it's worth sticking with my current solution until serviio supports file monitoring, or if I need to look elsewhere (I have about 40K files across nearly 1K directories so timed scans put too much of a load on the server and it's disks).
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 11:19 am
by will
Its planned for Serviio 1.0, zip will comment on the exact timeframe, but something like a month for the first beta+/-a week or two, and then a few months of testing before the final release. Once the beta is out, you would be more than welcome to join the beta testers group and test out the performance improvements made.
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 4:35 pm
by NotAgain
Thanks. I'll keep an eye on the RSS feed for the arrival of 1.0 and go play with some other options in the meantime.
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 6:30 pm
by zip
The new file monitoring is not planned for 1.0 at this time.
Re: Auto Library update request

Posted:
Sun Mar 18, 2012 7:10 pm
by will
Ok sorry, my mistake.
Re: Auto Library update request

Posted:
Sun Apr 29, 2012 7:03 am
by smidgey
zip wrote:The new file monitoring is not planned for 1.0 at this time.
In that case a hack to limit the rate at which Serviio scans would be greatly appreciated. If I had access to the source I'd have patched it myself as I use Serviio daily.
Regards,
Smidge.
Re: Auto Library update request

Posted:
Sun Apr 29, 2012 7:50 am
by smidgey
smidgey wrote:zip wrote:The new file monitoring is not planned for 1.0 at this time.
In that case a hack to limit the rate at which Serviio scans would be greatly appreciated. If I had access to the source I'd have patched it myself as I use Serviio daily.
Regards,
Smidge.
Never mind, I decompiled LibraryAdditionsCheckerThread.class, inserted ThreadUtils.currentThreadSleep(150L); into the inner loop of the searchForNewFiles() function, re-compiled, and set sail for home theatre nirvana.