canvas icon indicating copy to clipboard operation
canvas copied to clipboard

Limiting number of threads to use

Open holtgrewe opened this issue 7 years ago • 6 comments

How can I limit the number of threads to use by Canvas? This is important in shared environments such as HPC clusters.

holtgrewe avatar Oct 07 '16 10:10 holtgrewe

It's not possible yet, but it is something we are planning to do. I agree it is a useful feature for cluster computing.

eroller avatar Oct 07 '16 21:10 eroller

Hi, I was wondering whether you have made any progress on this issue.

dvav avatar Dec 08 '17 15:12 dvav

There have been improvements in the framework we are using to manage CPU/memory usage which should make this update easier, but we haven't had the time to update Canvas to utilize the new functionality. Specifically we need to add configuration options (or command line options) to specify maximum number of CPUs/memory and then wire those options up in each Canvas component. No clear timeline for this to get done, although I believe we will need to add this functionality in the beginning of next year.

eroller avatar Dec 13 '17 18:12 eroller

Hi Eric,

Has this been implemented in the newest version? The Somatic-WGS workflow takes about 90GB of memory to run, which might be difficult to provide all the time.

Thanks, Rashesh

Rashesh7 avatar Jul 09 '18 16:07 Rashesh7

This still hasn't been implemented. The memory usage is dependent on the number of cores available on the machine. For high core machines with low amount of memory this could cause a problem.

eroller avatar Jul 10 '18 16:07 eroller

Hi guys,

The fact that Canvas just consumes all the cores on the machine makes it extremely difficult to use in a shared resource environment like our HPC cluster. Also, on a machine with 32 cores, Canvas is using around 140G of vmem. Having some way to control that would be extremely important, in my view!

DaGaMs avatar Apr 20 '20 21:04 DaGaMs