Nextomics/NextPolish2

memory allocation failed

Ne0tea opened this issue · 5 comments

Ne0tea commented

Hi!
I was tring to polish a genome with 1.3g at a node with 2T memory, but constantly got the error of "memory allocation of xxx bytes failed". According to your previous recommendation, I decraesed -t to 1, and it failed. Then, I split my genome and bam file, while it turns out the same error.
Could you please your comments?

moold commented

Can you download the latest version and try again? If still have this error? Can you paste the full error message here?

Ne0tea commented

Thanks for your comment!
The error message is
Starting Wed Aug 2 21:37:35 CST 2023 node21 memory allocation of 835916608 bytes failed /opt/gridview//pbs/dispatcher/mom_priv/jobs/42661.tc6000.SC: line 19: 371102 Aborted (core dumped) ~/software/next_polish2/target/release/next_polish2 -t 20 -r $bam $asm ${yak1} $yak2 > ${asm%.*}_gfa_chr_np2.fa Finished
Starting Wed Aug 2 13:49:00 CST 2023 node21 memory allocation of 835916608 bytes failed /opt/gridview//pbs/dispatcher/mom_priv/jobs/42634.tc6000.SC: line 19: 373261 Aborted (core dumped) ~/software/next_polish2/target/release/next_polish2 -t 1 -r $bam $asm ${yak1} $yak2 > ${asm%.*}_gfa_chr_np2.fa Finished
and nextpolish2 version is
1691075451128

moold commented

Did you run the test data successfully?

Ne0tea commented

image
yeah, it is successful with test data.

Thanks for your comment! The error message is Starting Wed Aug 2 21:37:35 CST 2023 node21 memory allocation of 835916608 bytes failed /opt/gridview//pbs/dispatcher/mom_priv/jobs/42661.tc6000.SC: line 19: 371102 Aborted (core dumped) ~/software/next_polish2/target/release/next_polish2 -t 20 -r $bam $asm ${yak1} $yak2 > ${asm%.*}_gfa_chr_np2.fa Finished Starting Wed Aug 2 13:49:00 CST 2023 node21 memory allocation of 835916608 bytes failed /opt/gridview//pbs/dispatcher/mom_priv/jobs/42634.tc6000.SC: line 19: 373261 Aborted (core dumped) ~/software/next_polish2/target/release/next_polish2 -t 1 -r $bam $asm ${yak1} $yak2 > ${asm%.*}_gfa_chr_np2.fa Finished and nextpolish2 version is 1691075451128

this tools may has a high resource consumption, I met the same problem as you, so I separate the Chr into different file and run them again in a separate way, it worked well