|
From: | Jacob Bachmeyer |
Subject: | bug#35069: runtest takes too long on get_local_hostname |
Date: | Mon, 01 Apr 2019 17:28:04 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 |
Tom de Vries wrote:
On 01-04-19 15:39, Andreas Schwab wrote:On Apr 01 2019, Tom de Vries <address@hidden> wrote:Usually the testsuite runs in 12 seconds, but sometimes it takes more than a minute (I managed to reproduce the same problem by running a single gcc testsuite test-case). I tracked this down to tcl info hostname taking a long time, when: - having a vpn session active, and - having no network connectionTcl calls gethostbyname on your hostname, so you should make sure that it is resolvable (by adding it to /etc/hosts, for example, or installing nss-myhostname). That's probably a good idea anyway, since there may be other programs trying to do that too.[...] FTR, I do consider this a workaround though. If my internet connection or configuration is broken in some way, I still expect say, ls to work reliably, with the same speed. And I would expect the same for dejagnu runtest (unless I would be testing network functionality, or remote boards or some such).
I argue that this issue is an NSS configuration error rather than a bug in DejaGnu or even Tcl. The issue seems to be that you had a NSS configuration that exhibits extremely poor performance in the situation you describe. The solution is, of course, to fix your NSS configuration -- there is nothing DejaGnu can really do about this.
To use your example, ls(1) can only be expected to work reliably and quickly when the network is down if the UID/username map is stored locally, as is traditionally done on non-networked systems. In networked environments where that mapping is stored in a central server, it is accepted that network failure causes other problems.
I had always understood that /etc/hosts should map a machine's own hostname to loopback and that omitting that record is a configuration error.
-- Jacob
[Prev in Thread] | Current Thread | [Next in Thread] |