LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2023, 05:44 AM   #1
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Rep: Reputation: 11
High CPU since kernel 6.1.39


I don't want to duplicate the post, but since I am using Slackware and installing the Slackware packages, I think it is relevant to post here a link to the original one.

The thing is that since Kernel 6.1.39 one of the cores of my CPU is always running at 100%, and it goes back to normal as soon as I ddowngrade to kernel 6.1.38.

All the details in the post at Kernel sub-forum.

Thanks!
//Jesus M
 
Old 08-06-2023, 06:28 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
Try to find the process that eat the CPU, for instance with top or htop.
 
Old 08-06-2023, 11:29 AM   #3
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
Question

Quote:
Originally Posted by Didier Spaier View Post
Try to find the process that eat the CPU, for instance with top or htop.
That's one of the mysteries ... none
 
Old 08-06-2023, 11:54 AM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,439

Rep: Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185
Quote:
Originally Posted by elMoco View Post
That's one of the mysteries ... none
Set htop to show all threads, including kernel threads (which it hides by default).
 
1 members found this post helpful.
Old 08-07-2023, 03:02 AM   #5
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
Can't see anything obvious.

EDIT: rrdtools CPU use chart added
Attached Thumbnails
Click image for larger version

Name:	20230807-CPU.jpg
Views:	52
Size:	243.3 KB
ID:	41437   Click image for larger version

Name:	cpu_liet-1days.png
Views:	30
Size:	15.8 KB
ID:	41438  

Last edited by elMoco; 08-07-2023 at 03:05 AM.
 
Old 08-07-2023, 03:25 AM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,439

Rep: Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185Reputation: 4185
Quote:
Originally Posted by elMoco View Post
Can't see anything obvious.

EDIT: rrdtools CPU use chart added
If you want to see processes sorted by CPU usage, you shouldn't use the tree view (you can switch the view with 'F5')
 
Old 08-07-2023, 06:10 AM   #7
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by marav View Post
If you want to see processes sorted by CPU usage, you shouldn't use the tree view (you can switch the view with 'F5')
No-tree
Attached Thumbnails
Click image for larger version

Name:	20230807-CPU-notree.jpg
Views:	54
Size:	128.7 KB
ID:	41440  
 
Old 08-07-2023, 12:44 PM   #8
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Htop shows low CPU usage, the process consuming most CPU power is htop itself which consumes 3.2% of one of your four CPU cores (probably core 3).

That "Total CPU Use" graph, is that ksystemstats? According to htop ksystemstats only consumes about 0.6% of a CPU core (probably core 1 or 2).

Then we have chromium and konsole, each consuming 0.6% of a core (probably core 1 or 2).

At this time, nothing is using core 0 at all.

So your CPU cores are used to 0% + 1.3% + 0.6% + 3.2% which sums up to 5.1/4 = 1.3% of your entire CPU capacity.

Yet your "Total CPU Use" graph claims that you are using 25.1% of 100% capacity. My guess is that this "Total CPU Use" graph itself needs to do some heavy work when it samples the CPU usage.

However, there is one more discrepancy. Your load average is 0.71. The load average is the sum of processes waiting for CPU and processes waiting for disk. If you load average only consisted of processes waiting for CPU your cores should have an average use of about 18%. If you had some process waiting for disk, you should see a "D" in the "S"(tatus) column of htop for that process, but as the load is less than 1 you might have sampled when the process wasn't waiting for disk.

But if you really had a process claiming all the capacity of a core you would have a load average above 1.

regards Henrik
 
Old 08-07-2023, 12:56 PM   #9
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
It seems to be a bug, as commented by @lvm_ here
 
2 members found this post helpful.
  


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
[SOLVED] High CPU since kernel 6.1.39 elMoco Linux - Kernel 15 08-12-2023 04:58 AM
This kernel requires an x86-64 CPU. but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU Annie3 Linux - Laptop and Netbook 9 02-23-2021 01:34 PM
[SOLVED] High CPU load, top not showing any high CPU process angel115 Linux - Server 8 10-12-2015 12:58 AM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:22 PM.

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