We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I have trouble with #5 in Erlang. It is aborted. I have tested it and it takes 0.643s and answer is correct. So I have tried to set memory limit ulimit -m to 512MB and it works. But I have noticed ulimit -v set to 512MB crashes. It doesn't make sense. The virtual memory is virtual because it is not a real memory but just virtual address space. Erlang uses many various allocators which I don't have control of and allocates more memory then really uses, but it is a virtual memory, not real memory. Those are memory pages which are not really allocated and used. Anyway ulimit -v should not be used for dynamic languages like Erlang.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and the Maze
You are viewing a single comment's thread. Return to all comments →
I have trouble with #5 in Erlang. It is aborted. I have tested it and it takes 0.643s and answer is correct. So I have tried to set memory limit
ulimit -m
to 512MB and it works. But I have noticedulimit -v
set to 512MB crashes. It doesn't make sense. The virtual memory is virtual because it is not a real memory but just virtual address space. Erlang uses many various allocators which I don't have control of and allocates more memory then really uses, but it is a virtual memory, not real memory. Those are memory pages which are not really allocated and used. Anywayulimit -v
should not be used for dynamic languages like Erlang.