From 7d52f00834ca67bf8232119a8eb8954515f29b24 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Thu, 29 Jun 2023 08:57:02 -0700 Subject: [PATCH] Revert "[core] Clear CPU affinity for worker processes (#36816)" This reverts commit 92cc3c38aa26bc9f7f7a637caba7898de41e0f56. --- src/ray/util/process.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/ray/util/process.cc b/src/ray/util/process.cc index 6bcb093afe00..a3e8d6bb6055 100644 --- a/src/ray/util/process.cc +++ b/src/ray/util/process.cc @@ -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(