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.

[Bug] Unable to Schedule Fractional CPUs on Windows 10

See original GitHub issue

Search before asking

  • I searched the issues and found no similar issues.

Ray Component

Ray Core

What happened + What you expected to happen

The Problem:

With enough available resources (i.e. 12 CPUs), Actor number 13 is always pending regardless of the fractional CPU assigned to it. Then after that, most Actors keep pending.

3

4


Resources

Resources Status during Actors Creation (12 Logical CPUs / 6 Physical Cores, 32GB RAM):

2

5

1

Versions / Dependencies

Ray version 1.9.0

Redis version 4.0.2

Reproduction script

  import time
  import ray
  
  @ray.remote(num_cpus=0.01)  # tried different values
  class Actor:
      def __init__(self):
          pass
  
  if __name__ == '__main__':
      try:
          ray.init(num_cpus=12)  # tried different values
          time.sleep(30)
          for i in range(50):
              Actor.options(name=str(i + 1), lifetime="detached").remote()
              time.sleep(10)
      except Exception as e:
          print("Exception {} ".format(str(e)))
      finally:
          ray.shutdown()

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:37 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
pcmoritzcommented, Dec 17, 2021

That’s awesome! Thanks for your help resolving this (and reporting it!).

Yes it will be part of the 1.10 release. In 1.10 we will likely declare single node Ray core on Windows stable, I actually think that https://github.com/ray-project/ray/pull/20986 was the last big bug of Ray core on Windows given that many tests started passing after it was merged (fingers crossed). There are some components that need more work (like runtime environments) that are not used by default and we will address those in Q1 of 2021.

I’m going to go ahead and close this issue, @czgdp1807 can you open a separate one for the investigation about the warning for users if actors are waiting to be scheduled for an extended period of time due to lack of resources?

1reaction
John-Almardenycommented, Dec 17, 2021
https://s3-us-west-2.amazonaws.com/ray-wheels/master/4dcba1d0f43880bf22297f1bc9478930b85038ac/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl

Cheers. Totally forget about it. I spent my development life in Ubuntu. Just switched to Windows recently!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 only shows 1 core on 4 core CPU
Type msconfig in Search box, Run as Administrator, go into Boot tab, then Advanced Settings, uncheck the box for Number of Processors, restart...
Read more >
AMD Ryzen Performance Negatively Affected by Windows 10 ...
A newly discovered bug in Windows 10's scheduler has been found to be negatively affecting performance of AMD Ryzen CPUs.
Read more >
How to Fix 100% CPU Usage in Windows 10 - YouTube
100% CPU usage is an all too common problem in Windows 10. There are many reasons this can happen – from Windows processes...
Read more >
24-core CPU and I can't move my mouse | Random ASCII
My Windows 10 work machine has 24 cores (48 hyper-threads) and they were 50% idle. It has 64 GB of RAM and that...
Read more >
100% CPU Usage in Windows? Here's How to Fix it
Go back to Task Manager, click the “Details” tab, then sort the processes by “PID.” Find the process with the error, right-click it...
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