+11
−22
+1
−1
Loading
Initially, this was done in order to reduce jitter on the cpus the SPDK processes would execute on - every other process was being moved to a dedicated "all" cgroup which would limit cpus and mem nodes to those SPDK was being moved away from. This was done at early stages of the dynamic scheduler where it was not known were potential discrepancies in tests are coming from. Most of these issues had been already resolved, hence there is no need to perform such an invasive action anymore. In fact, under newer kernels (6.8.x) this cgroup dance causes a peculiar issues where some of the processes become unresponsive when suddenly moved from their designated cgroup. Instead, move only processes associated with a test (this would include SPDK processes executed along the way) to a separate cgroup with appropriate setup. While at it, enhance remove_cgroup() to make sure all lingering leaf cgroups are removed as well - this is actually needed since our cleanup() was leaving unattended cgroups around - /cpuset/all and /cpuset in particular. Since this patch now tries to rely only on /cpuset we need to make sure we can properly remove it without hitting -EBUSY. Change-Id: I450535959e323980341ffbc9723d38092aa1051d Signed-off-by:Michal Berger <michal.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22859 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Karol Latecki <karol.latecki@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>