Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2000 05:54:06 +0000
From:      Tony Finch <dot@dotat.at>
To:        David Miller <dmiller@search.sparks.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: UDP limits in dns server?
Message-ID:  <20001121055406.H54653@hand.dotat.at>
In-Reply-To: <Pine.BSF.4.21.0011192131520.21277-100000@search.sparks.net>
References:  <Pine.BSF.4.21.0011192131520.21277-100000@search.sparks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
David Miller <dmiller@search.sparks.net> wrote:
>
>I'm looking up the IP addresses with up to 1500 or so processes each
>taking a list of addresses and running gethostbyaddr() on them.

That's stupid. Use adns instead.
http://www.chiark.greenend.org.uk/~ian/adns/

>I'm particularly perplexed that a K6-200 system I had was cpu bound
>running named and achieved ~200 resolves/sec; my spiffy new 1100 MHz
>K7 is struggling to double it.

You should be able to acheive that perfomance with one process running
adns. You should be able to do much better if you add a cache (even
quite a small one), since IP addresses in web logs are quite repetitive.

Tony.
-- 
f.a.n.finch     dot@dotat.at     fanf@covalent.net     Chad for President!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001121055406.H54653>