What is cupsd doing at this stages?

Anonymous anonymous at easysw.com
Thu Apr 14 09:24:40 PDT 2005


Thanks for the suggestion. However, even after making the changes,
it's still doing the same thing. That is, the cupsd continues to use
cpu even when all printers have already been received.

root at sapti01f:./cups1123 # ps -ef|grep -i cups
    root 1732630       1 107 10:33:55      - 29:53 /opt/TWWfsw/cups1123/sbin/cup
sd -c /etc/opt/TWWfsw/cups1123/cupsd.conf
root at sapti01f:./cups1123 # ps -ef|grep -i cups
    root 1732630       1 102 10:33:55      - 29:54 /opt/TWWfsw/cups1123/sbin/cup
sd -c /etc/opt/TWWfsw/cups1123/cupsd.conf
root at sapti01f:./cups1123 # ps -ef|grep -i cups
    root 1732630       1  88 10:33:55      - 29:55 /opt/TWWfsw/cups1123/sbin/cup
sd -c /etc/opt/TWWfsw/cups1123/cupsd.conf

And it get stuck in the same place:
stopped in strcasecmp.strcasecmp [/usr/lib/libc.a] at 0xd01f961c ($t1)
0xd01f961c (strcasecmp+0x1c) 7ce638ae       lbzx   r7,r6,r7
(dbx) where
strcasecmp.strcasecmp(??, ??) at 0xd01f961c
FindDest() at 0x10012454
ProcessBrowseData() at 0x10028bf4
UpdateCUPSBrowse() at 0x10027848
main() at 0x10000e28

However, I think the issue is not with CUPS anymore. I installed CUPS
1.1.23 on a simillar system running the same OS, hardware, etc, and
copied over the cups configurations and it worked just fine.

root at sapti02:./cups1123 # lpstat -a|wc
    2326   16217   99569
root at sapti02:./cups1123 # ps -ef|grep -i cups
    root 454896      1   0   Apr 12      -  0:01 /opt/TWWfsw/cups1123/sbin/cupsd
 -c /etc/opt/TWWfsw/cups1123/cupsd.conf

stopped in select at 0xd0268bdc ($t1)
0xd0268bdc (select+0x90) 80410014        lwz   r2,0x14(r1)
(dbx) where
select(??, ??, ??, ??, ??) at 0xd0268bdc
main() at 0x10000a9c


Is there a future plan of implementing a database to be used with CUPS?

Finally, I've also posted a message couple of days ago about load-
balance and fail-safe operation with BrowseAddress on servers only. Is
that possible? I've tested it and the client was able to print to the
primary server(using ServerName) but when the primary server is down,
it's not able to print to the secondary server. As if the secondary
server doesn't exist.



> angelb at bugarin.us wrote:
> > ...
> > [zab3670 at stlpr500 cups1123]$ grep -v "#" cupsd.conf|grep -i browse
> > BrowseProtocols all
> > BrowseAddress @LOCAL
> > BrowseInterval 30
> > BrowseTimeout 900
> > ...
> > sapti01f:./zab3670> lpstat -a|wc
> >     2326   16217   99569
>
> 2326 printers, broadcast over a period of 30 seconds, which means
> the client is processing ~80 printers per second.
>
> Change the BrowseInterval to 300 seconds (~8 printers per second)
> to reduce the CPU load, to 3600 (and set the BrowseTimeout to 14400)
> to virtually eliminate it.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
> Internet Printing and Publishing Software        http://www.easysw.com





More information about the cups mailing list