From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kim Barrett Newsgroups: gmane.emacs.help Subject: Re: emacs find-file extremely slow over sshfs+vpn Date: Mon, 4 Sep 2023 20:18:36 -0400 Message-ID: <9AB6C447-E192-43DD-8E2C-4DA27067889F@conundrums.ca> References: <87sf7u6y0f.fsf@gmx.de> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29954"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 05 02:19:40 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 1qdJn9-0007d6-Ps for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Sep 2023 02:19:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdJmQ-0007bT-RR; Mon, 04 Sep 2023 20:18:54 -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 1qdJmP-0007bL-Jb for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 20:18:53 -0400 Original-Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdJmM-0000Gc-CA for help-gnu-emacs@gnu.org; Mon, 04 Sep 2023 20:18:53 -0400 Original-Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-64a8826dde2so12016116d6.1 for ; Mon, 04 Sep 2023 17:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conundrums-ca.20230601.gappssmtp.com; s=20230601; t=1693873128; x=1694477928; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fLlSRtkNHmH6SNdQf9pKrWYZf3cMthlBPLGzZpR1Sbs=; b=VQ2Y4FjORzEchU/TNky+eqH3FN1XT8jMRmIfIgrIEnEF4oXHwHODNvl7MRFZ0oACec r4OpIRJzQH04hYlDDpkBCulFWFWKnBPHcPrMEFoZafJCsKXeFgu7zLwpePM0/irU8AOG XDySjSnxmUvzQp8YoszX0tdXgoFbIsVlceDRU5a6E0uhcQvk0036eSPwrIAdl4mlz2J2 E5omY7RnNu9EeIAUjEuNnsCF0tcK3J1OB7X8SFCsvcWpRfOEsyGKKFALuKk//Izaocfr 511qjNI1kKa8dySwtMF2Fhy262mu7NGuD+7iBdYD6lZURFQGJebQ9SBMdQFYLUjYKITH TLtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693873128; x=1694477928; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fLlSRtkNHmH6SNdQf9pKrWYZf3cMthlBPLGzZpR1Sbs=; b=lAOKxyb2z3bxHU7du+R+Ut45a6b/tNZT780sMEWqtSLs4z8GLSbE5dRrk13PEWAj63 inJk6Om6vCG+PUt/9fZZQ1QAJJJ9rW4Ykc8IrpUm7zQ8X3QjQm1Q8Ax0w7IRLVxncle1 g1DaCh56zt0A4LWIJ3JF05U5oR44SEOHxwFF1+JDhoc8151XoSbrMq01ZtzPC5WunegK Kztxt0uswtfhwEPBQJD+r0N5sxFCotxrzNdZq4hg5jkfXQ5Bsz8hPLV6fwi8neAmxrUm Ozh+v1NZHpe+CAYlyxfrR/cVGAfpcVt8v46ev2sZzO4057iskCekiizew+O9dGMyb3qr w68Q== X-Gm-Message-State: AOJu0Yw3aikuN4kvFjaEEYHdAzWOeTcTlB3VyaiAgLKUhHU7SEHPtFL3 CtCcGoI04+t04jpX+GElZ8kZ/GyHH4qbSl0/bzo= X-Google-Smtp-Source: AGHT+IHPgCQ9Pok6GySaqIolg/MgElXiQIifsG+KDZQXSvC41ZSGGhtqWimWD1djyAkvsvUHVepGlQ== X-Received: by 2002:a0c:8c43:0:b0:64b:e135:a3b0 with SMTP id o3-20020a0c8c43000000b0064be135a3b0mr12202172qvb.19.1693873128381; Mon, 04 Sep 2023 17:18:48 -0700 (PDT) Original-Received: from smtpclient.apple (pool-108-7-198-3.bstnma.fios.verizon.net. [108.7.198.3]) by smtp.gmail.com with ESMTPSA id i29-20020a0cab5d000000b0064713c8fab7sm4008728qvb.59.2023.09.04.17.18.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Sep 2023 17:18:47 -0700 (PDT) In-Reply-To: <87sf7u6y0f.fsf@gmx.de> X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: none client-ip=2607:f8b0:4864:20::f2f; envelope-from=kab@conundrums.ca; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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:145075 Archived-At: > On Sep 4, 2023, at 6:20 AM, Michael Albinus = wrote: >=20 > Kim Barrett writes: >=20 > Hi Kim, >=20 >> 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. >>=20 >> 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. >>=20 >> 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). >>=20 >> 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. >>=20 >> 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. >=20 > In my experience, it matters to set proper cache values for sshfs. = Read > the man page. Playing with caching options seems to me unlikely to fix my problem, = since I only see it with emacs, not with anything else (including Aquamacs, a = MacOS port of emacs 25). Emacs seems to be doing "something" when used over my sshfs+vpn configuration, but I've no idea what or how to find out. I spent some time fiddling with cache options anyway, and didn't detect = any improvements. > Alternatively, you could try Tramp for accessing your remote files via > its "ssh" method. Read the Tramp manual. >=20 > Best regards, Michael.