Error 12

Issue #2 closed
Former user created an issue

Hello,

I am running KMA on my laptop and I am getting an error saying: "Error: 12 (Cannot allocate memory)" within the first 5 seconds of running the script. What does this mean and how can I fix it? Thank you.

Comments (3)

  1. ptlcc

    It seems that your laptop cannot hold the database in memory. There are some solutions to this problem.

    1. If the *.comp.b file is smaller than what can be in your RAM, then you can add “-mem_mode” when performing the mapping and alignment. This will base the ConClave algorithm on the mapping scores rather than the alignment scores.
    2. You can reindex the database using a prefix to limit the database size, with “kma index -Sparse $prefix“.
    3. You can add “-mmap” when performing the mapping and alignment. This will make the database disk-based, but will hurt the compute time.

    Best,

    Philip

  2. Log in to comment