[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#533640: lprng (lpd) uses 50% CPU and thousands of DNS lookups per minute



Package: lprng
Version: 3.8.A-2.1

Distribution: Debian Testing (32-bit)

This occurred after printing a 1 page document.

I have my logs set to wrap after 5m and I only keep 3 copies, but this is pretty nasty, it continually runs lookups until lpd is killed and started again:

$ grep '168.12' queries.log*|wc
 167211

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20636 daemon 20 0 271m 267m 764 R 49 6.6 26:56.49 lpd

# strace -f -p 20636 -o /tmp/debug.out
Process 20636 attached - interrupt to quit
Process 4446 attached
Process 4446 detached
Process 4449 attached (waiting for parent)
Process 4449 resumed (parent 20636 ready)
Process 4449 detached
Process 4452 attached
Process 4452 detached
Process 4455 attached
Process 4455 detached
Process 4458 attached
Process 4458 detached
Process 4461 attached
Process 4461 detached
Process 4464 attached
Process 4464 detached
Process 4471 attached (waiting for parent)
Process 4471 resumed (parent 20636 ready)
Process 4471 detached
Process 4474 attached
Process 4474 detached
Process 4477 attached
Process 4477 detached
Process 4480 attached
Process 4480 detached
Process 4486 attached (waiting for parent)
Process 4486 resumed (parent 20636 ready)
Process 4486 detached
Process 4490 attached
Process 4490 detached
Process 4493 attached (waiting for parent)
Process 4493 resumed (parent 20636 ready)
Process 4493 detached
Process 4496 attached
Process 4496 detached
Process 4499 attached (waiting for parent)
Process 4499 resumed (parent 20636 ready)
Process 4499 detached
Process 4502 attached
Process 4502 detached
Process 4505 attached
Process 4505 detached
Process 4508 attached
Process 4508 detached
Process 4511 attached
Process 4511 detached
Process 4514 attached
Process 4514 detached
Process 4517 attached
Process 4517 detached
Process 4520 attached
Process 4520 detached
Process 4523 attached (waiting for parent)
Process 4523 resumed (parent 20636 ready)
Process 4523 detached
Process 4526 attached
Process 4526 detached
Process 4529 attached
Process 4529 detached
Process 4532 attached
Process 4532 detached
Process 4536 attached (waiting for parent)
Process 4536 resumed (parent 20636 ready)
Process 4536 detached
Process 4542 attached
Process 4542 detached
Process 4545 attached
Process 4545 detached
Process 4548 attached
Process 4548 detached
Process 4551 attached
Process 4551 detached
Process 4557 attached
Process 20636 detached

# ltrace -f -p 20636 -o /tmp/debug-ltrace.out

# /etc/init.d/lprng  restart

Restarting LPRng printer spooler: lpd/etc/init.d/lprng: line 86:  8268 Quit                    (core dumped) sleep 1

http://home.comcast.net/~jpiszcz/debug.out.bz2
http://home.comcast.net/~jpiszcz/debug-ltrace.out.bz2

Justin.





Reply to: