Hi Martin,

The kernel that I use on the CentOS system is 4.8.12-1.el7.elrepo.x86_64
and the settings in the concerning config file that matter for this issue are:

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

The only difference with the config file being used on the Debian8 system (4.8.4 kernel from kernel.org) is the setting CONFIG_VIRT_CPU_ACCOUNTING_GEN (which is not set). IMHO this setting is not relevant for
this issue.

BTW.
In the description of bug 190271 you mention
"There is another related bug to the process accounting that I will report as well.".
Notice that this issue is not really related to process accounting,
but to the taskstats feature supplied by the netlink interface.

You can verify if this problem also applies to the 4.9 kernel that you use, you can run the program 'getdelays' from the directory '.../Documentation/accounting' in the kernel source tree, like:

# ./getdelays -m 0 -d
cpumask 0 maskset 1
print delayacct stats ON
fatal reply error,  errno -22
Sent deregister mask, retval 0

The errno -22 (EINVAL) should not happen.


Best regards,
Gerlof


On 12/13/2016 05:45 PM, Martin Steigerwald wrote:
Hello.

I reported the kernel bugs

[Bug 190271] New: process accounting sometimes does not work
https://bugzilla.kernel.org/show_bug.cgi?id=190271

I did not report the other issue yet, since I am not clear whether it is a
configuration issue with the Debian kernel.

Gerlof, thank you for the config file for the Debian kernel. Is  the kernel you
use on CentOS configured in the same way? If not, do you have a config file for
it as well?

Thanks,

Reply via email to