From owner-freebsd-current@FreeBSD.ORG Fri Apr 11 12:34:59 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 358A61065673; Fri, 11 Apr 2008 12:34:59 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id E332B8FC1C; Fri, 11 Apr 2008 12:34:58 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper [152.3.145.30]) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id m3BCYwxa013841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Apr 2008 08:34:58 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.5.1 duke.cs.duke.edu m3BCYwxa013841 Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id m3BCYUNr072429; Fri, 11 Apr 2008 08:34:30 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18431.23276.913397.188219@grasshopper.cs.duke.edu> Date: Fri, 11 Apr 2008 08:34:29 -0400 (EDT) To: gnn@freebsd.org In-Reply-To: References: X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid 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: Fri, 11 Apr 2008 12:34:59 -0000 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 FWIW, solaris manages to keep track of unsynchronized TSCs, and use unsynchronized TSC timecounters for timekeeping on SMP systems. It would be nice if FreeBSD could do the same. Drew