Low cpu usage?
See original GitHub issueHello!
I am running TractSeg with --nr_cpus 8. I’ve noticed that TractSeg doesn’t even pass 200% cpu usage while it runs.
The following is the typical resource usage graph for app-tractseg

I am wondering if --nr_cpus is not properly applied, or maybe we are not using this option right?
TractSeg -i dwi.nii.gz --raw_diffusion_input \
--csd_type $(jq -r .csd config.json) \
--output_type tract_segmentation \
--keep_intermediate_files \
--postprocess \
--nr_cpus 8 \
-o . \
$opts
https://github.com/brainlife/app-tractseg/blob/1.7.1/run.sh#L35
Please comment!
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Low cpu usage and sudden frame drops in games
The game runs fine for like 3min then it starts lagging out immensely. My CPU also runs only at around 10% capacity while...
Read more >How to Lower CPU Usage
First is your power plan. You can adjust this by going to Start > typing "power plan"> "Show additional plans"> Choose "High Performance...
Read more >low cpu usage and low fps
CPU Bottlenecks happen when the processor gets too hot and the built in safety precautions force it to run at a much lower...
Read more >FIX: CPU Not Running at Full Speed in Windows 10.
The first method to resolve the low CPU speed in Windows 10, is to set the processor performance state to maximum. To do...
Read more >How to Fix High CPU Usage
How to Fix High CPU Usage · 1. Reboot · 2. End or Restart Processes · 3. Update Drivers · 4. Scan for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I seems like using python 3 + pytorch 1.0 (instead of python 2.7 + pytorch 0.4) increases the CPU usage significantly. Runtime therefore decreases by a factor of at least 3x.
I tried it with a higher batch size. This increased the runtime by around 30% but CPU usage is still way below 100%. The downside of increasing the batch size is higher memory usage (around 30GB of RAM).