36 "process PID " << getpid() <<
", ignoring CPU affinity for "
37 "this process: " <<
xstrerr(xerrno));
40 memcpy(&cpuSet, &
theCpuSet,
sizeof(cpuSet));
44 "PID " << getpid() <<
", may be caused by an invalid core in "
45 "'cpu_affinity_map' or by external affinity restrictions");
49 "process PID " << getpid() <<
": " <<
xstrerr(xerrno));
64 "affinity for process PID " << getpid() <<
": " <<
cpu_set_t theOrigCpuSet
CPU affinity for this process before apply()
void undo()
undo CPU affinity changes for this process
void set(const cpu_set_t &aCpuSet)
set CPU affinity mask
cpu_set_t theCpuSet
configured CPU affinity for this process
void apply()
set CPU affinity for this process
bool applied()
whether apply() was called and was not undone
int sched_getaffinity(int, size_t, cpu_set_t *)
int sched_setaffinity(int, size_t, cpu_set_t *)
#define CPU_AND(destset, srcset1, srcset2)
#define debugs(SECTION, LEVEL, CONTENT)
const char * xstrerr(int error)