vagskal;614251 Wrote: 
> 
> I suspected that Erland's Custom Skip plugin could be interfering with
> the requests but since not even a SBS environment without any plugins
> would provide acceptable results I gave up that suspicion. 
> 

Does the problem only happen when you play music ?
I've seen that some operations in my plugins are a lot slower if
executed the same time as music is playing, the main reason for this is
probably that it likes to prioritize streaming before answering plugin
requests. 

Maybe the same situation also happens when Whitebear accesses the CLI
interface ?

Does it work fast if you disable all third party plugins ? If I
understand you correctly, it was slow also with plugins disabled ?

AndrewFG;614298 Wrote: 
> I don't know very much about Erlands plug-ins. However I could imagine
> that he is also talking to SC via its CLI interface (???) So far as I
> know, SC should be able to handle multiple open connections onto its
> CLI interface, but I can imagine that internally inside SC it may have
> Critical Section locks to as to serialise parallel external CLI
> requests into sequential calls on the database. And this would mean
> that if Erland is (say) issuing CLI requests and waiting a long time
> before reading back the answers, then other CLI calls (e.g. Whitebear)
> might get stuck at the end of the queue... => Perhaps we can ask Erland
> to have a look at this?
> 
I think Squeezebox Server is single threaded, so it depends on how the
different CLI commands are implemented. So I think it can handle
multiple CLI calls if they are implemented in an asynchronous way, for
example if they are doing a HTTP call and waiting for a response.
Database accesses are typically not handled asynchronous so to database
calls that needs to access the database will typically be serialized.

In my experience, playing music will affect the performance, so the
first thing I'd try is to see if it behaves the same with and without
music playing. If it is slow only when music is playing, there is
probably not much you can do about it than change to faster server
hardware.

Regarding Custom Skip plugin, it only executes once at the end of each
track, so it feels strange that it should cause these problems.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=82399

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to