Page 1 of 1

Idle IO, polling plugins directory

PostPosted: Tue Jan 31, 2017 10:44 am
by abelau
Just testing out Serviio as a media server such that my photos can be viewed on the TV. Apart from missing UPnP/DLNA search function, it is working great. Thank you for this great media server.

fatrace indicates the serviio process keeps polling the "plugins" folder every ~10 seconds. The plugins folder contains one file (plugins-readme.txt). I wonder if inotify can be used instead of constant polling.

Config: Ubuntu 16.04LTS, openjdk-8, serviio v1.8

Serviio log indicates inotify-based file monitoring is active:
  Code:
[LibraryDeltaScanner] Added repository '/home/data/Photo' to delta scanner (NATIVE)


  Code:
~# fatrace
java(28528): O /home/pc5dczcbl5yt/plugins
java(28528): RC /home/serviio/plugins
java(28528): O /home/serviio/.java/.userPrefs/.user.lock.serviio
java(28528): CW /home/serviio/.java/.userPrefs/.user.lock.serviio
java(28528): O /home/serviio/plugins
java(28528): RC /home/serviio/plugins
java(28528): O /home/serviio/plugins
java(28528): RC /home/serviio/plugins
java(28528): O /home/serviio/plugins
java(28528): RC /home/serviio/plugins
java(28528): O /home/serviio/.java/.userPrefs/.user.lock.serviio
java(28528): CW /home/serviio/.java/.userPrefs/.user.lock.serviio
java(28528): O /home/serviio/plugins
java(28528): RC /home/serviio/plugins

Re: Idle IO, polling plugins directory

PostPosted: Tue Jan 31, 2017 1:02 pm
by zip
you can turn the ceck off by setting the plugins.check system variable to false

http://www.serviio.org/index.php?option ... icle&id=43

Re: Idle IO, polling plugins directory

PostPosted: Tue Jan 31, 2017 2:31 pm
by abelau
Thanks Petr for your quick reply. This eliminated the polling to the plugins folder. :)

The polling to the lock file remains, can that be eliminated also (I am being greedy :mrgreen: )

java(28528): O /home/serviio/.java/.userPrefs/.user.lock.serviio
java(28528): CW /home/serviio/.java/.userPrefs/.user.lock.serviio

and isn't it better if inotify is used to monitor the plugins folder, or is there other limitation?