From nobody@FreeBSD.org  Thu Sep 24 14:23:12 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3BE28106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Sep 2009 14:23:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 211658FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Sep 2009 14:23:12 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8OENAv7097663
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Sep 2009 14:23:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8OENAen097662;
	Thu, 24 Sep 2009 14:23:10 GMT
	(envelope-from nobody)
Message-Id: <200909241423.n8OENAen097662@www.freebsd.org>
Date: Thu, 24 Sep 2009 14:23:10 GMT
From: Arkadiy Kulev <eth@ethaniel.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: low cpu frequency reported
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139115
>Category:       i386
>Synopsis:       [cpufreq] low cpu frequency reported [regression]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 24 14:30:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Mon Sep 28 02:51:32 UTC 2009
>Originator:     Arkadiy Kulev
>Release:        7.2
>Organization:
>Environment:
FreeBSD w11 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I have installed Freebsd 7.2 "out of the box" and noticed, that some of
the processes are taking much more time to complete than usual.

After investigating the problem, I noticed, that sysctl reports abnormally
low cpu frequency:

dev.cpu.0.freq_levels: 15/89000
dev.est.0.freq_settings: 15/89000
dev.est.1.freq_settings: 15/89000
dev.est.2.freq_settings: 15/89000
dev.est.3.freq_settings: 15/89000

dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 15
dev.cpu.0.freq_levels: 15/89000
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%
dev.cpu.2.%desc: ACPI CPU
dev.cpu.2.%driver: cpu
dev.cpu.2.%location: handle=\_PR_.CPU2
dev.cpu.2.%pnpinfo: _HID=none _UID=0
dev.cpu.2.%parent: acpi0
dev.cpu.2.cx_supported: C1/0
dev.cpu.2.cx_lowest: C1
dev.cpu.2.cx_usage: 100.00%
dev.cpu.3.%desc: ACPI CPU
dev.cpu.3.%driver: cpu
dev.cpu.3.%location: handle=\_PR_.CPU3
dev.cpu.3.%pnpinfo: _HID=none _UID=0
dev.cpu.3.%parent: acpi0
dev.cpu.3.cx_supported: C1/0
dev.cpu.3.cx_lowest: C1
dev.cpu.3.cx_usage: 100.00%

The funny thing is, that I have another machine with the same architecture,
still running freebsd 7.0 and it works fine:

dev.cpu.0.freq: 2394
dev.est.0.freq_settings: 2394/89000 1596/56960
dev.est.1.freq_settings: 2394/89000 1596/56960
dev.est.2.freq_settings: 2394/89000 1596/56960
dev.est.3.freq_settings: 2394/89000 1596/56960


dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 2394
dev.cpu.0.freq_levels: 2394/89000 2094/77875 1795/66750 1596/56960 1396/49840 1197/42720 997/35600 798/28480 598/21360
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%
dev.cpu.2.%desc: ACPI CPU
dev.cpu.2.%driver: cpu
dev.cpu.2.%location: handle=\_PR_.CPU2
dev.cpu.2.%pnpinfo: _HID=none _UID=0
dev.cpu.2.%parent: acpi0
dev.cpu.2.cx_supported: C1/0
dev.cpu.2.cx_lowest: C1
dev.cpu.2.cx_usage: 100.00%
dev.cpu.3.%desc: ACPI CPU
dev.cpu.3.%driver: cpu
dev.cpu.3.%location: handle=\_PR_.CPU3
dev.cpu.3.%pnpinfo: _HID=none _UID=0
dev.cpu.3.%parent: acpi0
dev.cpu.3.cx_supported: C1/0
dev.cpu.3.cx_lowest: C1
dev.cpu.3.cx_usage: 100.00%

I assume, that there is some bug somewhere in freebsd versions >7.0.


>How-To-Repeat:
Have no idea, the problem appeared right after the upgrade from 7.0 to
7.2 (fresh install).
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
