From: Raul Parolari on
Walton Hoops wrote:
> On 4/27/2010 12:01 PM, Raul Parolari wrote:
>>..
>> So, Ruby is above our hopes ("in average") for high speed comm, but it
>> is not predictable (the maximum delay in the above example being 25
>> times the average, which would force us to set the timeouts absurdly
>> high). Something happens inside Ruby once in a while which freezes it;
>> from here, my suspicion of the garbage collector.
>>
>
> A quick way to confirm that would be to disable garbage collection via
> GC.disable(). Of course this will result in a memory leak, but is the
> best way to test for sure if the GC is the problem. If it turns out
> that it is, indeed the GC, you could just disable it for the critical
> sections.

Walton

excellent suggestion; I will try it as soon as I can.

While the move to C++ may not reversible for us, I still want to know
the whole Ruby story on this point; and I will report back.

Thanks

Raul
--
Posted via http://www.ruby-forum.com/.

From: Caleb Clausen on
On 4/27/10, Raul Parolari <raulparolari(a)gmail.com> wrote:
> can you point out a link to how to do that (making GC to happen every
> time?); I found pages which mention setting Ruby Constants, but let me
> know what is the best page if you have the chance.

Just call GC.start inside your main loop somewhere. Like right before
or after the call to recv.