Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1544697

Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly
Date 2016-12-19 18:30 +0100
Message-ID <sQ9V7-2r7-9@gated-at.bofh.it> (permalink)
References <sQ558-7DY-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Dec 19, 2016 at 01:06:00PM +0100, Martin Steigerwald wrote:
> 
> 2) When using the NETLINK inface, the command TASKSTATS_CMD_GET 
> consequently returns -EINVAL.
> 
> The code that is used by the atopacctd daemon is based on the demo code 
> 'getdelays.c' that can be found in the kernel source code tree
> (..../linux/Documentation/accounting/getdelays.c). Also this 'getdelays' 
> program does not work any more (also -EINVAL on the same call)
> with the newer kernels. I really spent a lot of time on this issue to 
> get the code running (there are many places in the kernel code where
> -EINVAL for this call can be given), but I did not succeed. It is really 
> an incompatibility introduced by the kernel code.
> It would be nice if the kernel maintainers provide a working version of 
> the getdelays program in the kernel source tree.
> 
> I only experience this problem on Debian8 with a 4.8 kernel (virtual 
> machine with 4 cores).
> On CentOS7 with a 4.8 kernel it works fine (physical machine with 4 cores).
> 
> I will anyhow adapt atopacctd for this issue that it detects and logs 
> the -EINVAL and terminates.
> The current version of atopacctd keeps running which is not useful at all.
> 
> 
> I reported this as:
> 
> Bug 190711 - Process accounting: Using the NETLINK inface, the command 
> TASKSTATS_CMD_GET returns -EINVAL
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=190711


Ben Hutchings reports:

"It looks like the taskstats bug was introduced by 513e3d2d11c9 as that
means cpumask_parse() may not initialise as many bits as
cpumask_subset() compares"

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Martin Steigerwald <martin.steigerwald@teamix.de> - 2016-12-19 13:20 +0100
  Re: [REGRESSION] Two issues that prevent process accounting  (taskstats) from working correctly Peter Zijlstra <peterz@infradead.org> - 2016-12-19 14:20 +0100
    Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Martin Steigerwald <martin@lichtvoll.de> - 2016-12-19 15:00 +0100
      Re: [REGRESSION] Two issues that prevent process accounting  (taskstats) from working correctly Peter Zijlstra <peterz@infradead.org> - 2016-12-19 15:10 +0100
  Re: [REGRESSION] Two issues that prevent process accounting  (taskstats) from working correctly Peter Zijlstra <peterz@infradead.org> - 2016-12-19 18:30 +0100

csiph-web