4 ms·
Hi Phil, One thing you might find interesting - a small, crude experiment suggests that changing maxBlocking.erl to use process hibernation for those dormant p
by tonyg 8y ago
Hi Phil,
One thing you might find interesting - a small, crude experiment suggests that changing maxBlocking.erl to use process hibernation for those dormant processes could almost double the max number of processes Erlang can support.
I changed maxBlocking.erl's final few lines to read
p() ->
erlang:hibernate(?MODULE, q, []).
q() ->
receive
"hello" ->
io:format("Hello")
end.
RabbitMQ uses hibernation in many places to reduce memory usage when many resources are being managed by the server.
- trinder 8y agoThanks for the info. We're not ninja developers in any of the languages.