From owner-freebsd-threads@FreeBSD.ORG Fri Feb 17 16:39:31 2012 Return-Path: Delivered-To: threads@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 5457F106566B; Fri, 17 Feb 2012 16:39:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-stable@FreeBSD.org Date: Fri, 17 Feb 2012 11:39:21 -0500 User-Agent: KMail/1.6.2 References: <4F3C2671.3090808__7697.00510795719$1329343207$gmane$org@freebsd.org> <4F3DA27A.3090903@freebsd.org> <4F3DB3AE.5000109@freebsd.org> In-Reply-To: <4F3DB3AE.5000109@freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202171139.23610.jkim@FreeBSD.org> Cc: Alexander Kabaev , "threads@freebsd.org" , David Xu , Andriy Gapon Subject: Re: pthread_cond_timedwait() broken in 9-stable? [possible answer] X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 16:39:31 -0000 On Thursday 16 February 2012 08:55 pm, Julian Elischer wrote: > kern.timecounter.tick: 1 > kern.timecounter.choice: TSC-low(1000) i8254(0) HPET(950) > ACPI-fast(900) dummy(-1000000) > kern.timecounter.hardware: ACPI-fast > kern.timecounter.stepwarnings: 0 > > switching the machine from TSC_low to ACPI-fast fixes the problem. > > in 8.x it used to default to ACPI > but I used to switch it to "TSC" to get better performance. > > I wonder why TSC-low is now bad to use.. > maybe the TSCs are not as well sychronised as they were in 8.x? Can you please show us verbose dmesg output? FYI, TSC and TSC-low are not very different. TSC-low is just lower resolution version of TSC for SMP. Only difference is, we have automated your timecounter choice, i.e., if TSCs seem reasonably well-synchronized, select it by default but give lower resolution. In other words, if your TSC timecounter was never going backwards previously, TSC-low timecounter won't, guaranteed. So, the root cause should be somewhere else. Jung-uk Kim