CUPS Slowness due to network issue

Paul Conklin paul.conklin at cerner.com
Fri Mar 22 08:06:55 PDT 2013


HostNameLookups is set to No.  I'll check the dns settings, but with that setting it shouldn't be doing that should it?
> Paul,
>
> This shows cupsd trying to lookup the name for the IP address 192.168.1.14.  After failing to find the address in /etc/hosts, it then tries to contact the DNS server at 192.168.1.1 to get an answer, and that is timing out.
>
> Two things to check:
>
> 1. DNS configuration on the Linksys switch (which I'm guessing is at 192.168.1.1)
>
> 2. The value of "HostNameLookups" in your cupsd.conf file.
>
>
> On Mar 21, 2013, at 10:31 PM, Paul Conklin <paul.conklin at cerner.com> wrote:
>
> > I know this is totaly an issue on my network, I'm just hoping someone can point me in the right direction.  using CUPS 1.6.2 on CentOS 5.9 (happens with 1.6.1 as well) and if i'm just on a network (think Linksys Router) everything hums right along.  I'm trying to do some testing in a larger scale network, so I have a W2k3 machine that all did was the "first server setup" so that installed DHCP, DNS, and AD.  When I do so much as just browse the web page, it is painfully slow and completely hangs cupsd (even lpstat -o hangs), then after about 30 seconds or so, everything comes back.  I did an strace and it hangs at this point.  (right after the 5000).  Anyone have any thoughts?
> >
> > getsockname(15, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("192.168.1.14")}, [47854525612048]) = 0
> > open("/etc/hosts", O_RDONLY)            = 16
> > fcntl(16, F_GETFD)                      = 0
> > fcntl(16, F_SETFD, FD_CLOEXEC)          = 0
> > fstat(16, {st_mode=S_IFREG|0644, st_size=186, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8664b3f000
> > read(16, "# Do not remove the following li"..., 4096) = 186
> > read(16, "", 4096)                      = 0
> > close(16)                               = 0
> > munmap(0x2b8664b3f000, 4096)            = 0
> > socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 16
> > connect(16, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 28) = 0
> > fcntl(16, F_GETFL)                      = 0x2 (flags O_RDWR)
> > fcntl(16, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
> > poll([{fd=16, events=POLLOUT}], 1, 0)   = 1 ([{fd=16, revents=POLLOUT}])
> > sendto(16, "A\244\1\0\0\1\0\0\0\0\0\0\00214\0011\003168\003192\7in-add"..., 43, MSG_NOSIGNAL, NULL, 0) = 43
> > poll([{fd=16, events=POLLIN}], 1, 5000) = 0 (Timeout)
> > poll([{fd=16, events=POLLOUT}], 1, 0)   = 1 ([{fd=16, revents=POLLOUT}])
> > sendto(16, "A\244\1\0\0\1\0\0\0\0\0\0\00214\0011\003168\003192\7in-add"..., 43, MSG_NOSIGNAL, NULL, 0) = 43
> > poll([{fd=16, events=POLLIN}], 1, 5000 <unfinished ...>
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>





More information about the cups mailing list