[cups.bugs] [LOW] STR #1405: High CPU Usage cupsd 1.2svn r4964
Gerd Bavendiek
gerd.bavendiek at gmx.net
Wed Jan 25 13:22:16 PST 2006
[STR New]
Hi all,
hope I'm addressing this to the right forum. I would like to configure two
nodes as CUPS servers with identical configuration, esp. printers.conf. A
third node named polly shall use these two nodes using
BrowsePoll antwerpen:631
BrowsePoll bruessel:631
in it's cupsd.conf. This works so far (did not as long as I used 1.1.20
BTW). lpstat shows 549 printers.
Unfortunately cupsd takes quite a lot of CPU time (only on the third node,
the one with hopefully zero administration and a 0 byte printers.conf.
cupsd both on antwerpen and bruessel takes only very little CPU).
cupsd on polly typically uses 25 % of a Pentium III @ 1 GHZ. In less than
24 h I have:
polly:/root>>> ps -ef | grep cups
root 21474 21473 0 Jan24 ? 00:00:21 cups-polld antwerpen 631
120 631
root 21475 21473 0 Jan24 ? 00:00:21 cups-polld bruessel 631
120 631
lp 21473 1 25 Jan24 ? 04:08:10 /usr/sbin/cupsd
stracing the process I can see that after getting data from antwerpen or
bruessel via select / recvfrom cupsd always opens /etc/services and reads
this file completely (it's 583K). Running strace -c for a second or two
gives:
polly:/root>>> cat qqq2
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
92.08 0.314693 12 25742 read
1.50 0.005126 27 192 select
1.21 0.004126 24 175 open
1.18 0.004036 23 175 munmap
0.96 0.003283 6 560 time
0.82 0.002812 16 175 recvfrom
0.70 0.002381 14 175 mmap2
0.61 0.002073 6 350 fcntl64
0.56 0.001908 11 175 close
0.38 0.001305 7 175 fstat64
------ ----------- ----------- --------- --------- ----------------
100.00 0.341743 27894 total
Is there anything I can configure to reduce the cupsd load on polly ?
Any hints really appreciated !
Kind regards
Gerd
P.S.: BrowseInterval 120
lulu:/home/bav> tar vtf polly-cups.tar
-rw-r----- bav/bav 6439 2006-01-24 17:30:47 cupsd.conf
-rw-r--r-- bav/bav 308582 2006-01-25 14:31:41 error_log
Link: http://www.cups.org/str.php?L1405
Version: 1.2-current
Attachment: http://www.cups.org/strfiles/1405/polly-cups.tar
More information about the cups
mailing list