resolv-replace problem

M

Matt Lawrence

After running through aproximately 512 ip to name resolutions, the
resolv-replace library seems to become very slow and starts blocking
threads. Any ideas?

Any good alternatives for doing ip address to name lookups on thousands of
systems?

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.
 
E

Eric Hodel

After running through aproximately 512 ip to name resolutions, the
resolv-replace library seems to become very slow and starts
blocking threads. Any ideas?

Any good alternatives for doing ip address to name lookups on
thousands of systems?

I've experienced this problem and assumed it was due to resolv-
replace waiting for the destination name servers to time out, but
didn't verify. Have you examined this possibility?

If you've got 1000 bogus host names, 100 threads and a 30 second
timeout per thread you'll still wait at least 5 minutes for all of
them to fail to resolve.
 
M

Matt Lawrence

I've experienced this problem and assumed it was due to resolv-replace
waiting for the destination name servers to time out, but didn't verify.
Have you examined this possibility?

If you've got 1000 bogus host names, 100 threads and a 30 second timeout per
thread you'll still wait at least 5 minutes for all of them to fail to
resolve.

Shouldn't have to wait for all of the lookups to fail. Every time EACH
lookup fails, the threads should continue. I have a limit in my program
of 50 threads. After about 512 lookups, the number of threads goes from
50 active to 6 or 7 active. Even when using the same address range over
and over.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,222
Messages
2,571,142
Members
47,757
Latest member
PDIJaclyn

Latest Threads

Top