GithubHelp home page GithubHelp logo

Comments (5)

lh3 avatar lh3 commented on September 4, 2024

PS: I should add that the issue may depend on available RAM and other processes running on the same machine. On a just rebooted machine or on a machine with lots of free RAM, the issue may be alleviated.

from wtdbg2.

lh3 avatar lh3 commented on September 4, 2024

PSS: I have updated the precompiled binaries in the release page. wtdbg2, wtdbg-cns and wtpoa-cns in the binary tar-ball are now statically linked to TCMalloc. They are faster on my machine. Not sure if you can see the difference on your side.

from wtdbg2.

ruanjue avatar ruanjue commented on September 4, 2024

Dear Heng,

wtpoa-cns and wtdbg-cns used the same schema in paralleling. They take one contig and break the task into mutiple parallel parts naturally according to edges in wtdbg, then merge the consensus edge sequences into the contig sequence.

If paralleling in contigs instead of edges within contig, the CPU usage will be expected as -t 16. But my concern was the various contig lengths might leave some threads run much much longer than others.

Another way might be seprating the 'edge consensus sequence' and 'merging edges'. For all contigs, we first build consensus edge sequences and write a prefix.ctg.lay.edges.fa file, it will take full CPU usage. Then, merging, it also will take full CPU usage. Let me try it.

from wtdbg2.

lh3 avatar lh3 commented on September 4, 2024

On my machine, the problem is not caused by some threads running longer. Using tcmalloc wouldn't help in that case. I believe the slowdown is due to frequent malloc calls. I have seen similar behaviors a few times before.

from wtdbg2.

ruanjue avatar ruanjue commented on September 4, 2024

Hi Heng,

You are right, the frequent malloc calls slowed down multi-threads. I have located the causal codes.

Thanks very much!
Jue

from wtdbg2.

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.