Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58910 - [cups] 2.2.8 causes high cpu load on all cores

Attached to Project: Arch Linux
Opened by Heinrich Siebmanns (Harvey) - Thursday, 07 June 2018, 10:52 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 21 June 2018, 18:44 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

When installing the update cups/libcups 2.2.7 -> 2.2.8 the cpu load increases from 2-3% up to around 50% on all 4 CPU cores.
top output then:

top - 12:48:55 up 2:10, 1 user, load average: 1,29, 1,54, 1,05
Tasks: 217 total, 3 running, 214 sleeping, 0 stopped, 0 zombie
%CPU(s): 30,8 us, 12,9 sy, 0,0 ni, 55,1 id, 0,1 wa, 0,6 hi, 0,5 si, 0,0 st
MiB Spch: 7971,1 total, 2597,8 free, 1391,8 used, 3981,5 buff/cache
MiB Swap: 0,0 total, 0,0 free, 0,0 used. 6346,3 avail Spch

PID USER PR NI VIRT RES SHR S %CPU %MEM ZEIT+ BEFEHL
612 dbus 20 0 34128 4892 3196 R 66,0 0,1 5:20.93 dbus-daemon
911 harvey 20 0 4390144 318568 114680 S 48,0 3,9 5:27.26 plasmashell
30046 root 20 0 100240 9684 6956 S 28,7 0,1 0:12.21 cupsd
645 polkitd 20 0 2032612 22576 14996 S 26,3 0,3 2:07.68 polkitd
608 avahi 20 0 43040 3068 2740 S 10,7 0,0 0:52.06 avahi-daemon
1 root 20 0 234604 9176 6812 S 6,7 0,1 0:35.24 systemd
30048 cups 20 0 80188 5964 5156 S 3,7 0,1 0:01.51 dbus
947 harvey 9 -11 1686924 18588 14104 S 3,0 0,2 7:01.20 pulseaudio
334 root 20 0 175476 81468 80612 S 2,7 1,0 0:15.22 systemd-journal
644 root 20 0 501244 79128 58168 S 1,0 1,0 3:26.74 Xorg

all other processes beyond 1%

When downgrading to cups 2.2.7 with pacman -S extra/{libcups,cups} and restarting cups with systemctl restart org.cups.cupsd

the cpu load looks like this:

Tasks: 219 total, 1 running, 218 sleeping, 0 stopped, 0 zombie
%CPU(s): 1,0 us, 1,5 sy, 0,0 ni, 96,8 id, 0,3 wa, 0,3 hi, 0,1 si, 0,0 st
MiB Spch: 7971,1 total, 2556,4 free, 1413,7 used, 4001,0 buff/cache
MiB Swap: 0,0 total, 0,0 free, 0,0 used. 6308,2 avail Spch

PID USER PR NI VIRT RES SHR S %CPU %MEM ZEIT+ BEFEHL
947 harvey 9 -11 1686924 18588 14104 S 6,0 0,2 7:06.64 pulseaudio
911 harvey 20 0 4390144 318588 114680 S 1,3 3,9 6:33.69 plasmashell
29485 root 0 -20 0 0 0 I 1,3 0,0 0:00.40 kworker/u17:1
26149 root 0 -20 0 0 0 I 1,0 0,0 0:04.67 kworker/u17:2
29389 root 0 -20 0 0 0 I 1,0 0,0 0:00.42 kworker/u17:3
29649 harvey 20 0 1818288 108096 84356 S 1,0 1,3 0:05.35 konsole

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 21 June 2018, 18:44 GMT
Reason for closing:  Fixed
Comment by Heinrich Siebmanns (Harvey) - Thursday, 07 June 2018, 10:58 GMT
Ah, damn. Missed some additional infos: All testing repos enabled and updated until today (2018-06-07), kernel 4.17-1 (but happened with 4.16.13 as well), KDE as DE
CPU is a
Modellname: Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz
Stepping: 5
CPU MHz: 1303.695
Comment by Andreas Radke (AndyRTR) - Thursday, 07 June 2018, 13:51 GMT
Feel free to report it upstream and try to git bisect it.
Comment by Heinrich Siebmanns (Harvey) - Thursday, 07 June 2018, 16:19 GMT Comment by Heinrich Siebmanns (Harvey) - Thursday, 07 June 2018, 18:52 GMT
And of course it should be cups 2.2.7 -> 2.2.8...
Comment by loqs (loqs) - Friday, 08 June 2018, 00:36 GMT Comment by Antonio Rojas (arojas) - Friday, 08 June 2018, 06:09 GMT
@loqs please post this info to the KDE report https://bugs.kde.org/show_bug.cgi?id=395115
Comment by loqs (loqs) - Friday, 08 June 2018, 11:26 GMT Comment by loqs (loqs) - Friday, 08 June 2018, 12:10 GMT
test patch for issue Harvey encountered. This does not cover https://github.com/apple/cups/issues/5325#issuecomment-395730589
Comment by loqs (loqs) - Friday, 08 June 2018, 19:57 GMT
Updated test patch this additionally does not set the language to utf-8 in ippAddString and ippAddStrings calls which matches cups internal usage.
Comment by loqs (loqs) - Friday, 08 June 2018, 22:04 GMT
@hetfig do you think the other issues with system-config-printer which Michael Sweet noted should be patched as they do not cause an actual issue?
Comment by Heinrich Siebmanns (Harvey) - Saturday, 09 June 2018, 09:51 GMT
I can confirm that 2.2.8-2 fixes my problem. CPU load is back to normal. Thanks to all who contributed ;)
Comment by Paweł Baranowski (pavbaranov) - Saturday, 09 June 2018, 14:24 GMT
I can confirm that 2.2.8-2 fixes problem with high CPU load, too.
Comment by Andreas Radke (AndyRTR) - Tuesday, 19 June 2018, 04:45 GMT

Loading...