On Mon, Apr 04, 2005 at 05:09:47PM -0400, Schwimmer, Eric E *HS wrote:
No, it seems a bit much. My main server has about 1500 hosts in it,
and spends 4 seconds loading that file (actually, it is split into
about 30 files). If you look at the "bbgen" status, what's the time
reported for the "Load bbhosts done" line ?
From bbgen:
Load bbhosts done 1112648694.989501 0.178303
I tried playing around with this, and there is a bug. It adds the
hostnames to the DNS resolver queue, and since you have more than 500
hosts the DNS resolver does kick in and tries to do DNS lookups of
those hostnames.
I think this little patch should do wonders for your runtime.
Regards,
Henrik
-------------- next part --------------
--- bbnet/bbtest-net.c 2005/04/03 15:39:02 1.210
+++ bbnet/bbtest-net.c 2005/04/04 21:48:08
@@ -811,7 +811,7 @@
}
strcpy(h->ip, bbh_item(hwalk, BBH_IP));
- if (!h->testip) add_host_to_dns_queue(h->hostname);
+ if (!h->testip && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);
h->next = testhosthead;
testhosthead = h;
}