From owner-freebsd-questions@FreeBSD.ORG Wed Jul 25 20:03:21 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D04D716A417 for ; Wed, 25 Jul 2007 20:03:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id A9C9F13C442 for ; Wed, 25 Jul 2007 20:03:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l6PK3KrH015776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 Jul 2007 13:03:21 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l6PK3K87001867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Jul 2007 13:03:20 -0700 Message-ID: <46A7AC86.1020602@u.washington.edu> Date: Wed, 25 Jul 2007 13:03:18 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: "V.I.Victor" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.25.124633 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P5 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-questions@freebsd.org Subject: Re: ACPI slowing CPU... or something else X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 20:03:21 -0000 V.I.Victor wrote: > I've two 5.4 desktop boxes. Pretty much the same installation; both > from the same CD, same apps, no monitor/keyboard, 1-user logged-on via > ssh (command-line only w/no gui) and otherwise lightly loaded. > > Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) > avail memory = 121630720 (115 MB) > ACPI disabled by blacklist. > > Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) > avail memory = 252186624 (240 MB) > cpu0: on acpi0 > acpi_throttle0: on cpu0 > > When running the following segment of a small gawk program: > > cnt=0; s=systime(); while(s==systime()) ; # next second > s=systime(); while(s==systime()) cnt++; # count for 1-sec > > Box_A(600M) always reports 'cnt' between 310000 to 320000. > > Box_B(1800M) has been as low as 167000 and never higher than 254000. > > So -- Box_B is 3-times faster than Box_A but runs the segment (at > best) about 20% more slowly! > > Yesterday was when I saw the Box_B(1800M) 167000-ish numbers. Today > after seeing an increase to the 250000-ish numbers, I started to > read-up on ACPI. > > sysctl -a | grep cpu.*freq reports: > > dev.cpu.0.freq: 1796 > dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 \ > 673/-1 449/-1 224/-1 > dev.cpufreq.0.%driver: cpufreq > dev.cpufreq.0.%parent: cpu0 > > If I understand the 'sysctl' output, Box_B is running (now) at > 1796-MHz. And for Box_B cnt==252433; for Box_A cnt==318942. > > Any opinions on what's going on and/or what I'm not understanding? > > Thanks! > Yes. On my virtual machine with ACPI: dev.cpu.0.freq: 2653 dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 331/-1 [root@optimus-vm-7 ~]# dmesg | grep 26 FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class CPU) Timecounter "TSC" frequency 2666794890 Hz quality 800 What are the following sysctls set to? kern.clockrate hw.acpi.cpu.cx_lowest dev.cpu.0.cx_lowest dev.cpu.0.cx_usage -Garrett