Bug 2185384 - xdg-desktop-portal-gnome queries cups permanently producing too much load
Summary: xdg-desktop-portal-gnome queries cups permanently producing too much load
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-desktop-portal-gnome
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: David King
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-08 18:47 UTC by Albert Flügel
Modified: 2023-07-07 13:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
captured selected system calls of xdg-desktop-portal-gnome for aronud 10 seconds showing the queries to cupsd and responses (3.25 KB, application/x-xz)
2023-04-08 18:47 UTC, Albert Flügel
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.