Coder Social home page Coder Social logo

Memory reservation in dbgh5 about gatb-core HOT 4 CLOSED

gatb avatar gatb commented on July 18, 2024
Memory reservation in dbgh5

from gatb-core.

Comments (4)

rchikhi avatar rchikhi commented on July 18, 2024

Thanks for the bug report. Unfortunately I can't reproduce it. Can you reproduce it on a different file, or just this one? Regardless, can you please give me the input file? (e.g. https://transfer.sh)

I tried the following (on my machine and genocluster):

$ bin/dbgh5 -in ../test/db/microsnp.fa -kmer-size 12
[DSK: Collecting stats on microsnp       ]  100  %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu:  -1.0 %   mem: [  16,   16,   16] MB
[DSK: nb solid kmers found : 0           ]  100  %   elapsed:   0 min 2  sec   remaining:   0 min 0  sec   cpu: 111.1 %   mem: [ 223,  223,  223] MB B

EXCEPTION: This dataset has no solid kmers

and

seqtk seq ../test/db/reads3.fa.gz  | head -n 2000 > 1000kreads.fa
$ bin/dbgh5 -in 1000kreads.fa
[DSK: Collecting stats on 1000kreads     ]  100  %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu: 100.0 %   mem: [  28,   28,   28] MB
[DSK: Pass 1/1, Step 1: partitioning     ]  27.3 %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu: 175.0 %   mem: [  93,   93,   93] MB
[etc.. running fine]

from gatb-core.

cguyomar avatar cguyomar commented on July 18, 2024

I have exactly the same problem with the microsnp dataset

$ bin/dbgh5 -in ../test/db/microsnp.fa -kmer-size 12
[DSK: Collecting stats on microsnp       ]  100  %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu:  -1.0 %   mem: [  17,   17,   17] MB 
[DSK: Pass 1/1, Step 1: partitioning     ]  0    %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu:  -1.0 %   mem: [  46,   46,   75] MB 
EXCEPTION: Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 16 and capacity is 5242881152
Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 32 and capacity is 5242881152
Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 48 and capacity is 5242881152
Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 64 and capacity is 5242881152
Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 80 and capacity is 5242881152
Pool allocation failed for 0 bytes (kmers alloc), mainbuffer is null?. Current usage is 96 and capacity is 5242881152
$ bin/dbgh5 -in ../test/db/microsnp.fa -kmer-size 12 -max-memory 1000
[DSK: Collecting stats on microsnp       ]  100  %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu:   0.0 %   mem: [  17,   17,   17] MB 
[DSK: nb solid kmers found : 0           ]  100  %   elapsed:   0 min 0  sec   remaining:   0 min 0  sec   cpu: 105.3 %   mem: [  73,   73,   75] MB B 

EXCEPTION: This dataset has no solid kmers

from gatb-core.

rchikhi avatar rchikhi commented on July 18, 2024

I see. Maybe the problem is limited to machines with 8GB of RAM. I'll keep this issue open and get back to it at some point.

from gatb-core.

rchikhi avatar rchikhi commented on July 18, 2024

Have recently committed a possibly related memory allocation fix:
e99c5d7

from gatb-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.