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.

Limiting number of cpus used?

See original GitHub issue

I’ve been noticing that when I run UMAP part of the computation runs in parallel. I’d like to be able to limit the number of processes that get used per transformation. This would be useful for keeping a decent cpu utilization rate without risking getting my jobs killed.

I’ve tried limiting the number of threads numba uses (numba.config.NUMBA_NUM_THREADS), but that hasn’t seemed to work.

Is this something which is currently configurable, or a feature that could be added?

Thanks!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
lmcinnescommented, Apr 14, 2021

Yes, that pull request got merged and the n_jobs parameter now makes use of it, so it should work if you set it.

1reaction
sleighsoftcommented, Oct 16, 2019

@ivirshup Any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Limit the Number of CPU Cores used by A Process on ...
Right-click on the process you want and select “Set Affinity” to change the CPU cores number. ... Now select the cores which you...
Read more >
How to Limit the CPU Usage for a Single Program in Windows
Find and expand the Processor Power Management option. Click on the Maximum processor state option and edit the values. It will be 100...
Read more >
How to limit number of CPU's used by a python script w/o ...
I am looking for a way to limit a python scripts CPU usage (not priority but the number of CPU cores) with python...
Read more >
Are there solutions that can limit the CPU usage of a process?
Go to Task Manager. · Right-click the process for which CPU usage is to be limited. Click Go to details. · Now, the...
Read more >
How to limit the number of processors used by Denodo
Setting the CPU quota, to indicate the percentage of CPU that Denodo is allowed to use, that is converted to an equivalent number...
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