X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=03b163ef80e145f340d5ddd817dda0c65fecf1cc;hb=afd75fe5d47118d51c58d338a2f54fbe3327fb95;hp=d830573b6f5f3c210be4e35b895e1abd8e53f948;hpb=935aa663ec5a952c51c3b2cd36d6ca70377e3c61;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index d830573b..03b163ef 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -8865,6 +8865,33 @@ dynamic number assigned by the kernel. Otherwise, CnE> is used if there is only one package and CnE-coreEmE> if there is more than one, where I is the n-th core of package I. +=item B I|I + +Reading data from CPU has side-effect: collectd process's CPU affinity mask +changes. After reading data is completed, affinity mask needs to be restored. +This option allows to set restore policy. + +B (the default): Restore the affinity by setting affinity to any/all +CPUs. + +B: Save affinity using sched_getaffinity() before reading data and +restore it after. + +On some systems, sched_getaffinity() will fail due to inconsistency of the CPU +set size between userspace and kernel. In these cases plugin will detect the +unsuccessful call and fail with an error, preventing data collection. +Most of configurations does not need to save affinity as Collectd process is +allowed to run on any/all available CPUs. + +If you need to save and restore affinity and get errors like 'Unable to save +the CPU affinity', setting 'possible_cpus' kernel boot option may also help. + +See following links for details: + +L +L +L + =back =head2 Plugin C