From owner-freebsd-stable@FreeBSD.ORG Sun Mar 22 09:05:54 2015 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94086A24; Sun, 22 Mar 2015 09:05:54 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11F035E0; Sun, 22 Mar 2015 09:05:54 +0000 (UTC) Received: by labon10 with SMTP id on10so13655608lab.2; Sun, 22 Mar 2015 02:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1yolAFLEnDB2n0eENcdXA/U27k8HJpIY+MHbtNmyG58=; b=teP+Or2NrD9pAb13SX0nuDqAYfeN7RK1PphNdNdrtks/5VZX3E+XUSxLPyJVVYfBpn D/pmll5x9dm5sr/3Rt37UZI/5DUQfyV52geJdLDWXMkS8UMpVQOEPiLsgmacFwvv0TP6 HyUdfmNHGH9QBC5nBJ9NNbg2vc6EAIKVtDPLv81l5AByMJvb1uMHIbQCIFGcUc+HZwPR CLBTyfpOCPGjutXIEqX8hAzLCHHlGSbzn6UQgjOZbTQqDcxJO8leVgjiDQoB9Dy1wktu K/PLvUvBPPhAcoh5l7EnyQ1DV5luhQFvk3uwYtjTYpRY4/WtnyYtnY+M2TX7pPUH+Lvy x5wg== X-Received: by 10.112.64.2 with SMTP id k2mr80556778lbs.54.1427015151864; Sun, 22 Mar 2015 02:05:51 -0700 (PDT) Received: from [10.0.1.7] (broadband-5-228-253-252.nationalcablenetworks.ru. [5.228.253.252]) by mx.google.com with ESMTPSA id ed5sm1920421lbb.40.2015.03.22.02.05.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Mar 2015 02:05:50 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: dev.cpu.0.freq disapeared From: Dmitry Sivachenko In-Reply-To: <20150322055323.GA48710@server.rulingia.com> Date: Sun, 22 Mar 2015 12:05:49 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <77C8F6F7-2C25-4BC5-B373-11441AB58FAD@gmail.com> References: <20150322055323.GA48710@server.rulingia.com> To: Peter Jeremy X-Mailer: Apple Mail (2.2070.6) Cc: FreeBSD Stable ML , nwhitehorn@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2015 09:05:54 -0000 > On 22 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2015 =D0=B3., at 8:53, Peter = Jeremy wrote: >=20 > On 2015-Mar-22 00:58:55 +0300, Dmitry Sivachenko = wrote: >> I have a machine with the following processor: >>=20 >> CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2400.14-MHz = K8-class CPU) >> Origin=3D"GenuineIntel" Id=3D0x206c2 Family=3D0x6 Model=3D0x2c = Stepping=3D2 > ... >> After I upgraded to 10.1-STABLE #0 r279956, this sysctl disapeared. >> % sysctl dev.cpu.0.freq >> sysctl: unknown oid 'dev.cpu.0.freq': No such file or directory >> % >=20 > What OIDs do you have? Does dev.cpu.0 exist? How about dev.cpu? dev.cpu.0 does exist. =20 I found the problematic change: Author: nwhitehorn Date: Sun Jan 11 17:10:07 2015 New Revision: 276986 URL: https://svnweb.freebsd.org/changeset/base/276986 Log: MFC r265329: Disable ACPI and P4TCC throttling by default, following discussion on freebsd-current. These CPU speed control techniques are usually = unhelpful at best. For now, continue building the relevant code into GENERIC so = that it can trivially be re-enabled at runtime if anyone wants it. Modified: stable/10/sys/amd64/conf/GENERIC.hints = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- stable/10/sys/amd64/conf/GENERIC.hints Sun Jan 11 17:00:24 2015 = (r276985) +++ stable/10/sys/amd64/conf/GENERIC.hints Sun Jan 11 17:10:07 2015 = (r276986) @@ -31,3 +31,5 @@ hint.attimer.0.at=3D"isa" hint.attimer.0.port=3D"0x40" hint.attimer.0.irq=3D"0" hint.wbwd.0.at=3D"isa" +hint.acpi_throttle.0.disabled=3D"1" +hint.p4tcc.0.disabled=3D"1" If I remove that hint.p4tcc.0.disabled=3D"1" from device.hints, = dev.cpu.0.freq appears back again. I am using dev.cpu.0.freq to ensure that processor is running at = expected frequency (with some buggy BIOSes or buggy BIOS options = combinations it is possible to end up with machine running at half = frequency). Does it really hurt to have this sysctl available? Why it was disabled = by default? (I am not discussing hint.acpi_throttle.0.disabled here, just = hint.p4tcc.0.disabled). Thanks.