From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 16:38:27 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 8CF06106566C; Fri, 18 Mar 2011 16:38:25 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Kostik Belousov Date: Fri, 18 Mar 2011 12:38:11 -0400 User-Agent: KMail/1.6.2 References: <201103171436.22283.jkim@FreeBSD.org> <4D837F7F.2060403@freebsd.org> <20110318161524.GC78089@deviant.kiev.zoral.com.ua> In-Reply-To: <20110318161524.GC78089@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103181238.14793.jkim@FreeBSD.org> Cc: freebsd-hackers@freebsd.org, Bruce Evans , Andriy Gapon , Maxim Dounin Subject: Re: get_cyclecount(9) deprecation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 16:38:27 -0000 On Friday 18 March 2011 12:15 pm, Kostik Belousov wrote: > On Fri, Mar 18, 2011 at 05:51:27PM +0200, Andriy Gapon wrote: > > on 18/03/2011 15:56 Kostik Belousov said the following: > > > On Fri, Mar 18, 2011 at 05:26:53PM +1100, Bruce Evans wrote: > > > ... > > > > > >> - set cputicker() has some design bugs. It assumes that the > > >> tick frequency is the same across all CPUs, but the TSC is > > >> per-CPU. I have an old SMP system with CPUs of different > > >> frequency that can demonstrate bugs from this. > > > > > > We definitely do not support configurations with different > > > models of CPUs in SMP, this is what Simmetric is about. > > > Different as in frequency or stepping. > > > > Are there any fundamental reasons for us to not support that > > configuration in situations where hardware and BIOS (in x86 case) > > happen to support it? > > > > I am personally more interested in non-uniform topologies like > > one package having two cores and another having four. > > We do not handle CPU errata/quirks individually per-core. I think > that we assume that all cores have the same stepping and thus > require the same workarounds, if any, as BSP. Also, I think tsc > calibration is done only on BSP, but I may be wrong there. Yeah, it is just sad but that's what we do now. Just for per-CPU ticker, however, it won't be too hard, though. Jung-uk Kim