From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 12:10:23 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 134D616A417 for ; Thu, 26 Jul 2007 12:10:23 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from omr10.networksolutionsemail.com (omr10.networksolutionsemail.com [205.178.146.60]) by mx1.freebsd.org (Postfix) with ESMTP id C33C013C478 for ; Thu, 26 Jul 2007 12:10:22 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from mail.networksolutionsemail.com (ns-omr10.mgt.hosting.dc2.netsol.com [10.49.6.73]) by omr10.networksolutionsemail.com (8.13.6/8.13.6) with SMTP id l6QC0DpG025289 for ; Thu, 26 Jul 2007 08:00:13 -0400 Received: (qmail 2192 invoked by uid 78); 26 Jul 2007 12:00:12 -0000 Received: from unknown (HELO webmail1) (205.178.146.50) by 10.49.36.73 with SMTP; 26 Jul 2007 12:00:12 -0000 Received: from 209.254.236.34 (idmc_vivr@intgdev.com [209.254.236.34]) by webmail1 (Netsol 11.2.30) with WEBMAIL id 22217; Thu, 26 Jul 2007 12:00:13 +0000 From: "V.I.Victor" To: youshi10@u.washington.edu Importance: Normal Sensitivity: Normal Message-ID: X-Mailer: Network Solutions Webmail, Build 11.2.30 X-Originating-IP: [209.254.236.34] X-Forwarded-For: [(null)] Date: Thu, 26 Jul 2007 12:00:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: 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: Thu, 26 Jul 2007 12:10:23 -0000 On Wed, 25 Jul 2007 youshi10@u.washington.edu wrote: >On Wed, 25 Jul 2007, V.I.Victor wrote: > >> On Wed, 25 Jul 2007 youshi10@u.washington.edu wrote: >> >>> On Wed, 25 Jul 2007, V.I.Victor wrote: >>> >>>> On Wed, 25 Jul 2007, Garrett Cooper wrote: >>>> >>>>> V.I.Victor wrote: >>>>>> I've two 5.4 desktop boxes. Pretty much the same installation; b= oth >>>>>> from the same CD, same apps, no monitor/keyboard, 1-user logged-o= n 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 =3D 121630720 (115 MB) >>>>>> ACPI disabled by blacklist. >>>>>> >>>>>> Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-cl= ass CPU) >>>>>> avail memory =3D 252186624 (240 MB) >>>>>> cpu0: on acpi0 >>>>>> acpi_throttle0: on cpu0 >>>>>> ... >>>> >>>>> 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 K= 8-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 >>>> >>>> Thanks for the reply! I don't seem to have the last 2 you've asked = about. >>>> >>>> 'sysctl -a | egrep "clockrate|cpu"' reported the following: >>>> >>>> kern.clockrate: { hz =3D 100, tick =3D 10000, profhz =3D 1024, stath= z =3D 128 } >>>> kern.threads.virtual_cpu: 1 >>>> kern.ccpu: 1948 >>>> kern.smp.maxcpus: 1 >>>> kern.smp.cpus: 1 >>>> hw.ncpu: 1 >>>> hw.clockrate: 1794 >>>> hw.acpi.cpu.cx_supported: C1/0 >>>> hw.acpi.cpu.cx_lowest: C1 >>>> hw.acpi.cpu.cx_usage: 100.00% >>>> machdep.cpu_idle_hlt: 1 >>>> dev.cpu.0.%desc: ACPI CPU >>>> dev.cpu.0.%driver: cpu >>>> dev.cpu.0.%location: handle=3D\_PR_.CPU0 >>>> dev.cpu.0.%pnpinfo: _HID=3Dnone _UID=3D0 >>>> dev.cpu.0.%parent: acpi0 >>>> 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.acpi_throttle.0.%parent: cpu0 >>>> dev.cpufreq.0.%driver: cpufreq >>>> dev.cpufreq.0.%parent: cpu0 >>> >>> >>> >>> Do you have SMP enabled? >> >> No. Both boxes have pretty minimal, basic installations. >> >>> You also might be able to tune the kernel clock rate to obtain better= >>> performance; I forget what the values were for sysctl, but if you sea= rch >>> around the current@ archives a bit, there was a discussion involving = VMware >>> and clock tuning approximately 2-3 months ago which details this issu= e, and >>> possible solutions. >> >> Perhaps tuning could help. I'll check the archives. >> >> However, it just seems to me that the 1.8 GHz box ought to perform the= simple prog (orig post) at least as fast as the 6 MHz box. > > Depends on: > 1. What you're trying to do. > 2. What your programs are optimized for. > 3. Additional factors (I/O, load, etc). > 4. Hardware attached to each machine. Some examples... > a. Comparing a SCSI disk vs a PATA disk. > b. Clockspeed applied to the RAM on one machine isn't equal to the ot= her. > c. Motherboard manufacturers -- some manufacturers have done a shoddy= job > with memory handling, BIOS manufacturing, and other critical stats in t= he > past. > > Try disabling ACPI on the P4 though and see what happens. I will say th= ough, > the Willamette (1st gen P4) chips weren't Intel's finest desktop chip; = some > people went far enough to complain that the Willamette series was nothi= ng > more than overclocked Coppermines, i.e. P3's. I haven't taken a look at= the > architectures and compared them, so those may be empty claims. I was wondering about the "truth-of-clockspeed." Perhaps the 1800-MHz on= ly applies to CPU internal cache, etc. while the external bus-clocking is= down at 500-MHz or so. Sounds like a typical marketing ploy! About disabling the ACPI... Can I do it *safely* via the remote-ssh conn= ection? Or do I need to be at the box w/ keyboard and monitor? What I'v= e read makes it seem that the ACPI is set at boot-time.