From owner-freebsd-i386@FreeBSD.ORG Wed Mar 28 14:26:29 2007 Return-Path: X-Original-To: freebsd-i386@freebsd.org Delivered-To: freebsd-i386@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 029BA16A412 for ; Wed, 28 Mar 2007 14:26:29 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id B3C5613C4B8 for ; Wed, 28 Mar 2007 14:26:28 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so2703421ana for ; Wed, 28 Mar 2007 07:26:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=T/KG05VYgJi68sHzrqGlaH2qQ7byky+z1OU6N4tKcuvTBHXwTn3LEwi/vjEfncBkGswbbALc2WGcaR047P5zsjumxKvLyHZPLZWkfGlL5srUyg5dUSCdjQ+kXgQlTGs38PNV6gckmFjX/wtm2DGazoGHBSTPRljY2IKsme+DkoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=SlHcSpbIFc803UzPjLdAafxNBlAfWd0Uu3vAdAxZ/1ieRGfG0vHrxHEG0KQNzmvAHtO54Qn2bSg78pk0pnZfnAXlmN02oMbzFAIDVp/BLZ4rVjAc9K3r4GiDEFzuPMSPtVreafp6LKplesMvyVZxdmSFo9IfZc+QFH1YTq27cV4= Received: by 10.100.137.18 with SMTP id k18mr227056and.1175091987289; Wed, 28 Mar 2007 07:26:27 -0700 (PDT) Received: from epsilon.local ( [193.136.39.100]) by mx.google.com with ESMTP id u1sm1047355uge.2007.03.28.07.26.25; Wed, 28 Mar 2007 07:26:26 -0700 (PDT) Message-ID: <460A7B10.7080404@gmail.com> Date: Wed, 28 Mar 2007 15:26:24 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 To: freebsd-i386@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Timecounting issue X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 14:26:29 -0000 Rui Paulo wrote: > Hi, > I have a machine only knows to count time if I'm using TSC. > > For example: > # sysctl kern.timecounter.hardware=ACPI-fast && time sleep 1 && sysctl > kern.timecounter.hardware=i8254 && time sleep 1 && sysctl > kern.timecounter.hardware=HPET && time sleep 1 && sysctl > kern.timecounter.hardware=TSC && time sleep 1 > > Gives: > kern.timecounter.hardware: HPET -> ACPI-fast > sleep 1 0.00s user 0.00s system 0% cpu 1.517 total > kern.timecounter.hardware: ACPI-fast -> i8254 > sleep 1 0.00s user 0.00s system 0% cpu 1.516 total > kern.timecounter.hardware: i8254 -> HPET > sleep 1 0.00s user 0.00s system 0% cpu 1.516 total > kern.timecounter.hardware: HPET -> TSC > sleep 1 0.00s user 0.00s system 0% cpu 1.006 total > > This happens if I enable SMP or not. > > Any hint on how to debug this ? I found the problem. My machine only works correctly with HZ=100. -- Rui Paulo | PGP: F0E4 C7C7 1653 79B7 78DC DD73 64FA B2C6 CF45 1F84