From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67672: EMACS - Slow opening files Date: Tue, 12 Dec 2023 19:07:11 +0200 Message-ID: <83il53tkn4.fsf@gnu.org> References: <83o7f2343c.fsf@gnu.org> <83ttot28oz.fsf@gnu.org> <83r0jx27ft.fsf@gnu.org> <834jgrzve1.fsf@gnu.org> <83bkawvd5j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13427"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67672@debbugs.gnu.org, schand@cooley.com To: "Moore, Rider" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 12 18:08:19 2023 Return-path: Envelope-to: geb-bug-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 1rD6F0-0003IC-Te for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Dec 2023 18:08:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rD6EW-0001iI-27; Tue, 12 Dec 2023 12:07:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rD6EU-0001hi-Kb for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 12:07:46 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD6EU-0006uh-Bq for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 12:07:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rD6Ej-0005MM-PB for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2023 12:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Dec 2023 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67672 X-GNU-PR-Package: emacs Original-Received: via spool by 67672-submit@debbugs.gnu.org id=B67672.170240086220577 (code B ref 67672); Tue, 12 Dec 2023 17:08:01 +0000 Original-Received: (at 67672) by debbugs.gnu.org; 12 Dec 2023 17:07:42 +0000 Original-Received: from localhost ([127.0.0.1]:57399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD6EQ-0005Lo-4I for submit@debbugs.gnu.org; Tue, 12 Dec 2023 12:07:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD6EN-0005LZ-Ej for 67672@debbugs.gnu.org; Tue, 12 Dec 2023 12:07:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rD6E2-0006q2-5r; Tue, 12 Dec 2023 12:07:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uX9RfpVg1rhehD4v102Phq1+Ejkhh4ITicN+H1pkoYI=; b=TEtIKFlr1Mkm juoV8p4h/1kGZcWrRduPsoQfLoUMm+c5XgPkoRDLq6yxYe3khxRBVtXRn8l2Bg4qZI64IyV3DW+Cx IxBcUBB5fKQuZFeZ05WAC2KV00sP9vh/7unMnDeTzHbmKO9Nn0ZTigKpSkW87Q9lMGnw2isdBCxl0 bOCZMlYHFvn8Tek11P+9+o79To/ps1lstFDIUPVtKlcxkb57wWP4B6rLZXEa2Y39M6HhZW4PPuH2b +/A+GIC9S2fRDiAj5yfVyrpOzuPTVZZZzlp8t4C6LkDDnBdcRj800PHaLYzo3eBOMsHWjT3I6Pq13 vpifMxDZkWSKE8Q1uLOK8Q==; In-Reply-To: (rmoore@cooley.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276063 Archived-At: > From: "Moore, Rider" > CC: "Chand, Suresh" , > "67672@debbugs.gnu.org" > <67672@debbugs.gnu.org> > Date: Tue, 12 Dec 2023 15:52:53 +0000 > > The delay is only present for files located within the Truecrypt volume we are using (essential for our purposes). OK, this is good to know, thanks. > Do you know of any commands or settings adjustments needed when working with a Emacs and a Truecrypt volume? No, I don't. I don't think we have ever heard about problems with these particular volumes. Which is why I suggested to run this slow operation under perf, which will allow you to produce a profile of the code, and hopefully will show us which part of the code is the bottleneck. I don't think we can make any progress here unless we understand which parts of the code are slow when opening files on Truecrypt volumes. Another, less convenient method is to step in a debugger through the code in find-file and its subroutines, and see which part(s) there take such a long time. Presumably, if this takes minutes, you should be able to identify the calls that take such a long time. As a "leap of faith", how about timing the following, after starting "emacs -Q": M-: (insert-file-contents "SOME-FILE") RET where SOME-FILE is a file on a Truecrypt volume. Does the above take an abnormally long time, or is it as fast as when you do the same with a file on any other volume?