You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exercise suggested "You can also try running more of the experiment tasks and see what happens". While, after changing up the experiment runs, the get_logs would not immediately return results anymore.
I'm curious of why is this behavior? Does it have something to do the number of CPU that the number of experiments can't be more than the number of CPU - 1?
The text was updated successfully, but these errors were encountered:
arisliang
changed the title
exercise 8: more experiment causes the get_logs to not return
exercise 8: why more experiment causes the get_logs to not return?
May 12, 2018
Yes, I think that's what's happening. If all of the CPUs are running run_experiment tasks, then the actor method task never gets scheduled. However, you can give a "dedicated core to the actor by changing the decorator to @ray.remote(num_cpus=1), in which case the actor will always own one core even if it is not doing anything.
While running the experiment, the CPU is not 100% utilized, which makes sense since the only thing run_experiment does is to sleep, which shouldn't block the CPU.
So why the actor method task still never gets scheduled, while the CPU isn't busy?
Does it mean that each run_experiment task also "own one core" even if it is not doing anything, like the way you mentioned what we can specify for actor?
And if actor does own one core, the number of run_experiment tasks (3) would now be more than the available cores (2), does it mean that some of the run_experiment task never gets scheduled like the actor previously?
The exercise suggested "You can also try running more of the experiment tasks and see what happens". While, after changing up the experiment runs, the get_logs would not immediately return results anymore.
I'm curious of why is this behavior? Does it have something to do the number of CPU that the number of experiments can't be more than the number of CPU - 1?
The text was updated successfully, but these errors were encountered: