Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of memory? #198

Open
biofcallejas opened this issue Jul 24, 2023 · 1 comment
Open

out of memory? #198

biofcallejas opened this issue Jul 24, 2023 · 1 comment

Comments

@biofcallejas
Copy link

biofcallejas commented Jul 24, 2023

Hi,
I'm using jellyfish/2.3.0 with a ~160G fastq (pacbio DNAseq reads) file as follows:

jellyfish count -C -m 21 -s 280G -t 10 file.fastq -o reads.jf

The first time I got this error:

terminate called after throwing an instance of 'jellyfish::large_hash::array_base<jellyfish::mer_dna_ns::mer_base_static<unsigned long, 0>, unsigned long, atomic::gcc, jellyfish::large_hash::unbounded_array<jellyfish::mer_dna_ns::mer_base_static<unsigned long, 0>, unsigned long, atomic::gcc, allocators::mmap> >::ErrorAllocation'
  what():  Failed to allocate 256000000000 bytes of memory

I increase the memory to 280G, but now I got this error:

terminate called after throwing an instance of 'jellyfish::large_hash::array_base<jellyfish::mer_dna_ns::mer_base_static<unsigned long, 0>, unsigned long, atomic::gcc, jellyfish::large_hash::unbounded_array<jellyfish::mer_dna_ns::mer_base_static<unsigned long, 0>, unsigned long, atomic::gcc, allocators::mmap> >::ErrorAllocation'
  what():  Failed to allocate 640000000000 bytes of memory

Am I missing something? is this normal?
Any advice?

@LYC-vio
Copy link

LYC-vio commented Mar 6, 2024

Hi,
maybe you have set a too large -s. -s is not the size estimation of the input fastq/fasta file nor the amount of RAM, instead it means the number of slots in your hash table, or in other words, the estimation of how many possible types of kmers you will encounter in that file. For reads from human genome, -s 3G should be enough (as far as my experience) , or you can check the memory requirement here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants