From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: emacs find-file extremely slow over sshfs+vpn Date: Mon, 04 Sep 2023 12:20:00 +0200 Message-ID: <87sf7u6y0f.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23756"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Kim Barrett Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 04 12:21:09 2023 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 1qd6hh-0005zs-6F for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Sep 2023 12:21:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qd6gu-0000In-Gd; Mon, 04 Sep 2023 06:20:22 -0400 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 1qd6gj-0000GD-CT for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 06:20:11 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qd6ge-0002ja-8t for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 06:20:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1693822801; x=1694427601; i=michael.albinus@gmx.de; bh=EmU0xDEgLbIFNfmjoPQOZXop2M0YV5gLeqYouqcrSRc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=GF4BVnvsKzxuXIFXbtXSsPd+HXYa6vCznjohn4jxJBSUin/+Qbl7if12vkZK19C9VZjCdkD BGgd7vj4INyJo7mm44U2lRGsmWPF1ghREzKc9FDKKYxUSiDDEKXjdK8UKRvMsTiGOCeRMPJNp /ZxI6NfMRR7OYeCH0VdPe+/r42ZV8JGYNnPbNCVL0gzc21jkQcLc/+02B1L7To/JaxxwWomeX Zr6QQ30q0m3MR/dz8Jx16w1wvYUsWePcwK8ANLEcv9wdKV13w/sKlWU9ro2Kd6hJzvS+Wexhw inXi2tJ0CkKFGv52GtAcKyrtdt7dsyfJ+H3TQfmjxBROcS1SPYWA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N95eJ-1pYC1u0U6B-0163ir; Mon, 04 Sep 2023 12:20:01 +0200 In-Reply-To: (Kim Barrett's message of "Sun, 3 Sep 2023 16:54:30 -0400") X-Provags-ID: V03:K1:mI3x2I1MmCenKdtP2MlssDgu5qkxqlA1h123wtGgQ6XUApAJghG TIxRf125krgPUAGX/vqk3Z/zoHxQSvzTh+iRLZd7t4iqohnsCshuCM2og9EpwUwlrLMKn3W hxxrWdIjGopCEfbgsBID+hzUTDQNIhweAPuP6rMgO3vZ4ZqKMApiEu9hXkivKUz7Azql3v2 oeB7sARO/EKyPv6Tx2c7Q== UI-OutboundReport: notjunk:1;M01:P0:rQJBNkmD2kQ=;aswQUacqOqOFh1EWhNyk7UK6h7g kOc4Dh5WcvQ/F0cr01JvU0gb9C2rhNujNiE3Oss87gBADF0WVI4bFqJXyeiwnp/NZY5H3jtvI hW2zXECa2Um131OeNZeCPZei9A+PVIGg07cDHstcjO99YpuNfN+CV+PksZxQmkpM5gTpmfuFE GVxawz1I6E/hrWyb1bpPYIaWUggjrl9LmXWWVab2kQMtta3cg4wXygLZx6qCrnOr9OtHcnsR2 owxlg0LVUWIMjiXDxFjxaNszrSt2B6fz79cwLpTjbL7jb4Nkbo6OjtgZF1mlc3x8RdQzlBXkV dw0NdWs8uP0uwC7WHrU+qLjlszovvjFLm9C4hBRClwkoID9VeqYuAUW20SZaO83gxIC7zVhwn J/zMLOTByRGdfFcTZruNgokh9cMShgEJLzYnq+anNbYE1NCP3N0UHfuPlGyUp9xHOWf7ZjbjE 6O18O/v/xVluwkSDzXTM6zy3HWTHLmwHoAeF8SZG5UmtT1hKrXk7GI2Jhng3IXQwve8bcHwSs mgHlqqIJpYshZUiYK4oB798OBLleZpanXfZNuCmDvYL5ttOKTcK5QzC3K7r9QYNFE3JIbDlaM vSBFKPmX1yU6GOuUsjuyH0sASIw4VSgpOZO6q+3Kt0aD9lzjBOuO9RNXI7PMDvDisXCUgrTpe N1WdgbWDgtWTyo5xMLc9LC/OflDkH+rPSA2sb9t7qHUjb1EIuOi+bEPipDifJVwABZMdpE2vE jb1o7iVKRwemAzaFxsU2hQWIY1pJ22LNme4JP+tFkJVmhxQrZde2olG8qjemmxtHg+59ESJM Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145069 Archived-At: Kim Barrett writes: Hi Kim, > I'm trying to use emacs (29.1-1, also 28.2 and 28.1-4) on MacOS to edit files > on a remote machine via VPN and sshfs. (Mac-compatible emacs obtained from > https://emacsformacosx.com/builds.) Using emacs to read or write such files > takes a very long time, like 2-3 minutes. These are not large files. Obviously > this very usable. > > It seems like the VPN is connected to the problem, since I don't see such a > delay when reading and writing files accessed via sshfs on a remote machine > that doesn't need VPN for access. > > The network performance over VPN isn't amazing, but by itself it's nowhere > near bad enough to account for what I'm seeing with emacs. And I don't see > anything like that slowdown with other applications (including Aquamacs, a mac > port of emacs 25). > > Searching the web finds various similar sounding complaints of various > vintages, but I'm not finding anything that matches what I'm seeing and has a > solution. > > Any suggestions? I'd really like to switch to a recent version of emacs (I've > been using Aquamacs, but it's been stuck on emacs 25 for a long time). But > this problem makes that impossible for one of my main uses. In my experience, it matters to set proper cache values for sshfs. Read the man page. Alternatively, you could try Tramp for accessing your remote files via its "ssh" method. Read the Tramp manual. Best regards, Michael.