https://bugzilla.novell.com/show_bug.cgi?id=782060
https://bugzilla.novell.com/show_bug.cgi?id=782060#c2
--- Comment #2 from Bernhard Wiedemann 2012-11-12 15:20:19 CET ---
Created an attachment (id=512792)
--> (http://bugzilla.novell.com/attachment.cgi?id=512792)
patch: don't ask for ntp service
With help of Andreas Schwab I found this.
I verified that this one-line patch speeds up ntpq -pn by a factor of 7.
The alternative is to add
hints.ai_socktype = SOCK_DGRAM;
The underlying problem is that getaddrinfo will read /etc/services
once for every possible protocol, if you don't specify either
ai_socktype or ai_protocol
and for protocols other than tcp and udp,
it will read the big file until the very end.
Also nscd is not configured to cache services.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.