From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: yPhil Newsgroups: gmane.emacs.help Subject: Emacs startup is suddenly slow Date: Mon, 3 Oct 2022 03:47:02 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 03 04:47:34 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofBUU-0008T6-0Q for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 04:47:34 +0200 Original-Received: from localhost ([::1]:35382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofBUS-0004ok-Vs for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 22:47:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofBU6-0004oZ-6e for help-gnu-emacs@gnu.org; Sun, 02 Oct 2022 22:47:10 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofBU3-0003nw-DO for help-gnu-emacs@gnu.org; Sun, 02 Oct 2022 22:47:09 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id a10so2395438wrm.12 for ; Sun, 02 Oct 2022 19:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:from:to:cc:subject:date; bh=pbKwmskL/ate5MQMNROe8EbRo/P7XpI8mYARTG//ukI=; b=WeSOjkdvLQpp6TrI6RBQZVspoEL+3WyLUbYTrLtGk0dhvUUrAe59S69yYVWkGA5S3L g9G+sCkoGTNL14S4qMcutSS0EH5+O+Jr5p9Dugqb4a4NISl9qnGwQW1NfrX2jzl0h5tu aqcoCAQoV6JpWKJuPhaaMp7wZMC7+DzriQm9g5AJNh/UNuLcRE+/gmWzThb2ZUYsvkLo TZwmpMZQWSKlLe1c+awJgCl9+wla+igw3WMsxGKw5rwDG+t/GAY4oRixwjTQtrJDROJd /Af1MSJ5cTfc+/QaLNm7QQwyMTA9zOTG+xW1tgGFpwkOq3HBjAJ3HOivSGsy7Frxb/Wg Y0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=pbKwmskL/ate5MQMNROe8EbRo/P7XpI8mYARTG//ukI=; b=Sh2mNvbPcCwljxsIrpFHkVFhpgJiM852L+RoCbp1q0QnSDzdmXB+6QomAt/4Hc2HQ2 C9n4Yo1T8nGF33nSeMBVheokjs4B2uYKJGkHjn4ThbSxRbMO2eS5sh0cUsdtoAflQlSu +A08JqEMiV3mkanubow6wI2Egwpkx/xcv0eNOWpN412q0Iu3kFqT4xnZ+qaPP5Esl5bL 7uVY57eiC6ufctKz8+9e2H/Ben0TEhA8/p0tYtO1jn6UxO/yLPcpm7lJQwmYysPlJh8V 15U3boZnPKN+hESOd0lzjjue0YVTQgjvjvNxOyKhYtXL5eNBEAfwbO4EYxxu+W+AbSuT qwbQ== X-Gm-Message-State: ACrzQf2KN/wMYL1qT0kNInwj7hxatFO8cfHINFCQdlvU5eVjhtuff9Pn lfQ9IiMUoyaQ/qs1aY0sH4tefdizBiRg1g== X-Google-Smtp-Source: AMsMyM5114fivaENy7aP3KO6rQ05yO8BxXix190EHGqb6HibJmhtAeUlBNAcCJMFC6Cra2uSPeSCuA== X-Received: by 2002:a5d:6508:0:b0:22e:1af4:57f9 with SMTP id x8-20020a5d6508000000b0022e1af457f9mr5816783wru.539.1664765224755; Sun, 02 Oct 2022 19:47:04 -0700 (PDT) Original-Received: from [192.168.1.103] ([41.248.173.182]) by smtp.gmail.com with ESMTPSA id v4-20020a5d5904000000b0022ac38fb20asm8290333wrd.111.2022.10.02.19.47.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Oct 2022 19:47:03 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=xaccrocheur@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139697 Archived-At: Hello! I just installed Emacs on a new machine, and noticed a considerable delay at startup, from my usual sub-two seconds to up to more than ten seconds! This gives me time to think and it's not good. Here is the startup log: Loading /etc/emacs/site-start.d/00debian.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done <= *This stays in the message area or a good 5 seconds* Loading image-file...done Loading display-line-numbers...done Loading tab-line...done Loading savehist...done Loading paren...done Emacs 27.1 loaded in 12.46 seconds with 8 garbage collections. Loading /home/px/.emacs.d/recentf...done Cleaning up the recentf list...done (0 removed) Of course,emacs -q starts in under 2secs ; Here is the log: Loading /etc/emacs/site-start.d/00debian.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. So I figured that those loading commands (image-file, display-line-numbers, tab-line, savehist and paren, that all look important) were site-specific, and tried emacs --no-site-file But they seem to still be here, and still are quite blocking: Here is the log: Loading image-file...done Loading display-line-numbers...done Loading tab-line...done Loading savehist...done Loading paren...done Emacs 27.1 loaded in 12.02 seconds with 8 garbage collections. And when started with emacs -q --no-site-file the log is empty. "For information about GNU Emacs and the GNU system, type C-h C-a." I also tried ideas developed in this thread: https://lists.libreplanet.org/archive/html/bug-gnu-emacs/2018-03/msg00614.html such as enabling or disabling the loading of packages in the early-init.el file, but to no avail ; If anything it seems to slow make the startup even slower. Here is my full init file: https://framagit.org/yphil/dotfiles/-/blob/master/.emacs --------------------------------------- Any idea about what could be causing this saddening delay? Tomorrow I'm going to go ahead and buy the fanciest micro SD card in the store (https://www.tomshardware.com/best-picks/raspberry-pi-microsd-cards but the one I have now is really pretty good already I tried a lot of those and had freezes, but not that one, well except or Emacs startup) to try and see if this is just a read/write performance problem ; The thing is, as of today 27.1 seems to be more than two years old, if I'm not mistaking? It's always like that in Ubuntu ; Could this be an old, well-known and long fixed problem? Thank you very much or your attention, -- Philippe # Version GNU Emacs 27.1 # System Linux 5.15.0-1015-raspi #17-Ubuntu SMP PREEMPT aarch64