[2.1.1] CPU speed detection under Linux

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [2.1.1] CPU speed detection under Linux

by randi » Thu Jun 29, 2006 5:07 pm

It's only used for some statistics timers that are normally offscreen. I've also known for years that it won't work properly on systems that change the processor's frequency on demand, but that hasn't motivated me to do anything about it.

If you'd like to see this fixed, feel free to write a better routine yourself. I'd be happy to use it.

by Siggi » Mon Jun 26, 2006 12:17 pm

I'm also having this.
Ussualy it reports my CPU speed to be 1000mhz, when it's really 1800mhz (sempron 3000+).
Sometimes it shows it as 0.03mhz.

[2.1.1] CPU speed detection under Linux

by Hirogen2 » Mon Jun 26, 2006 10:38 am

CPU speed detection seems borked on Linux:

Code: Select all

18:32 shanghai:../BUILD/zdoom-2.1.1 > zdoom
 adding /usr/src/packages/BUILD/zdoom-2.1.1/zdoom.pk3
 adding /usr/share/zdoom/doom2.wad (2919 lumps)
CPU Speed: ~0.038825 MHz
CPU Vendor ID: AuthenticAMD
  Name: AMD Athlon(tm) XP 2000+
  Family 6 (7), Model 8, Stepping 0
  Features: MMX MMX+ SSE 3DNow! 3DNow!+
0.03 MHz cannot be. For the record, CONFIG_HZ=100 here. The real thing is

Code: Select all

18:34 shanghai:../BUILD/zdoom-2.1.1 > cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2000+
stepping        : 0
cpu MHz         : 1666.747
cache size      : 256 KB
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up ts
bogomips        : 3335.23

Top