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.

Automatically detect available cores and memory

See original GitHub issue

Currently if the user does not provide cores and memory options we provide an informative error message asking them to provide cores= and memory= keywords.

By inspecting the local machine, we might change this slightly in two ways:

  1. Provide suggested values like "please provide the following keyword arguments cores=24, memory="500 GB"
  2. We could do this automatically, and change the error to a warning

If I recall correctly we guessed cores and memory previously, but we decided to not do this because sometimes the login nodes were different than the compute nodes. Should we reconsider this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lestevecommented, Aug 26, 2019

I am not too convinced by auto-detection I have to admit. Maybe having a more helpful error message with a few examples could help? Something like this:

Please provide cores and memory. Here are a few examples:
cluster = FooCluster(cores=1, memory='10GB')
each job you are starting afterwards, e.g. by using cluster.scale, will use one core and 10GB of memory.

cluster = FooCluster(cores=6, processes=2, memory='10GB')
each job you are starting afterwards, e.g. by using cluster.scale, will use 6 cores with 3 threads per process and 10GB of memory.

If you are familiar with your job scheduler, you can look at the output of cluster.job_script() to see the full script which is going to be submitted.

Better wording more than welcome!

I noticed another midly annoying thing so I opened https://github.com/dask/dask-jobqueue/issues/329.

0reactions
guillaumeebcommented, Aug 30, 2019

Ah, most of the machines I deal with are pretty homogeneous. It sounds like I have a biased sample though.

Cheyenne and Summit are special references 😃. It maybe funding principles between US and Europe which differ. I’ve Seen a lot of non heterogeneous platforms here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect the Number of CPU Cores - R
This attempts to detect the number of available CPU cores. It has methods to do so for Linux, macOS, FreeBSD, OpenBSD, Solaris and...
Read more >
R: how to check how many cores/CPU usage available
Your best bet is to use task manager (windows) or something like top or htop (linux) to see what each core is doing,...
Read more >
How To Enable All Cores in Windows - Alphr
Select Ctrl + Shift + Esc to bring up Task Manager. · Select Performance and highlight CPU. · Check the lower right of...
Read more >
ACTIVATING ALL THE CORES ON MY PC
I want to use NOX Emulator and to increase the performance I'd like to enable/utilize all the cores I have. My PC specifications...
Read more >
HOW TO ENABLE ALL CORES IN WINDOWS 10 - YouTube
Many games and other processor-heavy applications really require the CPU power of multiple cores. However, even if you have a dual, quad, ...
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