scheduler: Log process info when its affinity cannot be changed
Include its current affinity, cmdline, and cgroup. This may help identify issues with tuning, e.g., in cases when the process disappears soon after affining it fails. Resolves: RHEL-69933
This commit is contained in:
parent
90c24eea03
commit
55e272e263
1 changed files with 3 additions and 0 deletions
|
|
@ -661,6 +661,9 @@ class SchedulerPlugin(base.Plugin):
|
|||
log.warning("Affinity of task with PID %d cannot be changed, the task's affinity mask is fixed."
|
||||
% pid)
|
||||
return True
|
||||
log.info("Task %d cmdline: %s" % (pid, self._get_cmdline(process)))
|
||||
log.info("Task %d cgroup: %s" % (pid, self._get_stat_cgroup(process)))
|
||||
log.info("Task %d affinity: %s" % (pid, list(self._scheduler_utils.get_affinity(pid))))
|
||||
except (OSError, IOError) as e:
|
||||
if e.errno == errno.ENOENT or e.errno == errno.ESRCH:
|
||||
log.debug("Failed to get task info for PID %d, the task vanished."
|
||||
|
|
|
|||
Loading…
Reference in a new issue