From owner-freebsd-current@FreeBSD.ORG Fri Jul 10 12:27:20 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 0A6891065670 for ; Fri, 10 Jul 2009 12:27:20 +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 190818FC12 for ; Fri, 10 Jul 2009 12:27:18 +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 PAA04059; Fri, 10 Jul 2009 15:27:15 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4A5733A3.20409@freebsd.org> Date: Fri, 10 Jul 2009 15:27:15 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090630) MIME-Version: 1.0 To: Andrew Brampton References: <4A562960.3010801@freebsd.org> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Fri, 10 Jul 2009 12:27:20 -0000 on 10/07/2009 01:02 Andrew Brampton said the following: > According to wikipedia newer Intel processors have a constant rate TSC > whos freq does not change. If this features is available on most > processors today, then I am happy to stick with option 1. > > Another problem with this is that on a multicore machine each core may > have different TSC values. Has anyone thought how to address this > issue? Could we calculate the offset of each core from core0, and then > ensure the offset is applied to the tsc value when it is needed? Yes. The actual code accounts for inter-CPU/core TSC skew. -- Andriy Gapon