thanks david,

apparently these are the clocks of smart_cross and cue_cut that are not 
destroyed. but the problem is that the shutting down of their connected 
sources does not make those clocks go away, apparently.

1) For example, as soon as the application starts, I have those clocks 
running (monitored through get_clock_status()):

uptime
smart_cross_6251
cue_cut_6242

2) If I try to follow what happens for example to cue_cut_6242, later on 
I see its source gets activated, actual streaming starts BTW:

2013/11/16 21:31:17 [source:4] Source cue_cut_6242 gets up.
2013/11/16 21:31:17 [cue_cut_6242:4] Content kind is 
{audio=2;video=0;midi=0}.
2013/11/16 21:31:17 [source:4] Source queue_1 gets up.
2013/11/16 21:31:17 [queue_1:4] Content kind is {audio=2;video=0;midi=0}.
2013/11/16 21:31:17 [queue_1:4] Activations changed: 
static=[cue_cut_6242], dynamic=[].
2013/11/16 21:31:17 [cue_cut_6242:4] Activations changed: 
static=[skip_blank_6246:eat_blank_6247:normalize_6248:on_track_6249:on_metadata_6250:smart_cross_6251],
 
dynamic=[].

3) A bit later, that source must stop for some reason, and indeed it 
apparently stops, as requested (through source.shutdown()):

2013/11/16 21:31:26 [cue_cut_6242:4] Activations changed: static=[], 
dynamic=[].
2013/11/16 21:31:26 [source:4] Source cue_cut_6242 gets down.

4) But, a few minutes later I still have its clock alive and registered 
(the new clocks that appeared in the list below are expected because I 
re-instantiated new sources in the meantime)

uptime
wallclock_main
smart_cross_6251
cue_cut_6242
smart_cross_6346
cue_cut_6337

They are apparently not garbage collected because I could wait tens of 
minutes and they are still registered and visible.

Do I have to care if Liquidsoap runs with thousand of "inactive" clocks 
in the long run? Is it a CPU or memory hog?

thnaks

On 13/11/2013 10:54, David Baelde wrote:
> Hi,
>
> On Tue, Nov 12, 2013 at 10:13 PM, okay_awright <[email protected]> wrote:
>> When you say "crossing operators" do you mean functions that need at
>> least two sources to operate like fallback() etc or more like add() and
>> the like?
>
> I meant cross(), smart_cross() and what's derived from them. These are
> special because they combine part of a stream with another part of the
> same stream. In order to do this without creating weird side effects
> for other operators, they require exclusive control over the flow of
> time of the source, which is done by creating a special clock just for
> the crossing operator.
>
>> Do I need to watch out for other potential tricky commands and corner cases?
>
> All operator creating clocks might affect your experiment. Apart from
> crossing, soundcard I/O come to mind.
>
>> I also use once or twice some output.dummy in order to get hold of a
>> reference I would later use, if I recycle that reference (I replace its
>> associated value by another output.something(source)) does that old
>> reference and its corresponding clock get garbage collected or a do I
>> absolutely need to issue a source.shutdown() on top of it beforehand?
>
> Many outputs, such as output.dummy, output.icecast, etc. do not
> require a special clock and will thus be attached to the default
> clock. So they should not lead to an ever increasing number of clocks.
> However, if you create dummy outputs dynamically, you probably also
> want to pay attention to shutting them down so they can be garbage
> collected.
>
> Good luck minimizing the issue!
>
> David
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> ___________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>


-- 
regards,
okay_awright
<okay_awright AT ddcr DOT biz>

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to