LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-24-2021, 04:17 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Rep: Reputation: Disabled
How can i get low cpu temperature on high cpu frequency?


I have Windows 10 and MX Linux installed on the same laptop. On MX Linux i always get higher cpu temperatures for the same tasks i perform on Windows, and it seems to me that when Windows is running on high cpu frequency the cpu temperatures is lower then the cpu temperature on MX Linux when it is running on the same high cpu frequency. So, for the same cpu frequency i get different cpu temperatures on Windows and MX Linux. Any idea why this is happening?
 
Old 03-24-2021, 05:48 AM   #2
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Seems like the sensors or the driver that controls the sensors is not installed or running
 
Old 03-24-2021, 08:16 AM   #3
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
Drivers and sensors are installed, but maybe they are not as good as those on Windows.
 
Old 03-24-2021, 09:14 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Or maybe the Windows ones aren't as good the Linux ones?

Just a thought...

Play Bonny!

 
Old 03-24-2021, 09:20 AM   #5
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
How that can be when i get lower cpu temperatures on Windows?
 
Old 03-24-2021, 09:51 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,911

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
probably higher fan speed?
 
Old 03-24-2021, 11:38 AM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Also when looking at cpu frequency that is not necessarily a comparison of the amount of work being done. Comparing frequency and temp between windows and linux is like comparing oranges and ?grapes?. There are a lot of different factors that go into it.
 
Old 03-25-2021, 02:23 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
The plain fact is that you are running different software, to answer post#1.

There's a sense of deja vue about this thread. You're in effect asking "Why isn't linux as good as windows?" and that attitude goes nowhere.

There are governors in the kernel that allow you to configure for your workload - the powersave governor should get you lower cpu temperatures if you are not already on it. But you might find another metric is more important. How hot is your cpu?
 
Old 03-26-2021, 03:26 AM   #9
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
I am using powersave governor. MX Linux is using this governor by default.

I am not trying to say Windows is better than Linux. I recently switched to Linux as my main OS and i like it, and only thing that is bugging me is that i get higher cpu temperatures on Linux, than Windows, on the same hardware. I am not advanced user, but i can't think of other reason, software wise, than cpu frequency that affects the cpu temperature. For example, if i play a video on VLC on Windows, and then play the same video on VLC on Linux i get higher cpu temperature on Linux. If i compare the cpu frequency during these tasks this are the results:

On Windows:
Click image for larger version

Name:	2021-03-23 14_13_05-Greenshot.png
Views:	43
Size:	112.4 KB
ID:	35927
On Linux:
Click image for larger version

Name:	Screenshot_2021-03-23_12-18-42.jpg
Views:	55
Size:	69.3 KB
ID:	35928

I don't know why Linux is using higher cpu frequency to implement the task. Is this how the powersave governor works, or linux is just not capable to implement the task on lower cpu frequency? This is what i am trying to figure out.

This is some additional info about my system:

Code:
System:    Host: <filter> Kernel: 4.19.0-14-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           parameters: BOOT_IMAGE=/vmlinuz-4.19.0-14-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0 
           Distro: MX-19.3_x64 patito feo November 11  2020 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: Hewlett-Packard product: HP EliteBook 8560w v: A0001D02 
           serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Hewlett-Packard model: 1631 v: KBC Version 01.39 serial: <filter> 
           BIOS: Hewlett-Packard v: 68SVD Ver. F.22 date: 01/05/2012 
Battery:   ID-1: BAT0 charge: 10.7 Wh condition: 11.2/11.2 Wh (100%) volts: 16.8/14.8 
           model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Unknown 
CPU:       Topology: Quad Core model: Intel Core i7-2820QM bits: 64 type: MT MCP 
           arch: Sandy Bridge family: 6 model-id: 2A (42) stepping: 7 microcode: 2F 
           L2 cache: 8192 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 36718 
           Speed: 2309 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 2309 2: 2434 3: 1998 
           4: 2617 5: 2328 6: 2235 7: 1693 8: 2280 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GF108GLM [Quadro 1000M] vendor: Hewlett-Packard driver: nvidia 
           v: 390.141 bus ID: 01:00.0 chip ID: 10de:0dfa 
           Display: x11 server: X.Org 1.20.4 driver: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa alternate: nv resolution: 1920x1080~60Hz 
           OpenGL: renderer: Quadro 1000M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.141 direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
           vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           chip ID: 8086:1c20 
           Device-2: NVIDIA GF108 High Definition Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0bea 
           Sound Server: ALSA v: k4.19.0-14-amd64 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard driver: e1000e 
           v: 3.2.6-k port: 5020 bus ID: 00:19.0 chip ID: 8086:1502 
           IF: eth0 state: down mac: <filter> 
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel 
           port: 4000 bus ID: 25:00.0 chip ID: 8086:0085 
           IF: wlan0 state: up mac: <filter> 
           IF-ID-1: vboxnet0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.02 TiB used: 894.40 GiB (85.7%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37120G size: 111.79 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: B1D1 scheme: MBR 
           ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS541010B7E610 size: 931.51 GiB 
           block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A01 scheme: MBR 
Partition: ID-1: / raw size: 62.46 GiB size: 61.23 GiB (98.03%) used: 35.81 GiB (58.5%) fs: ext4 
           dev: /dev/dm-0 
           ID-2: /boot raw size: 500.0 MiB size: 476.2 MiB (95.24%) used: 158.5 MiB (33.3%) 
           fs: ext4 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 49.0 C mobo: N/A gpu: nvidia temp: 45 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ buster main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb https://mirrors.netix.net/mx/MX-Packages/mx/repo/ buster main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 304 Uptime: 1d 23h 54m Memory: 7.74 GiB used: 4.30 GiB (55.5%) 
           Init: SysVinit v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 
           Shell: quick-system-in running in: quick-system-in inxi: 3.0.36
 
Old 03-26-2021, 04:34 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
You won't be round linux very long before you realise linux is very capable. More than windows, linux can be tweaked to run on various systems. Here is the "Arch" directory from the kernel source
Code:
ls /usr/src/linux-5.10.15/arch
Kconfig  arc  arm64  csky   hexagon  m68k	 mips	nios2	  parisc   riscv  sh	 um   xtensa
alpha	 arm  c6x    h8300  ia64     microblaze  nds32	openrisc  powerpc  s390   sparc  x86
You won't put numbers on the difference in temperatures, so there's nothing much more to say. Linux stays in safe numbers, and if you don't like what powersave is doing you may be able to profile it. Changing CPU frequency is not as simple as revving up a car engine. If a load comes on, cpus at low frequency will be slower to respond to it. The fact that windows sets the frequency lower will probably make it slower. But I gather your cpu is not stressed. so why not inquire from M$ why they set the frequency so low, and wait for their answer :-P.
 
Old 03-26-2021, 10:17 AM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Just to comment on your claimed speed difference.
In the windows image it says the average cpu freq is ~1,680 Mhz
From the linux image it appears the average is closer to ~1,200 Mhz.

As has been stated, the diff in temps are likely due to fan speed and the profile for auto control is usually selected in the BIOS. There are utils to change some of those settings in Linux, but I cannot offer a suggestion on where to look for your distro except the cpu governor. The cpu governor only interacts with the cpu itself and the fan profile is tied to the cpu.
 
Old 03-26-2021, 12:44 PM   #12
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
49C is a low temperature for a CPU. The temperature should not exceed 85-90C.
Ed
 
Old 03-27-2021, 12:34 PM   #13
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
The temperature is low because the system was idle when i run the system info command.
 
Old 03-27-2021, 02:59 PM   #14
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
You have not stated what temperatures you are measuring.

If the CPU temperature is less than 85C under full load, the laptop is working as designed.
Ed
 
Old 03-27-2021, 04:07 PM   #15
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
I didn't say the temperature is above 85 degrees. The problem is that the temperature on linux is with around 10 degrees higher than that on Windows, when they are implementing the same tasks. And both system are using the same hardware.
 
  


Reply



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: s-tui - A Terminal Tool To Monitor CPU Temperature, Frequency, Power And Utilization In Linux LXer Syndicated Linux News 0 02-19-2019 11:02 AM
Temperature inside computer box and CPU temperature Lola Kews Linux - Hardware 14 11-29-2013 06:22 PM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
High Load Average, Low CPU, Low IO Wait ordaolmayanadam Linux - Server 13 07-15-2010 06:55 AM
LXer: Temperature and CPU Frequency Control with Linux LXer Syndicated Linux News 0 05-04-2008 01:50 PM

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

All times are GMT -5. The time now is 04:46 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