question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello!

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

screenshot from 2018-12-06 18-59-32

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:closed
  • Created 5 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wasserthcommented, Jan 21, 2019

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.

0reactions
wasserthcommented, Dec 21, 2018

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found