Re: Turbo on i7

2014-06-23 Thread Jonathan Gray
On Sun, Jun 22, 2014 at 08:04:27PM -0700, Philip Guenther wrote:
 On Tue, Jun 17, 2014 at 3:45 PM, Gustav Fransson Nyvell gus...@nyvell.se
 wrote:
 
  I want to alert you to this strange observation.
 
  $ sysctl -a
  ...
  hw.cpuspeed=3101
  hw.setperf=100
  ...
 
  This on an Intel i7 3920XM. Rated for 3.8GHz when running 100%.
 
  3101 would mean 3.1GHz and hw.setperf=100 means it should/must run at 100%.
 
 
 I want to alert you to the fact that your message didn't include the system
 dmesg, and will therefore be ignored as insufficient data for analysis.
 
 
 Indeed, *NO ONE* has sent in a dmesg to dm...@openbsd.org for that CPU.
  Clearly it doesn't exist...

It is also worth pointing out that the highest speedstep speed that is
1 MHz higher than the next is the turbo mode.

sysctl will not reflect the actual speed when in turbo mode, we'd
have to do a bunch of msrs on a periodic timer or something similiar.



Re: Turbo on i7

2014-06-23 Thread Gustav Fransson Nyvell

On 06/23/14 05:04, Philip Guenther wrote:
On Tue, Jun 17, 2014 at 3:45 PM, Gustav Fransson Nyvell 
gus...@nyvell.se mailto:gus...@nyvell.se wrote:


I want to alert you to this strange observation.

$ sysctl -a
...
hw.cpuspeed=3101
hw.setperf=100
...

This on an Intel i7 3920XM. Rated for 3.8GHz when running 100%.

3101 would mean 3.1GHz and hw.setperf=100 means it should/must run
at 100%.


I want to alert you to the fact that your message didn't include the 
system dmesg, and will therefore be ignored as insufficient data for 
analysis.



Indeed, *NO ONE* has sent in a dmesg to dm...@openbsd.org 
mailto:dm...@openbsd.org for that CPU.  Clearly it doesn't exist...



Philip Guenther



Oh but it does!

OpenBSD 5.5-current (GENERIC.MP) #5: Sat Jun 21 19:55:55 CEST 2014
gus...@uncouth.nyvell.se:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34226692096 (32641MB)
avail mem = 33306812416 (31763MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb420 (33 entries)
bios0: vendor American Megatrends Inc. version 4.6.5 date 08/22/2012
bios0: CLEVO P15xEMx
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT ASF! MCFG HPET SSDT SSDT SSDT DMAR 
SSDT SSDT
acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S3) PXSX(S4) RP02(S4) PXSX(S4) 
RP03(S4) PXSX(S4) RP04(S4) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2794.02 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu5: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS

cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz, 2793.67 MHz
cpu6: 

Re: Turbo on i7

2014-06-22 Thread Philip Guenther
On Tue, Jun 17, 2014 at 3:45 PM, Gustav Fransson Nyvell gus...@nyvell.se
wrote:

 I want to alert you to this strange observation.

 $ sysctl -a
 ...
 hw.cpuspeed=3101
 hw.setperf=100
 ...

 This on an Intel i7 3920XM. Rated for 3.8GHz when running 100%.

 3101 would mean 3.1GHz and hw.setperf=100 means it should/must run at 100%.


I want to alert you to the fact that your message didn't include the system
dmesg, and will therefore be ignored as insufficient data for analysis.


Indeed, *NO ONE* has sent in a dmesg to dm...@openbsd.org for that CPU.
 Clearly it doesn't exist...


Philip Guenther


Turbo on i7

2014-06-17 Thread Gustav Fransson Nyvell

Hi,

I want to alert you to this strange observation.

$ sysctl -a
...
hw.cpuspeed=3101
hw.setperf=100
...

This on an Intel i7 3920XM. Rated for 3.8GHz when running 100%.

3101 would mean 3.1GHz and hw.setperf=100 means it should/must run at 100%.

//Gustav