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]> 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 >-- >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/574BECF6.1060309%40gmail.com. >For more options, visit https://groups.google.com/d/optout. -- Best wishes, Dmitry Belyaev -- 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/202EAC57-9B3D-4A11-B31F-DD16FC44A89B%40gmail.com. For more options, visit https://groups.google.com/d/optout.
