On 2015-Mar-22 00:58:55 +0300, Dmitry Sivachenko <trtrmitya at gmail.com> wrote:>I have a machine with the following processor: > >CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2400.14-MHz K8-class CPU) > Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2...>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 >%What OIDs do you have? Does dev.cpu.0 exist? How about dev.cpu? Can you set 'debug.cpufreq.verbose="1"' in /boot/loader.conf and post (or make available) the dmesg from a verbose boot. -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 949 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150322/a257c571/attachment.sig>
Hi Jeremy, I have a similar issue with an Sun Fire X2200: CPU: Dual-Core AMD Opteron(tm) Processor 2218 (2613.45-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x40f13 Family=0xf Model=0x41 Stepping=3 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x2001<SSE3,CX16> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!> AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8> SVM: NAsids=64 and setting debug.cpufreq.verbose=?1" does not make a difference (ran diff with and without it) you can get it at: ftp://ftp.cs.huji.ac.il/users/danny/freebsd/dmesg.boot <ftp://ftp.cs.huji.ac.il/users/danny/freebsd/dmesg.boot> cheers, danny> On Mar 22, 2015, at 7:53 AM, Peter Jeremy <peter at rulingia.com> wrote: > > On 2015-Mar-22 00:58:55 +0300, Dmitry Sivachenko <trtrmitya at gmail.com> wrote: >> I have a machine with the following processor: >> >> CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2400.14-MHz K8-class CPU) >> Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2 > ... >> 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 >> % > > What OIDs do you have? Does dev.cpu.0 exist? How about dev.cpu? > > Can you set 'debug. in /boot/loader.conf and post > (or make available) the dmesg from a verbose boot. > > -- > Peter Jeremy
> On 22 ????? 2015 ?., at 8:53, Peter Jeremy <peter at rulingia.com> wrote: > > On 2015-Mar-22 00:58:55 +0300, Dmitry Sivachenko <trtrmitya at gmail.com> wrote: >> I have a machine with the following processor: >> >> CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2400.14-MHz K8-class CPU) >> Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2 > ... >> 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 >> % > > What OIDs do you have? Does dev.cpu.0 exist? How about dev.cpu?dev.cpu.0 does exist. 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 =============================================================================--- 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="isa" hint.attimer.0.port="0x40" hint.attimer.0.irq="0" hint.wbwd.0.at="isa" +hint.acpi_throttle.0.disabled="1" +hint.p4tcc.0.disabled="1" If I remove that hint.p4tcc.0.disabled="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.