CPU frequency strange

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

CPU frequency strange

Postby pmithrandir » Apr 18th, '15, 23:20

Hello,

I have a laptop with an Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz
This one contain 2 proc running a 2.166GHZ.

I have multiple problem with my hardware detection, especially to trigger the cpufan (bug already open without succes since 2 years).
But, I realize recently that this laptop was actually very slow, and I checked a bit ore what infor I could get.

I found something strange :
cpupower wrote:[root@localhost ~]# cat /proc/cpuinfo | grep "MHz"
cpu MHz : 2166.000
cpu MHz : 2166.000


dmidecode wrote: Version: Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz
Voltage: 1.6 V
External Clock: 667 MHz
Max Speed: 2166 MHz
Current Speed: 1000 MHz
Status: Populated, Enabled
Upgrade: <OUT OF SPEC>
L1 Cache Handle: 0x0021
L2 Cache Handle: 0x001F
L3 Cache Handle: Not Provided


Both of them were tried at the same time, while youtube was running and the CPU info was displaying 100% on my system.

Is it possible that the CPU switch is not done correctly, or that the CPU detection is incorrect ?
That would explain my CPU being never fast and the temperature rising because wrong detection of something.

How could I check / correct that issue ?
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: CPU frequency strange

Postby doktor5000 » Apr 18th, '15, 23:27

Please show the output as root of
Code: Select all
cpupower frequency-info
lsmod
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CPU frequency strange

Postby pmithrandir » Apr 19th, '15, 00:02

Hello,

I changed in the mean time my file /etc/sysconfig/cpupower to put ondemand. It seems top be active.

Cpupower is now at 1000Mhz, but it varies from one call to the other.

Code: Select all
[root@localhost ~]# cpupower frequency-info
analyse du CPU 0 :
  pilote : acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  limitation matérielle : 1000 MHz - 2.17 GHz
  plage de fréquence : 2.17 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
  régulateurs disponibles : ondemand, conservative, powersave, userspace, performance
  tactique actuelle : la fréquence doit être comprise entre 1000 MHz et 2.17 GHz.
                  Le régulateur "ondemand" est libre de choisir la vitesse
                  dans cette plage de fréquences.
  la fréquence actuelle de ce CPU est 1000 MHz (vérifié par un appel direct du matériel).
  boost state support:
    Supported: no
    Active: no



And lsmod.(My laptop is an old installation of mageia upgraded multiple time, so it might be not so clean...)
Code: Select all
Module                  Size  Used by
fuse                   87798  2
nf_conntrack_snmp      12857  0
ip6t_MASQUERADE        12768  0
xt_CHECKSUM            12549  0
ip6t_rpfilter          12546  0
xt_statistic           12601  0
xt_CT                  12956  0
xt_LOG                 17718  0
xt_connlimit           12636  0
xt_addrtype            12635  0
ip_set_hash_ip         27298  0
xt_comment             12504  0
xt_recent              18498  0
xt_nat                 12681  0
ip6table_nat           13015  0
nf_nat_ipv6            13279  1 ip6table_nat
nf_nat                 21932  4 ip6t_MASQUERADE,nf_nat_ipv6,xt_nat,ip6table_nat
xt_set                 13181  0
ip_set                 41059  2 ip_set_hash_ip,xt_set
nf_conntrack_tftp      13121  0
nf_conntrack_sip       28460  0
nf_conntrack_sane      13143  0
nf_conntrack_proto_udplite    13281  0
nf_conntrack_proto_sctp    18822  0
nf_conntrack_pptp      19258  0
nf_conntrack_proto_gre    14434  1 nf_conntrack_pptp
nf_conntrack_netlink    36223  0
nf_conntrack_netbios_ns    12665  0
nf_conntrack_broadcast    12589  2 nf_conntrack_netbios_ns,nf_conntrack_snmp
nf_conntrack_irc       13518  0
nf_conntrack_h323      73845  0
nf_conntrack_ftp       18638  0
ts_kmp                 12605  5
nf_conntrack_amanda    13041  0
xt_TPROXY              17356  0
nf_defrag_ipv4         12758  1 xt_TPROXY
xt_time                12661  0
xt_TCPMSS              12664  0
xt_tcpmss              12501  0
xt_sctp                12853  0
xt_policy              12582  0
xt_pkttype             12504  0
xt_physdev             12587  0
xt_owner               12534  0
xt_NFQUEUE             12697  0
xt_NFLOG               12537  0
nfnetlink_log          17918  1 xt_NFLOG
xt_multiport           12798  0
xt_mark                12563  0
xt_mac                 12492  0
xt_limit               12711  0
xt_length              12536  0
xt_iprange             12783  0
xt_helper              12583  0
xt_hashlimit           17618  0
xt_DSCP                12629  0
xt_dscp                12597  0
xt_dccp                12606  0
xt_connmark            12755  0
xt_CLASSIFY            12507  0
xt_AUDIT               12678  0
ip6t_REJECT            12939  0
xt_tcpudp              12884  0
xt_state               12578  0
nf_conntrack_ipv6      18894  1
nf_defrag_ipv6         34768  2 xt_TPROXY,nf_conntrack_ipv6
xt_conntrack           12760  0
nf_conntrack           92393  26 xt_CT,nf_conntrack_netbios_ns,nf_conntrack_proto_gre,xt_helper,nf_conntrack_proto_udplite,nf_nat,ip6t_MASQUERADE,xt_state,xt_connlimit,nf_nat_ipv6,xt_conntrack,nf_conntrack_amanda,nf_conntrack_proto_sctp,nf_conntrack_netlink,ip6table_nat,nf_conntrack_broadcast,xt_connmark,nf_conntrack_ftp,nf_conntrack_irc,nf_conntrack_sip,nf_conntrack_h323,nf_conntrack_ipv6,nf_conntrack_pptp,nf_conntrack_sane,nf_conntrack_snmp,nf_conntrack_tftp
ip6table_raw           12683  0
ip6table_mangle        12700  0
nfnetlink              14606  3 nfnetlink_log,ip_set,nf_conntrack_netlink
ip6table_filter        12815  0
ip6_tables             27025  4 ip6table_filter,ip6table_mangle,ip6table_nat,ip6table_raw
x_tables               34059  45 xt_physdev,xt_pkttype,ip6table_filter,xt_statistic,xt_DSCP,xt_dccp,xt_dscp,xt_iprange,xt_mark,xt_sctp,xt_time,xt_CT,xt_helper,ip6table_mangle,ip6t_rpfilter,xt_length,xt_comment,xt_policy,xt_CHECKSUM,xt_recent,xt_tcpmss,xt_tcpudp,xt_AUDIT,xt_NFQUEUE,xt_NFLOG,ip6t_MASQUERADE,xt_limit,xt_owner,xt_state,xt_connlimit,xt_conntrack,xt_LOG,xt_mac,xt_nat,xt_set,xt_hashlimit,xt_multiport,ip6table_raw,xt_CLASSIFY,xt_TCPMSS,xt_TPROXY,xt_connmark,ip6_tables,xt_addrtype,ip6t_REJECT
ctr                    13049  1
ccm                    17773  1
af_packet              35878  4
binfmt_misc            17431  1
arc4                   12608  2
coretemp               13475  0
uvcvideo               80968  0
videobuf2_vmalloc      13216  1 uvcvideo
videobuf2_memops       13362  1 videobuf2_vmalloc
videobuf2_core         41043  1 uvcvideo
videodev              148922  2 uvcvideo,videobuf2_core
media                  21895  2 uvcvideo,videodev
iTCO_wdt               13480  0
iTCO_vendor_support    13718  1 iTCO_wdt
ath5k                 181696  0
ath                    29249  1 ath5k
mac80211              544613  1 ath5k
snd_hda_codec_hdmi     46480  1
snd_hda_codec_realtek    65892  1
snd_hda_codec_generic    68274  1 snd_hda_codec_realtek
cfg80211              506469  3 ath,ath5k,mac80211
snd_hda_intel          52306  4
microcode              20163  0
snd_hda_codec         137465  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
joydev                 17332  0
serio_raw              13413  0
snd_hwdep              13602  1 snd_hda_codec
snd_pcm               107817  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
i2c_i801               22443  0
r8169                  71677  0
snd_timer              29378  1 snd_pcm
lpc_ich                21080  0
snd                    83535  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
mii                    13934  1 r8169
shpchp                 37032  0
soundcore              15047  1 snd
toshiba_acpi           22853  0
sparse_keymap          13948  1 toshiba_acpi
rfkill                 22676  3 cfg80211,toshiba_acpi
fan                    13002  0
thermal                18399  0
wmi                    19177  1 toshiba_acpi
battery                18884  0
toshiba_bluetooth      12852  0
ac                     13234  0
cpufreq_ondemand       20254  2
cpufreq_conservative    15314  0
cpufreq_powersave      12618  0
acpi_cpufreq           19393  0
processor              31436  3 acpi_cpufreq
evdev                  17787  23
nvram                  14362  0
ipv6                  362274  120 ip6table_mangle,ip6t_rpfilter,nf_defrag_ipv6,ip6t_MASQUERADE,nf_nat_ipv6,ip6table_nat,xt_TPROXY,ip6t_REJECT,nf_conntrack_ipv6
autofs4                38754  2
hid_generic            12548  0
usbhid                 48422  0
hid                   105788  2 hid_generic,usbhid
sr_mod                 22411  0
ehci_pci               12905  0
ehci_hcd               71259  1 ehci_pci
uhci_hcd               45266  0
usbcore               230079  5 uhci_hcd,uvcvideo,ehci_hcd,ehci_pci,usbhid
usb_common             13057  1 usbcore
i915                  793142  2
video                  19425  1 i915
button                 13871  1 i915
i2c_algo_bit           13413  1 i915
drm_kms_helper         44268  1 i915
drm                   298219  3 i915,drm_kms_helper
i2c_core               40643  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev



I have also executed this command... Interesting results...
Code: Select all
[root@localhost ~]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +81.0°C  (crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +81.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:       +81.0°C  (high = +100.0°C, crit = +100.0°C)


If anyone knows how to change the 2nde value, that would be great... 100° seems much too high for me.
Last edited by doktor5000 on Apr 19th, '15, 15:08, edited 1 time in total.
Reason: replaced quote and spoiler tage with code tags
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: CPU frequency strange

Postby doktor5000 » Apr 19th, '15, 15:15

You should try to set the governor to performance instead of ondemand.

For the second temperature (110 / 100°C ) in your last output that is the upper boundary of the thermal zone where it might get critical for the processor.
100° is not much too high for the processor for peak loads, it may be too much for you but you're not supposed to measure the temperature by touching the CPU.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CPU frequency strange

Postby pmithrandir » Apr 19th, '15, 16:24

Hi,

Actually, I put it on "ondemand" since yesterday and it's much better now...(I know it doesn't make sence)

100° seems quite high for a laptop... It's cooking my legs :)
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: CPU frequency strange

Postby doktor5000 » Apr 19th, '15, 19:10

So you changed nothing, as ondemand was the governor before already?
For the temperature, keep in mind that this is measured usually in the chip core, the chassis will not hold 80-100°C.

But with that temperature you should maybe open it up, clean up all the dust from the fans and coolers and renew the thermal paste under the coolers.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CPU frequency strange

Postby pmithrandir » Apr 19th, '15, 23:41

Hello,

Before it was on performance, I changed it yesterday on ondemand and actually I improved both performance and temperature doing so(I thing te cpu take more time to cool itself this way).

Both tool still display different thing although.

On the subject of temperature, my laptop is open and clean now. I'm waiting tomorrow to get some thermal paste to put ont it.
Seeing the amount of dust I took off and the small amount of thermal paste that was on the CPU(almost none) I might get a better result tomorrow evening.

Strange enough, when I was tying to resolve the ug for temperature and fan speed, I changed some parameter like acpi_osi=Linux and it seems that the computer is much faster... Really strange.

I will tell you tomorrow what was the result and if it's better.

Thank you,
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: CPU frequency strange

Postby jiml8 » Apr 21st, '15, 17:27

Intel mobile processors are specified for a maximum temp of 100C. That's really cooking, but apparently the device will take it.

As for cpupower, "performance" will require the CPU to run at max clock pretty much all the time, while "ondemand" will allow the processor to run at low clocks except when specifically needed. I always use "ondemand".

Top will report processor percentage utilization...at that processor's current clock speed. Thus, the processor might be at 100% but only at 50% of max clock. This means every instruction cycle is being used, but the system has found no reason to speed the processor up. It makes it difficult sometimes to figure out how busy the system really is, which is why I run tools that not only show processor utilization but processor clock. I usually use gkrellm.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest