LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-08-2018, 02:01 AM   #16
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 378

Original Poster
Rep: Reputation: Disabled

Just tried cups-2.3b5, but I still have the high cpu usage. Did you build it using the slackware source package, or did you use a different slackbuild? I'm wondering if its something in the "tweaks" applied by the standard slackware build, although the bug report referred to by Alex would suggest otherwise.....

--
Pete
 
Old 06-08-2018, 02:31 AM   #17
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrisretusn View Post
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.
Which version did you grab from the repository? I've tried all the -current ones, and none of them compile here!

IGNORE THAT! Finger trouble at my end!

cups-2.2.7 now installed and everything is running smoothly again! KDE starts up quicker now, too!

--
Pete

Last edited by pchristy; 06-08-2018 at 02:57 AM.
 
1 members found this post helpful.
Old 06-08-2018, 10:03 AM   #18
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 933

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by pchristy View Post
Which version did you grab from the repository? I've tried all the -current ones, and none of them compile here!

IGNORE THAT! Finger trouble at my end!
Hehe, yeah I can relate.
 
Old 06-08-2018, 02:47 PM   #19
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 425

Rep: Reputation: 183Reputation: 183
Quote:
Originally Posted by pchristy View Post
Which version did you grab from the repository? I've tried all the -current ones, and none of them compile here!

IGNORE THAT! Finger trouble at my end!

cups-2.2.7 now installed and everything is running smoothly again! KDE starts up quicker now, too!

--
Pete
I cannot build cups 2.2.7.

Code:
Compiling cert.c...
auth.c:2021:5: error: unknown type name '_cups_md5_state_t'; did you mean '_cups_message_t'?
    _cups_md5_state_t   state;          /* Primary MD5 state info */
    ^~~~~~~~~~~~~~~~~
    _cups_message_t
../cups/language-private.h:49:3: note: '_cups_message_t' declared here
} _cups_message_t;
  ^
auth.c:2022:5: error: unknown type name '_cups_md5_state_t'; did you mean '_cups_message_t'?
    _cups_md5_state_t   state2;         /* Secondary MD5 state info */
    ^~~~~~~~~~~~~~~~~
    _cups_message_t
../cups/language-private.h:49:3: note: '_cups_message_t' declared here
} _cups_message_t;
  ^
auth.c:2042:5: warning: implicit declaration of function '_cupsMD5Init' is invalid in C99 [-Wimplicit-function-declaration]
    _cupsMD5Init(&state);
    ^
auth.c:2043:5: warning: implicit declaration of function '_cupsMD5Append' is invalid in C99 [-Wimplicit-function-declaration]
    _cupsMD5Append(&state, (unsigned char *)pw, pwlen);
    ^
auth.c:2050:5: warning: implicit declaration of function '_cupsMD5Finish' is invalid in C99 [-Wimplicit-function-declaration]
    _cupsMD5Finish(&state2, digest);
    ^
3 warnings and 2 errors generated.
make[1]: *** [../Makedefs:265: auth.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:38: all] Error 1
 
Old 06-08-2018, 02:52 PM   #20
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,436

Rep: Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689Reputation: 5689
Quote:
Originally Posted by sombragris View Post
I cannot build cups 2.2.7.
You probably overlooked that cups-2.2.7 carries a patch which is now gone from the -current tree but has been preserved in my git repository for -current: https://git.slackware.nl/current/tre...ca8b38b9583c39
 
2 members found this post helpful.
Old 06-08-2018, 03:33 PM   #21
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 425

Rep: Reputation: 183Reputation: 183
Quote:
Originally Posted by Alien Bob View Post
You probably overlooked that cups-2.2.7 carries a patch which is now gone from the -current tree but has been preserved in my git repository for -current: https://git.slackware.nl/current/tre...ca8b38b9583c39
Thank you Eric. I had the patch applied.

Code:
[eduardo:~/build/slackbuilds/cups]$ ls -1
3cd7b5e053f8100da1ca8d8daf93976cca3516ef.patch*
cups-2.2.7-source.tar.gz*
cups-blacklist-usblp.conf*
cups-samba-5.0rc3.tar.gz*
cups-windows-6.0-source.tar.xz*
cups.SlackBuild*
cups.url*
doinst.sh.gz*
slack-desc*
Edit: The asterisk in each file is because the ~/build directory is in fact in a NTFS external volume and then all files appear as executables.

Last edited by sombragris; 06-08-2018 at 03:35 PM.
 
Old 06-08-2018, 04:55 PM   #22
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 425

Rep: Reputation: 183Reputation: 183
Bah. Thanks Eric. Your advice proved correct. I had the patch, but forgot to gzip it before building; the SlackBuild used zcat and looked for a *.gz file for patching.

Now I was able to correctly build and install cups. Thanks for the hint!
 
Old 06-08-2018, 11:21 PM   #23
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,700

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
This patch for cups-2.2.8, work here

https://git.archlinux.org/svntogit/p...=packages/cups
https://git.archlinux.org/svntogit/p...=packages/cups
 
2 members found this post helpful.
Old 06-09-2018, 04:19 AM   #24
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 378

Original Poster
Rep: Reputation: Disabled
Yes, I can confirm that the patch fixes the high cpu idle and printing still works fine!

Many thanks, gmgf!

--
Pete
 
Old 06-09-2018, 06:16 AM   #25
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 933

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Yes, also confirmed here.

cups patch located here:
https://github.com/apple/cups/pull/5...bdb0008420e9ba
 
Old 06-09-2018, 07:35 AM   #26
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235
Quote:
Originally Posted by chrisretusn View Post
Yes, also confirmed here.

cups patch located here:
https://github.com/apple/cups/pull/5...bdb0008420e9ba
Yep, another confirmation here.

Looks like our capricious and sensible Plasma5 made us to discover a bug in CUPS, which bug I believe that our BDFL should patch anyways, because maybe there are also other programs affected, but they aren't discovered yet by us.

Last edited by Darth Vader; 06-09-2018 at 06:51 PM.
 
1 members found this post helpful.
Old 06-09-2018, 02:37 PM   #27
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 425

Rep: Reputation: 183Reputation: 183
Code:
Sat Jun 9 16:57:58 UTC 2018
ap/cups-2.2.8-x86_64-2.txz: Rebuilt.
       Applied upstream patch to fix high CPU usage in some situations.
That was quick! Thank you Pat and everyone involved!
 
  


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 11:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration