[erlang-questions] max_heap_size option
Sun Nov 19 22:29:52 CET 2006
erlang:spawn_opt() has a 'min_heap_size' option for performance tuning.
This has turned out to be very useful in practice, esp. in cases where you
know that a process is going to need a big heap fairly quickly.
How about adding a 'max_heap_size' option?
I just finished adding memory supervision to erlhive. In erlhive, it's
doable, since I'm doing code transformations anyway, but it obviously adds
overhead, since it's done in Erlang code.
I haven't studied the C code to figure out how it could be implemented.
Perhaps doing a check once GC is finished, and throwing an exception if
the limit is exceeded, would be simplest?
More information about the erlang-questions