memoryrakumoarvm

perl6 How to give more memory to MoarVM?


I have to run data analysis on about 2 million lines of data and each line about 250 bytes long. So total about 500 megabytes of data. I am running latest Rakudo on Virtualbox Linux with 4G memory.

After about 8 hours, I got MoarVM panic due to running out of memory. How do I give more memory to MoarVM? Unfortunately I cannot break up the 2 millions into chunks and write to a files first because part of the data analysis requires the whole 2-m lines.


Solution

  • I suggest you tackle your problem in several steps:

    If you don't know how to do any of these things, ask in the comments.

    If all the above is fairly easy, repeat for a 100,000 line file.

    Then we should have enough data to give you better guidance.