[Bug] Unable to Schedule Fractional CPUs on Windows 10
See original GitHub issueSearch 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.
Resources
Resources Status during Actors Creation (12 Logical CPUs / 6 Physical Cores, 32GB RAM):
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:
- Created 2 years ago
- Comments:37 (24 by maintainers)
Top 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 >
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
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?
Cheers. Totally forget about it. I spent my development life in Ubuntu. Just switched to Windows recently!