A thing to realise is that GC times are generally very short as you are 
only collecting one process at a time. Sorry I missed whether you are 
measuring cpu execution time or clocktime. Another way is to use the 
tracing facility to keep track of what is happening in your process, when 
it is being scheduled in and out and when it is garbage collecting. This 
will give you much better information about what is going on in your 
process.

Robert


On Tuesday, 31 May 2016 11:59:05 UTC+2, Tobias Pfeiffer wrote:
>
> Thank you very much for that pointer, that looks helpful :) I'll also 
> make sure to ask over at erlang-questions! 
>
> Tobi 
>
> On 05/31/2016 01:29 AM, Dmitry Belyaev wrote: 
> > Returning to the available choices rather than discussion of necessity. 
> > 
> > You can try to use erlang:spawn_opt 
> > http://erlang.org/doc/man/erlang.html#spawn_opt-2 setting 
> > fullsweep_after and min_heap_size to high values to reduce chances of 
> > garbage collection. 
> > 
> > You should also ask this in erlang-questions list as there are some 
> > people who know internals of beam vm but don't track questions in this 
> > mailing list. 
> > 
> > On 30 May 2016 5:34:14 PM AEST, Tobias Pfeiffer <[email protected] 
> <javascript:>> wrote: 
> > 
> >     Hi everyone, 
> > 
> >     is there a way in Elixir/Erlang to turn off the Garbage collection? 
> I've 
> >     searched and what I found so far is :erlang.garbage_collect to force 
> >     garbage collection. 
> http://erlang.org/doc/man/erlang.html#garbage_collect-0 
> > 
> >     Is there any way to turn it off completely? 
> > 
> >     Why would I want to do that? I'm working on a benchmarking tool and 
> I 
> >     don't want garbage collection to mess with my measured execution 
> times. 
> > 
> >     Any hints welcome :) 
> >     Tobi 
> > 
> > 
> > -- 
> > Best wishes, 
> > Dmitry Belyaev 
>
> -- 
> http://www.pragtob.info/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/4f1ed757-e5c3-4591-986d-5d70d8a022e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to