Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753950AbbGBMLq (ORCPT ); Thu, 2 Jul 2015 08:11:46 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:47521 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753884AbbGBMLe (ORCPT ); Thu, 2 Jul 2015 08:11:34 -0400 Date: Thu, 2 Jul 2015 14:11:26 +0200 From: Peter Zijlstra To: Fredrik =?iso-8859-1?Q?Markstr=F6m?= Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Rik van Riel , Jason Low , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker Subject: Re: [PATCH 1/1] cputime: Make the reported utime+stime correspond to the actual runtime. Message-ID: <20150702121126.GP3644@twins.programming.kicks-ass.net> References: <1434099316-29749-2-git-send-email-fredrik.markstrom@gmail.com> <1434104217.1495.74.camel@twins> <20150612110158.GA18673@twins.programming.kicks-ass.net> <20150629145837.GE3644@twins.programming.kicks-ass.net> <20150630093054.GK19282@twins.programming.kicks-ass.net> <20150630121812.GG3644@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 23 On Tue, Jun 30, 2015 at 08:30:05PM +0200, Fredrik Markstr?m wrote: > But I don't think the "wobblies" in the division is, since the division doesn't > affect the sum (prev->stime + prev->rtime) anymore, so that comment should > go, right ? Agreed. > Well I guess it can be a problem on a system where 120 cores are doing nothing > but hammering on rusage... on the other hand I feel a system like that > deserves it. :) True, doing stupid deserves stupid, but somehow people often tend to disagree with it when its them doing it :-) Imagine someone doing a gprof like thing where they stuff a getrusage() call in the mcount hook and then run their many threaded application. Provided they use RUSAGE_THREAD it doesn't even sound too insane.. -- 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/