From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbdBFKq4 (ORCPT ); Mon, 6 Feb 2017 05:46:56 -0500 Received: from mondschein.lichtvoll.de ([194.150.191.11]:43983 "EHLO mail.lichtvoll.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953AbdBFKqz (ORCPT ); Mon, 6 Feb 2017 05:46:55 -0500 X-Greylist: delayed 465 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Feb 2017 05:46:55 EST From: Martin Steigerwald To: Peter Zijlstra Cc: Ingo Molnar , Andrew Morton , Ingo Molnar , LKML , Nicolas Dichtel , Jay Lan , Martin Steigerwald , Gerlof Langeveld , Marc Haber , Ben Hutchings , Balbir Singh , Tejun Heo Subject: Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Date: Mon, 06 Feb 2017 11:39:04 +0100 Message-ID: <5854646.yRl4qIL1ZN@merkaba> Organization: teamix GmbH User-Agent: KMail/5.2.3 (Linux/4.8.16-tp520+; KDE/5.28.0; x86_64; ; ) In-Reply-To: <20161219172549.GK3107@twins.programming.kicks-ass.net> References: <5967400.cFS0L5jxeH@merkaba> <20161219172549.GK3107@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 19. Dezember 2016, 18:25:49 CET schrieb Peter Zijlstra: > 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" Thank you. Okay, any conclusion out of this? Any feedback from the maintainers of this code? Thank you,