LinuxQuestions.org
Visit Jeremy's Blog.
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 06-07-2018, 04:19 AM   #1
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Rep: Reputation: Disabled
CPU usage through the roof after latest updates!


System: Slackware 64 current + AlienBob's KDE5
Kernel: 4.15.4
Processor: Intel i7

Installed the latest updates this morning - mostly seems to be fonts. Following the upgrades, I noticed that CPU usage has surged. Top reports:

Code:
 
 2921 pchristy  20   0 3924160 177100 101188 S 110.3   1.1   1:10.20 plasmashell                                       
 1085 root      20   0   60240   7896   5740 S  60.0   0.0  30:43.78 cupsd                                             
 3336 pchristy  20   0  198280  24172   9080 S  34.0   0.1   0:20.05 hp-systray                                        
  966 message+  20   0   21060   3436   2144 R  29.3   0.0  16:17.29 dbus-daemon                                       
 1632 lp        20   0   52020   5532   4968 S  25.3   0.0  13:58.10 dbus                                              
 3190 lp        20   0  312060 265700   5128 S  20.0   1.6   0:11.45 dbus                                              
 2955 pchristy  20   0  260904  22924  19124 S   0.7   0.1   0:00.33 gkrellm
Mostly seems to be plasmashell, but others showing high "idle" usage as well.

Code:
  tail /var/log/syslog
Jun  7 09:17:22 Lightning last message repeated 964 times
Jun  7 10:07:41 Lightning console-kit-daemon[969]: WARNING: Failed to let cgmanager know that it can remove the cgroup when it's empty, the error was: invalid request 
Jun  7 10:07:42 Lightning pulseaudio[2946]: [pulseaudio] pid.c: Stale PID file, overwriting.
Jun  7 10:07:42 Lightning pulseaudio[2946]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Jun  7 10:07:42 Lightning pulseaudio[2991]: [pulseaudio] pid.c: Daemon already running.
Jun  7 10:07:42 Lightning baloo_file: KDE Baloo File Indexer has reached the inotify folder watch limit. File changes will be ignored.
Jun  7 10:07:42 Lightning last message repeated 28 times
Jun  7 10:07:42 Lightning /hp-systray: hp-systray[3022]: error: option -s not recognized
Jun  7 10:07:42 Lightning baloo_file: KDE Baloo File Indexer has reached the inotify folder watch limit. File changes will be ignored.
Jun  7 10:07:42 Lightning last message repeated 850 times
Anyone know what's going on - or how to fix it?

TIA,

--
Pete
 
Old 06-07-2018, 05:05 AM   #2
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
It seem that is a cups problem, because stopped cups, solve the problem.
 
2 members found this post helpful.
Old 06-07-2018, 05:07 AM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
At least in my 2 test/playground computers, from mysterious reasons the PlasmaShell's CPU usage reached about 50% of all 4 cores, BUT I noticed also CUPS in the crowd.

How on those particular computers I do not need printing right now, I stopped CUPS at all, then PlasmaShell started to behave too.

Edit: @GMGF beat me with 2 minutes!

Last edited by Darth Vader; 06-07-2018 at 05:09 AM.
 
2 members found this post helpful.
Old 06-07-2018, 05:10 AM   #4
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Original Poster
Rep: Reputation: Disabled
You are quite right! Many thanks!

Is this just occurring on KDE5, or is anyone seeing it on a "stock" install as well? ie: Do we flag this up to Eric or Pat? I ask because it looks as if cupsd is causing plasmashell to go into a minor meltdown!

--
Pete
 
Old 06-07-2018, 06:10 AM   #5
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
It seem only plasma5 is affected, tested on one other install with kde4, no problem.
 
1 members found this post helpful.
Old 06-07-2018, 06:35 AM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
I confirm that this behavior is not present under KDE4, even in the same computer, but in another partition, where's installed the standard slackware-current.
 
Old 06-07-2018, 06:45 AM   #7
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Darth Vader View Post
I confirm that this behavior is not present under KDE4, even in the same computer, but in another partition, where's installed the standard slackware-current.
Ditto.

Slackware64 14.2+current box

All Updates thru Wed Jun 6 22:19:01 UTC 2018 have been installed, running 4.14.48 GENERIC + latest intel-microcode.

Though I am running the box at runlevel 3, cups is running and when I connect to KDE4 on this Remote Box via rdesktop + xorgxrdp, the load remains reasonable.

The Konsole session in the foreground is an SSH Session to the remote machine where I ran top while connecting to KDE4 via rdesktop

HTH

-- kjh
Attached Thumbnails
Click image for larger version

Name:	sam-kde4-top.jpg
Views:	39
Size:	240.8 KB
ID:	27835  
 
Old 06-07-2018, 07:37 AM   #8
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
I had the same problem after the slackware64-current update this morning. Moreover it was also impossible to use the printer.

This seems to come from the new kernel 4.14.48, because everything works now, after using the preceding 4.14.47
 
Old 06-07-2018, 08:07 AM   #9
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Original Poster
Rep: Reputation: Disabled
Not sure its to do with the kernel - I'm running 4.15.4!

But! Just restarted cupsd to print something, and now CPU usage is back to normal! Perhaps something in the login process to KDE5 is triggering it?

--
Pete
 
Old 06-07-2018, 08:32 AM   #10
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
Quote:
Originally Posted by pchristy View Post
Not sure its to do with the kernel - I'm running 4.15.4!

But! Just restarted cupsd to print something, and now CPU usage is back to normal! Perhaps something in the login process to KDE5 is triggering it?

--
Pete
You are right. I had also downgraded cups to 2.2.7. But after upgrading again to 2.2.8 and restarting cupsd the problem comes back.
So it comes from cups-2.2.8
 
Old 06-07-2018, 12:44 PM   #11
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 854

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Thanks to all for the responses, especially for the tip about cups.

I can confirm the issue.

Apparently this issue appears in the cups + Plasma 5 combination. This issue is not present with the latest cups and Willy's MATE Desktop. However, boot into Plasma 5 and CPU usage goes through the roof until cups is stopped. Main culprits appear to be cups, plasmashell (two processes) and hplip.
 
Old 06-07-2018, 02:01 PM   #12
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Maybe related??

I started seeing this after the update last night, did not have it previously.

Code:
11.946400] CPU0: Core temperature above threshold, cpu clock throttled (total events = 1)
[   11.946401] CPU4: Core temperature above threshold, cpu clock throttled (total events = 1)
[   11.946402] CPU5: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946403] CPU6: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946404] CPU7: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946404] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946405] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946406] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946407] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.946407] CPU4: Package temperature above threshold, cpu clock throttled (total events = 1)
[   11.972385] CPU4: Core temperature/speed normal
[   11.972386] CPU6: Package temperature/speed normal
[   11.972387] CPU0: Core temperature/speed normal
[   11.972388] CPU2: Package temperature/speed normal
[   11.972388] CPU0: Package temperature/speed normal
[   11.972389] CPU4: Package temperature/speed normal
[   11.972430] CPU3: Package temperature/speed normal
[   11.972431] CPU1: Package temperature/speed normal
[   11.972432] CPU5: Package temperature/speed normal
[   11.972432] CPU7: Package temperature/speed normal
 
Old 06-07-2018, 05:45 PM   #13
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Rep: Reputation: Disabled
Bug report: https://github.com/apple/cups/issues/5325
 
Old 06-07-2018, 10:38 PM   #14
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,967

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Quote:
Originally Posted by Toutatis View Post
I had the same problem after the slackware64-current update this morning. Moreover it was also impossible to use the printer.

This seems to come from the new kernel 4.14.48, because everything works now, after using the preceding 4.14.47
Booted back to kernel 4.14.47 a few minutes ago, problem still exist, not the kernel it seems.

I reverted back to cups 2.2.7 and the problem has gone away. Many thanks to Alien Bob's new git repository for tracking the developments in -current as I was able to grab the patch needed for the SlackBuild for cups 2.2.7.

Last edited by chrisretusn; 06-07-2018 at 10:49 PM.
 
Old 06-08-2018, 01:42 AM   #15
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,018

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Just for grins I just built cups-2.3b5, installed it and printed some documents. Problem does not appear. I'm running Slack64-current with AlienBob's Plasma5

Edit: Ooops, spoke too soon. Closed Plasma and reopened it and CPU flat out again.

Last edited by 3rensho; 06-08-2018 at 01:59 AM.
 
  


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
Shell script for CPU usage, memory usage, disk partition space and service status reetesh.amity Linux - Server 6 10-12-2015 07:51 PM
processes/CPU Usage/Mem Usage desktop wallpaper ceantuco Linux - Newbie 2 04-13-2009 01:14 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
The roof, the roof, the roof is on fire... Titan2k SUSE / openSUSE 2 02-22-2005 09:47 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM

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

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