#104: Latency caused by slow resolving
-------------------------+--------------------------------------------------
Reporter: mrpingouin | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone:
Component: Liquidsoap | Version:
Resolution: | Keywords:
Mac: 1 | Other: 1
Freebsd: 1 | Linux: 1
-------------------------+--------------------------------------------------
Comment (by mrpingouin):
La nuit porte conseil. I think that our code is fine, and that the latency
is normal: the difference between a download and my resolution process is
that I call mp3/vorbisgain which does very intensive use of the CPU.
Especially on a small box like ours, it is normal that the liquidsoap
process gets less CPU for itself under these circumstances. I've niced my
gain computations, it seems to help. I'll confirm that soon.
But let's keep the ticket open for another suspicion about Utils.system. I
experienced a hangup when starting liquidsoap as a daemon, when there was
a system() call in the script. Then I realized that the was nothing in
Utils.system for distinguishing whether liquidsoap actually started. I'm
wondering if such things couldn't lead to hang. On the other hand, logging
before starting, afair, doesn't block and just stores the message for
later output.
I leave this as a reminder, I'll do more tests soon.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/104#comment:1>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !