From owner-freebsd-current@FreeBSD.ORG Tue Apr 15 07:41:58 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F6A61065676 for ; Tue, 15 Apr 2008 07:41:58 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from outbound0.mx.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.freebsd.org (Postfix) with ESMTP id 1188A8FC21 for ; Tue, 15 Apr 2008 07:41:58 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.mx.meer.net (8.12.10/8.12.6) with ESMTP id m3F7fiiA084400; Tue, 15 Apr 2008 00:41:55 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id m3F7fNJg095022; Tue, 15 Apr 2008 00:41:23 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (61.204.211.246.customerlink.pwd.ne.jp [61.204.211.246]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.1) with ESMTP id m3F7fM1v064293; Tue, 15 Apr 2008 00:41:23 -0700 (PDT) (envelope-from gnn@neville-neil.com) Date: Tue, 15 Apr 2008 16:41:22 +0900 Message-ID: From: gnn@freebsd.org To: Andrew Gallatin In-Reply-To: <18431.23276.913397.188219@grasshopper.cs.duke.edu> References: <18431.23276.913397.188219@grasshopper.cs.duke.edu> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1.50 (i386-apple-darwin8.11.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: current@freebsd.org Subject: Re: TSC Timecounter and multi-core/SMP 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: Tue, 15 Apr 2008 07:41:58 -0000 At Fri, 11 Apr 2008 08:34:29 -0400 (EDT), Andrew Gallatin wrote: > > > gnn@freebsd.org writes: > > Howdy, > > > > Is the TSC timecounter synchronized across multiple cores and/or > > processors? A quick search seems to indicate it's not but I'd like to > > find a definitive reference on the TSC. > > There is a great comment in the OpenSolaris source code talking about > TSCs and their behavior on SMP systems. See > http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/i86pc/os/timestamp.c > Actually this was a very helpful bit of reading. I also believe that at least per processor there is only 1 TSC, that is, on a 2 or 4 core, all cores share the same TSC. Best, George