Hello,
when trying to mount a large FASTA file (~30GB) with mmap, Rust is giving me an OOM panic:
fusta --no-daemon --max-cache 10000 SILVA_123.1_SSURef_Nr99_tax_silva_full_align_trunc.fasta
[INFO] Caching method: Mmap
[INFO] Reading SILVA_123.1_SSURef_Nr99_tax_silva_full_align_trunc.fasta...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 12, kind: OutOfMemory, message: "Cannot allocate memory" }', src/fs.rs:601:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'm not sure if that can be solved, or is a general limitation of mmap for such large files. Maybe at least the exception could be caught and a suggestion could be printed to use --cache file instead? It works fine with that option, and is surprisingly fast!
Cheers
Lucas
Hello,
when trying to mount a large FASTA file (~30GB) with mmap, Rust is giving me an OOM panic:
I'm not sure if that can be solved, or is a general limitation of mmap for such large files. Maybe at least the exception could be caught and a suggestion could be printed to use
--cache fileinstead? It works fine with that option, and is surprisingly fast!Cheers
Lucas