LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2023, 03:44 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,368
Blog Entries: 21

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Why do my cpu cores have different speeds?


I have an Intel 4-core processor. When I look at /proc/cpuinfo, the cores all seem to be running at different speeds. Core 1 is the fastest at 2372 MHz, cores 2 and 4 run at 1332 MHz, and core 3 a little faster at 1416 MHz.

Why does this happen and is it normal?
 
Old 08-09-2023, 04:49 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,337

Rep: Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332
If you have power-saving enabled, then the cores are slowed down when not busy. Mine say:


Code:
grep MHz /proc/cpuinfo 
cpu MHz         : 800.646
cpu MHz         : 800.076
cpu MHz         : 800.099
cpu MHz         : 800.033
cpu MHz         : 800.000
cpu MHz         : 800.000
cpu MHz         : 800.202
cpu MHz         : 1800.000
 
1 members found this post helpful.
Old 08-10-2023, 03:55 AM   #3
triplum.fm
Registered User
 
Registered: Mar 2023
Posts: 60

Rep: Reputation: 33
Quote:
Originally Posted by hazel View Post
I have an Intel 4-core processor. When I look at /proc/cpuinfo, the cores all seem to be running at different speeds. Core 1 is the fastest at 2372 MHz, cores 2 and 4 run at 1332 MHz, and core 3 a little faster at 1416 MHz.

Why does this happen and is it normal?
What CPU and what kernel are we talking about?
 
Old 08-10-2023, 05:41 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,368

Original Poster
Blog Entries: 21

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by Gialo View Post
What CPU and what kernel are we talking about?
It's one of those system-on-a-chip things called a Bay Trail. When I build gmp in LFS, the configuration script identifies it as a Silvermont.The kernel is the standard Slackware-15 one, 5.15.117.
 
Old 08-10-2023, 06:51 AM   #5
triplum.fm
Registered User
 
Registered: Mar 2023
Posts: 60

Rep: Reputation: 33
Quote:
Originally Posted by hazel View Post
It's one of those system-on-a-chip things called a Bay Trail. When I build gmp in LFS, the configuration script identifies it as a Silvermont.The kernel is the standard Slackware-15 one, 5.15.117.
I've got kinda the same issue with Intel's SkyLake and CometLake CPUs. When I run cat /proc/cpuinfo, I notice that one core keeps running at a way higher frequency than it should. However, when I run 'cpupower monitor', all cores are running at the correct frequency. I'm thinking it might be because of the 6.1.x kernel.
 
Old 08-17-2023, 03:12 PM   #6
obobskivich
Member
 
Registered: Jun 2020
Posts: 614

Rep: Reputation: Disabled
Like smallpond said, its dynamic clocks based on workload - it makes many adjustments per second, and /proc/cpuinfo (or similar utilities) are only showing a snapshot. You can encapsulate it into a 'watch' to get a more dynamic view of what is happening - single/multiple cores will 'boost up' if they're doing any work. htop can module cpu frequency as well (I believe via the same interface that cpuinfo is using) in newer versions, which can help visualize load/clocks - bear in mind on many newer Intel CPUs there is also HyperThreading, which will double the total logical processors, and there will be pairs of 'cores' with identical clocks (which are the logical processors 'sharing' a physical core). This is normal/expected behavior, and you can modify it to some extent, both by playing with cpu governors (https://www.kernel.org/doc/html/v4.1...m/cpufreq.html) and/or by going into the system's BIOS and changing power or power saving settings (note that this can have a significant impact on operating temperatures and real power consumption depending on the changes you make, and may not have a significant impact on performance vs defaults).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SiFive speeds up RISC-V U74 cores as Canaan unveils a 3-TOPS Kendryte K510 LXer Syndicated Linux News 0 07-31-2021 11:45 AM
LXer: SiFive speeds up U7 RISC-V cores as Codasip releases first Linux-ready IP LXer Syndicated Linux News 0 07-23-2020 05:23 PM
How to get physical CPU count, cores per CPU, and CPU type on RHEL and CentOS anon091 Linux - Server 7 01-08-2015 10:57 AM
AMD Cores/Threads/Virtual Cores dman777 Linux - Hardware 2 05-07-2013 02:04 AM
How many CPU, cores/CPU? pcotten Linux - General 5 01-20-2011 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration