Bug 2185384

Summary: xdg-desktop-portal-gnome queries cups permanently producing too much load
Product: [Fedora] Fedora Reporter: Albert Flügel <af>
Component: xdg-desktop-portal-gnomeAssignee: David King <amigadave>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: amigadave, gnome-sig, jadahl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
captured selected system calls of xdg-desktop-portal-gnome for aronud 10 seconds showing the queries to cupsd and responses none

Description Albert Flügel 2023-04-08 18:47:43 UTC
Created attachment 1956391 [details]
captured selected system calls of xdg-desktop-portal-gnome for aronud 10 seconds showing the queries to cupsd and responses

Description of problem:
After the system is running a while (unclear, i would say, a few hours) xdg-desktop-portal-gnome starts to permanently query cups, about 27 times per second. Thus both xdg-desktop-portal-gnome and cupsd have a CPU utilization of 6-8%. No print job is active, nothing in any queue.

Version-Release number of selected component (if applicable):
xdg-desktop-portal-gnome-43.1-1.fc37.x86_64


How reproducible:


Steps to Reproduce:
1. Start up the system.
2. Wait for a while

Actual results:
as described above.

Expected results:
anyone and anything may query cups, but not 27 times per second for no obvious reason.

Additional info:
Find attached selected system calls captured with strace including timestamps for around 10 seconds
top shows:
top - 20:45:16 up 1 day,  8:33,  3 users,  load average: 0.42, 0.76, 0.82
Tasks: 232 total,   3 running, 229 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.5 us,  6.2 sy,  0.0 ni, 88.2 id,  0.0 wa,  0.0 hi,  0.2 si,  0.0 st
MiB Mem :   5550.4 total,    785.1 free,   2007.4 used,   2758.0 buff/cache
MiB Swap:   9646.0 total,   9644.9 free,      1.1 used.   2925.2 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND   
 3227 user1     20   0 1471804 145428  72136 S   8.3   2.6  15:45.45 xdg-deskt+
  977 root      20   0  248408  12224   8776 R   7.3   0.2  13:25.87 cupsd     

I can't accept such useless waste of CPU resources.