From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [patch 0/4] taskstats: Improve cumulative time accounting In-Reply-To: Your message of "Mon, 22 Nov 2010 13:47:55 +0100." <1290430075.5655.3.camel@holzheu-laptop> From: Valdis.Kletnieks@vt.edu References: <20101119201108.269346583@linux.vnet.ibm.com> <1290197955.2109.1617.camel@laptop> <1290423780.1974.1.camel@holzheu-laptop> <1290430075.5655.3.camel@holzheu-laptop> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1290449494_5325P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 22 Nov 2010 13:11:34 -0500 Message-ID: <9359.1290449494@localhost> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: holzheu@linux.vnet.ibm.com Cc: Peter Zijlstra , Oleg Nesterov , Shailabh Nagar , Andrew Morton , John stultz , Thomas Gleixner , Balbir Singh , Martin Schwidefsky , Heiko Carstens , Roland McGrath , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org List-ID: --==_Exmh_1290449494_5325P Content-Type: text/plain; charset=us-ascii On Mon, 22 Nov 2010 13:47:55 +0100, Michael Holzheu said: > Currently the cumulative time accounting in Linux is not complete. > 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. > > This patch adds a new sysctl "kernel.full_cdata" that allows to switch > between the POSIX behavior and complete cumulative accounting. > +unsigned int full_cdata_enabled = 1; This probably needs to default to "current kernel behavior" but allow sysadmins to change to the new behavior. --==_Exmh_1290449494_5325P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFM6rJWcC3lWbTT17ARAhLuAJ9w9yHiwsgg93iJ9IglEfL7oX5UjQCeK/t3 zhgax7MWZ1/i9HVqgzueW/o= =PjvI -----END PGP SIGNATURE----- --==_Exmh_1290449494_5325P--