Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932133Ab0KSULs (ORCPT ); Fri, 19 Nov 2010 15:11:48 -0500 Received: from mtagate7.uk.ibm.com ([194.196.100.167]:35101 "EHLO mtagate7.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753317Ab0KSULq (ORCPT ); Fri, 19 Nov 2010 15:11:46 -0500 Message-Id: <20101119201108.269346583@linux.vnet.ibm.com> User-Agent: quilt/0.48-1 Date: Fri, 19 Nov 2010 21:11:08 +0100 From: Michael Holzheu To: Oleg Nesterov , Shailabh Nagar , Andrew Morton , Peter Zijlstra , John stultz , Thomas Gleixner , Balbir Singh , Martin Schwidefsky , Heiko Carstens , Roland McGrath Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [patch 0/4] taskstats: Improve cumulative time accounting Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 25 Due to POSIX POSIX.1-2001, the CPU time of processes is not accounted to the cumulative time of the parents, if the parents ignore SIGCHLD or have set SA_NOCLDWAIT. This behaviour has the major drawback that it is not possible to calculate all consumed CPU time of a system by looking at the current tasks. CPU time can be lost. To solve this problem, this patch set duplicates the cumulative accounting data in the signal_struct. In the second set (cdata_acct) the complete cumulative resource counters are stored. The new cumulative CPU time (utime and stime) is then exported via the taskstats interface. PATCH SET OVERVIEW ------------------ Patches apply on: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git [1] Introduce "struct cdata" [2] Introduce __account_cdata() function [3] Introduce cdata_acct for complete cumulative accounting [4] Export "cdata_acct" with taskstats -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/