Red Hat Bugzilla – Bug 200870
gethostbyname_r() call takes more time in RHEL 3 than Red Hat 7.2
Last modified: 2007-11-30 17:07:10 EST
Description of problem:
A measure of the time taken to call gethostbyname_r() turns out that this API
takes significantly more time to return than Red Hat 7.2.
Also the recent upgrade from Red Hat 7.2 to RHEL 3 turns out that, the time
taken by gethostbyname_r() is not as stable/consistently low as previously in
Red Hat 7.2.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get system time before calling gethostbyname_r();
2. Call gethostbyname_r();
3. Get system time after calling gethostbyname_r();
4. The time taken by gethostbyname_r() is the difference between system times
of step 3 and step 1.
It is expected to call multiple domain names under both RHEL 3 and Red Hat 7.2
It takes longer time on RHEL3 than on Red Hat 7.2. Also the time used by
gethostbyname_r() for different domain names on RHEL3 are more diverse than on
Red Hat 7.2
RHEL3 should be consistently low as, and even lower than Red Hat 7.2
The implementation does what it has to do. For DNS lookups the time is entirely
dominated by the network traffic. There is nothing to change here.
*** Bug 200869 has been marked as a duplicate of this bug. ***