>
>
>>
>> Also can you test this:
>>
>> type = calendar
>> desc = test context
>> time = * * * * *
>> context = ALIVE
>> action = create ALIVE 60
>>
>> type = single
>> desc = prime
>> ptype = substr
>> pattern = prime
>> action = create ALIVE 60
>>
>> type = single
>> desc = test
>> ptype = substr
>> pattern = test
>> context = ALIVE
>> action = write - I am alive
>>
>> type = single
>> desc = test
>> ptype = tvalue
>> pattern = true
>> action = write - I am dead
>>
>> If I send on stdin:
>>
>> ( echo prime; yes test ) | sec ...
>>
>> I end up dead at some point (which is quite disturbing 8-) ). Usually
>> in under 24 hours. This smells like a timing issue somehwere, possibly
>> in perl. I did at one point use a lifetime of 62 seconds which
>> IIRC worked fine, but I would be interested if the 60 second period
>> works for you.
>>
> ...
> More commonly, however, this scenario could happen because of slow IO. In
> order to make sec usable for unix pipelines, sec actions which write to
> standard output do it in a blocking manner, and this includes 'write -
> <string>'. For example, if you invoke
> ( echo prime; yes test ) | sec | less
> it is very easy to reproduce the "dead" event by just leaving 'less'
> untouched in a terminal window for a few moments. The pipe buffer between
> sec and less will fill up very quickly, and as a result, the sec process
> will block on a pipe. The same kind of blocking could happen for any slow
> reader, and it could accidentally offset the processing of the Calendar
> rule.
>
>
...also, for testing if the problem is IO related, the ruleset could be
modified in the following way -- instead of 'action=write - I am alive' use
action=none
and instead of 'action=write - I am dead' use
action=write - I am dead; eval %o ( exit(1) )
I had the ruleset running for couple of days without seeing the abnormal
exit, and if you are able to see the same on your test system, the whole
thing is probably related to blocking write.
kind regards,
risto
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users