From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 02 09:10:24 2014 Received: (at submit) by debbugs.gnu.org; 2 Oct 2014 13:10:24 +0000 Received: from localhost ([127.0.0.1]:58138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZg9H-0006KA-Iu for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:10:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42050) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZg9E-0006Jw-6f for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZg98-0008Pa-Fm for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:10:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZg98-0008PW-D5 for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:10:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZg93-0003oh-9y for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZg8y-00088p-7t for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:10:09 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:28455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZg8y-0007vv-2m for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 09:10:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAPtNLVSkD4Xx/2dsb2JhbABghzzQUQF7hC2BCwIFNAEEiQUBAxGXZI87gXKMIwGIB4EshGmOYwWFFAWfWo4zg2U7gnkBAQE Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 02 Oct 2014 15:08:31 +0200 From: Nicolas Richard To: bug-gnu-emacs@gnu.org Subject: 24.3.93; Warn user if finding fqdn is too slow Date: Thu, 02 Oct 2014 15:08:28 +0200 Message-ID: <87tx3mippv.fsf@geodiff-mac3.ulb.ac.be> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Severity: wishlist Context : Sometimes we encounter the known problem "Emacs startup on GNU/Linux systems [...] is slow." (see e.g. #1492, #9291) and the only visible effect is that emacs is slow. The fact that emacs being slow at startup is sometimes considered normal means that the above problem might be overlooked. (That's exactly what happened to me the last few weeks, I'm happily generalizing this to everyone.) Hence I suggest to warn the user about the situation. As I know absolutely nothing about C, I googled and came up with the, possibly horrid, patch below. diff --git a/src/ChangeLog b/src/ChangeLog index 00a10f2..20b4e72 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-10-02 Nicolas Richard + + * sysdep.c (init_system_name): Warn if the function takes too much + time. + 2014-10-01 Jan Dj=C3=A4rv =20 * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to diff --git a/src/sysdep.c b/src/sysdep.c index 3870b8d..5495370 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1341,6 +1341,9 @@ extern int h_errno; void init_system_name (void) { + time_t start, end; + double dif; + time (&start); #ifndef HAVE_GETHOSTNAME struct utsname uts; uname (&uts); @@ -1471,6 +1474,11 @@ init_system_name (void) if (*p =3D=3D ' ' || *p =3D=3D '\t') *p =3D '-'; } + time (&end); + dif =3D difftime (end, start); + if (dif > 4) { + fprintf (stderr, "It was very long to init system name. See etc/PROBLE= MS via C-h C-p\n"); + } } sigset_t empty_mask; --=20 Nicolas Richard From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 20:07:10 2018 Received: (at 18607) by debbugs.gnu.org; 7 Jun 2018 00:07:10 +0000 Received: from localhost ([127.0.0.1]:37240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQiSM-0007R5-7S for submit@debbugs.gnu.org; Wed, 06 Jun 2018 20:07:10 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:53987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQiSI-0007QP-9e; Wed, 06 Jun 2018 20:07:06 -0400 Received: by mail-it0-f52.google.com with SMTP id a195-v6so10555157itd.3; Wed, 06 Jun 2018 17:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jTIwkxgyOriuRWDh3eyAvj4xfqzOEAGNEaZ0pdH1h68=; b=Bgy8WpgVsg9bY+43SBCbO3gU3fRoOmLc6ZwTt4qCteOyxH9Q1cFaxDAZcQVrZRIqFd jLgU0VGouKe8d/r9XC8E4tNBLb8Hlwz+MFyAGPQa55VJml1MRMGjzy5WSJhwZoXU2VqN 9PuraC4V6RV6sAfEPGwiuYjQKlfyghxuP6jXx+BFCXZI6SMur3YEW64a3hyc9qg8EyOd 9xeUVDQ/DTzJMj+AgVppxCGkv8YIUHh6R2OUQkiSVoBJQLYJr7QQg8EBzOfUyXSz0PkX hy27AzKz7UACy+UqOEd2R0dL0u4r8/zaSpDznMTCAlVAwgEMzQgEGNbzmb6B6z5z6PlO 9tjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jTIwkxgyOriuRWDh3eyAvj4xfqzOEAGNEaZ0pdH1h68=; b=L6ir+FFtDVZCqP+2mK3viCynSmpw0e7ALjsuNN3DghUiWQSzIhC4ikV5tL8XLhpSwr U+rOyfLYK7ETsfu8frTe0Gw4Is8nCuT7O9scJGivgz28ki5RjaMu05VQ/UQWnjNQRvw9 IXpMQ0WXbMfO99U9OPM7YaIf6iOdC6ClzNrKM5TP2fU5GEP2yCikuO2ZwOXBeurmfIJJ g7IOF6pD3JmtGFitddxBoylieaG/62hFeY+9hwGWqkgVk9OgZDM8wM/l/Rd1JzqD7CHJ cApmxt80RnxQ0bAkQ1VAfN4nF9JSVD1vZq1N3lNWrp5Zxksxci0q1s8B5wWmVSLo0cI7 7TeA== X-Gm-Message-State: APt69E25Los1h6sFJ4zh1QRPmN8Z5EW839eMfAvnyVpIKfBdLxh9+hfY mNlPQetZy5e3Ctoc2/5OVndAfPoJ X-Google-Smtp-Source: ADUXVKIYgRo7/HyvxDa58AbgqcY5my/Cf97UEY8pqMnwCRUCi6If9FvbTzpxMVfTuxpl+wk3wxTzMA== X-Received: by 2002:a24:684d:: with SMTP id v74-v6mr37549itb.88.1528330020901; Wed, 06 Jun 2018 17:07:00 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g26-v6sm367885iti.0.2018.06.06.17.07.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 17:07:00 -0700 (PDT) From: Noam Postavsky To: Nicolas Richard Subject: Re: bug#18607: 24.3.93; Warn user if finding fqdn is too slow References: <87tx3mippv.fsf@geodiff-mac3.ulb.ac.be> Date: Wed, 06 Jun 2018 20:06:58 -0400 In-Reply-To: <87tx3mippv.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Thu, 02 Oct 2014 15:08:28 +0200") Message-ID: <87tvqf31el.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18607 Cc: 18607@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 18607 18142 close 18607 quit Nicolas Richard writes: > Sometimes we encounter the known problem "Emacs startup on GNU/Linux > systems [...] is slow." (see e.g. #1492, #9291) and the only visible > effect is that emacs is slow. > > The fact that emacs being slow at startup is sometimes considered normal > means that the above problem might be overlooked. (That's exactly what > happened to me the last few weeks, I'm happily generalizing this to > everyone.) Since Emacs no longer performs DNS on startup to find fqdn, I think this is no longer needed. From unknown Sat Aug 09 20:34:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jul 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator