Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbbEHOJK (ORCPT ); Fri, 8 May 2015 10:09:10 -0400 Received: from smtprelay0174.hostedemail.com ([216.40.44.174]:53922 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751570AbbEHOJH (ORCPT ); Fri, 8 May 2015 10:09:07 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:982:988:989:1183:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4362:5007:6119:6261:7875:7903:8526:9010:9040:10004:10400:10848:10967:11026:11232:11473:11658:11914:12296:12517:12519:12663:12740:13069:13206:13229:13311:13357:14096:14097:21063:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: brain24_1511d65d28737 X-Filterd-Recvd-Size: 2625 Date: Fri, 8 May 2015 10:09:03 -0400 From: Steven Rostedt To: Drew Richardson Cc: Peter Zijlstra , Mathieu Desnoyers , Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , John Stultz , Wade Cherry , Pawel Moll Subject: Re: [PATCH] ftrace: Provide trace clock monotonic raw Message-ID: <20150508100903.39641009@gandalf.local.home> In-Reply-To: <20150505145438.GA5145@dreric01-Precision-T1650> References: <1430750469-16428-1-git-send-email-drew.richardson@arm.com> <199091314.42407.1430752205090.JavaMail.zimbra@efficios.com> <20150504200515.GA24626@dreric01-Precision-T1650> <20150504205748.GB21418@twins.programming.kicks-ass.net> <20150505145438.GA5145@dreric01-Precision-T1650> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1502 Lines: 33 On Tue, 5 May 2015 07:54:46 -0700 Drew Richardson wrote: > CLOCK_MONOTONIC_RAW will advance more constantly than CLOCK_MONOTONIC. > > Imagine someone is trying to optimize a particular program to reduce > instructions executed for a given workload while minimizing the effect > on runtime. Also suppose that ntp is running and potentially making > larger adjustments to CLOCK_MONOTONIC. If ntp is adjusting > CLOCK_MONOTONIC to advance more rapidly, the program will appear to > use fewer instructions per second but run longer than it would if > CLOCK_MONOTONIC_RAW had been used. The total number of instructions > observed would be the same regardless of the clock source used, but > how it's attributed to time would be affected. > > Conversely if ntp is adjusting CLOCK_MONOTONIC to advance more slowly, > the program will appear to use more instructions per second but run > more quickly. Of course there are many sources that can cause jitter > in performance measurements on modern processors, but I'd like to > remove ntp from the list. This is a nice description, and was expecting to see it in the change log of the latest patch. Can you resend with a more detailed description (like the above). Thanks! -- Steve -- 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/