High CPU Usage cupsd 1.2svn r4964
Helge Blischke
h.blischke at srz.de
Wed Jan 25 04:46:22 PST 2006
Gerd Bavendiek wrote:
>
> 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
Increase the Browing interval. The default is, I think, 30 seconds. that may be too short
for your configuration.
Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
More information about the cups-devel
mailing list