Skip to content

Commit

Permalink
Revert "[core] Clear CPU affinity for worker processes (ray-project#3…
Browse files Browse the repository at this point in the history
…6816)"

This reverts commit 92cc3c3.
  • Loading branch information
rkooo567 committed Jun 29, 2023
1 parent 92cc3c3 commit 7d52f00
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/ray/util/process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,6 @@ class ProcessFD {
_exit(pid2 == -1 ? errno : 0); // Parent of grandchild; must exit
}
// This is the spawned process. Any intermediate parent is now dead.

// Clear any CPU affinity that might have been inherited from the raylet.
// See https://github.com/ray-project/ray/issues/35984.
cpu_set_t mask;
CPU_ZERO(&mask);
sched_setaffinity(0, sizeof(mask), &mask);

pid_t my_pid = getpid();
if (write(pipefds[1], &my_pid, sizeof(my_pid)) == sizeof(my_pid)) {
execvpe(
Expand Down

0 comments on commit 7d52f00

Please sign in to comment.