a few problems with nsd 3.0.3

it seems like nsd locks up with 100% cpu load

it looks like it loops with a gettimeofday lookup?

it should be fair to say that i have loaded over 100000 zones in nsd (yeah, im not normal :P)

we get this in traces:

gettimeofday({1166093621 109031},0x0) = 0 (0x0)
gettimeofday({1166093621 149335},0x0) = 0 (0x0)
gettimeofday({1166093621 149631},0x0) = 0 (0x0)
close(23) = 0 (0x0)
socket(0x2,0x1,0x6) = 23 (0x17)
fcntl(23,F_SETFL,0x4) = 0 (0x0)
connect(0x17,{ AF_INET 0.0.0.1:0 },16) ERR#36 'Operation now in progress'
gettimeofday({1166093621 191832},0x0) = 0 (0x0)
gettimeofday({1166093621 192129},0x0) = 0 (0x0)
gettimeofday({1166093621 232179},0x0) = 0 (0x0)
gettimeofday({1166093621 232473},0x0) = 0 (0x0)
gettimeofday({1166093621 272407},0x0) = 0 (0x0)
gettimeofday({1166093621 272723},0x0) = 0 (0x0)

gettimeofday(0xbfbfe6c8, NULL) = 0
time(NULL) = 1166093877
random() = 1897731956
gettimeofday(0xbfbfe6c8, NULL) = 0
time(NULL) = 1166093877
random() = 880232573
gettimeofday(0xbfbfe6c8, NULL) = 0
time(NULL) = 1166093877
random() = 1798616357
gettimeofday(0xbfbfe6c8, NULL) = 0
time(NULL) = 1166093877
random() = 85720870
gettimeofday(0xbfbfe6c8, NULL) = 0

system is freebsd 6.1 release

nsd is from ports, 3.0.3

regards, Peter - Larsen Data

Hi Peter,

Hmm The large number of zones causes the processing time.

Can you provide more information?
* What are you doing? Starting it with no information? With preloaded
zone files? Doing a zone transfer?
* The zone files and config you used. :slight_smile:
* You could compile with ./configure --enable-checking, start nsd -L 1
this will provide much more debug messages in the log; what it is using
the cpu for.

Send those to me directly; they are likely to be very large.

Right now I think it may be because the large number of zones is driving
a lot of interprocess data traffic or some slowness in the
zonetransfer-process. More information will tell.

Best regards,
   Wouter

Peter Larsen wrote: