From owner-freebsd-current@FreeBSD.ORG Thu Jul 9 18:43:39 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A0EB1065721 for ; Thu, 9 Jul 2009 18:43:39 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 949198FC1C for ; Thu, 9 Jul 2009 18:43:38 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA17469; Thu, 09 Jul 2009 21:43:36 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4A563A57.8090907@freebsd.org> Date: Thu, 09 Jul 2009 21:43:35 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090630) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Marius_N=FCnnerich?= References: <4A562960.3010801@freebsd.org> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: dtrace users opinion solicited (timestamps) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 18:43:40 -0000 on 09/07/2009 21:02 Marius Nünnerich said the following: > What about atomically changing tsc_freq every time the frequency is changed? This is what actually does happen, but it doesn't help. Say, there is a moment T1 when TSC has value N and tsc_freq is X, and moment T2 when when TSC value (N + 1) and tsc_freq is 10*X. So the formula gives: t1 = N / X t2 = (N+1) / (10*X) -- Andriy Gapon