From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CDqXJoBRkWISwgAAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 00:32:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UBabJoBRkWIkPQAA9RJhRA (envelope-from ) for ; Sat, 28 May 2022 00:32:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 49F621BA0A for ; Sat, 28 May 2022 00:32:32 +0200 (CEST) Received: from localhost ([::1]:39100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuiVS-0007Va-Ex for larch@yhetil.org; Fri, 27 May 2022 18:32:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuiUB-0007Uu-Kq for emacs-orgmode@gnu.org; Fri, 27 May 2022 18:31:11 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:46997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuiUA-00022Z-3S for emacs-orgmode@gnu.org; Fri, 27 May 2022 18:31:11 -0400 Received: by mail-pg1-x535.google.com with SMTP id j21so5045289pga.13 for ; Fri, 27 May 2022 15:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=c/cUxu/OUyi9YgikyT2c+YEMCA2zeSCdh3DzWxC1ujI=; b=B9j0Rym6avHhJeOj+LlzY1Aciz3oPXfa3I9Fw9BfjC+0AsfuVGJZWs2Efv5wj1cnax YojD7Mfhyeuz14ZO77KEh1Jd+QcLpkEMGhuRt7tquvpWDXnju+hHPyZrtbQ1ChJhUp9E UDfgg3ppfezCOnXqT1fu4f87fpQE40VUgKdRWFGyVa5AtMQNjcIKJbDG5WdXG+HpAxB/ QZMAQPQpDjZ9UBMytO5le2tWCIPM3DsfAKBrOLo8p71Nu1RKkXvjzaHfhyuH3Hx2CSP5 /+P0uBYOeq85MD1Zp7VQRSZzGJElkqUqUs0DlA5VrQXUp2kc7KLnluos8bM0KOh0NqEf LlVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=c/cUxu/OUyi9YgikyT2c+YEMCA2zeSCdh3DzWxC1ujI=; b=LnuazG71lWkcw2qjZPgLujfxreA1F9P0zzdQqBz37BqtFJgZ9OF3wWpskmDLXgfwN+ RtKHWeGafUt99Jb8O+kW5ZjLx3UJIBYlf0ugEniigmBCXQWtEG1m/doS5FmZmCYnvHl8 E73wNnO2CQLf09tll+enh1KCRGMxOD7s6dCEPbyGL8FmUNkUV/Yw75B//1Ls7nPqjnxQ +6Wl1XMQW0pcW2zvCwnuGd6lOy81R31XD7VcY+LXtNjXDWxAp0va+YJdOcvgxy4uBd4J C2OAenE45+NEtKKkufCz5ubMM+MqP2LVqV2dp4RlLSn2oNx7M6XeK5FByI8dM6sZTXvb 8fbg== X-Gm-Message-State: AOAM530IMpFdIQWxJU3shp1cba0yWgc6Gm3+xpidqwWCNixAVlkiqXTp BzQRx4LllEoTULwo6373ScA= X-Google-Smtp-Source: ABdhPJwJfSsMNS/jX/i8YuFrfgYLo0xevqg0S+ZWJaMq3Vke+ajebZ/4hsyE+P7arK9PtSXqqdHjYA== X-Received: by 2002:a63:693:0:b0:3f5:ef4e:d359 with SMTP id 141-20020a630693000000b003f5ef4ed359mr39525058pgg.540.1653690668562; Fri, 27 May 2022 15:31:08 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id h17-20020a170902f55100b0016189ed82c4sm4329553plf.79.2022.05.27.15.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 15:31:08 -0700 (PDT) From: Ihor Radchenko To: Tom Gillespie Cc: emacs-orgmode Subject: Re: org-persist-gc and tramp In-Reply-To: References: Date: Sat, 28 May 2022 06:31:48 +0800 Message-ID: <878rqm620b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653690752; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=c/cUxu/OUyi9YgikyT2c+YEMCA2zeSCdh3DzWxC1ujI=; b=cdw0mDHHrpgFTjAL8pwxWWyO8zSYU2NFpgy3KrdBBYhxnh3MUFuW3aYoq4J8wnhSAjouRY 3hCBvhumYkUre5hJYC/kku8i5xbRxPJHR+m4FIFzv1zWmtufkbViUk7FWj8wvyL7fZ8lmQ 7c2/lHMxX/xg4YDBMqguT475TLJtFGCQcw/TDN7D9aty3sWBm3jahZwhG136KZZ/RfRRS6 z0biMA2Cmxe6gNLhTRceOHYniQx1oejjvPeG7xDjlYgojt0q7GhoCOp4wLhg//QX/RTOP2 lon/1dPbkzr8yZ7d1m9ovfKO8NLXIHxnR8lRfgR2lcwnIah3zNKAknDuK7M5Aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653690752; a=rsa-sha256; cv=none; b=JYXGC8qfWTmifkMRIeBCDmDiFm6V18iwRyqiNPJgOTvGkY2e3ZTKYvLDjebp+6i8wUS3IL XwdMX+p6JtPJNhyp2kYY/4qDTdwoQAXs/Q5OcsQEN74kRNbOoTD77bO90c0JIW2DefHtWD mNfywPI6X4sBpeU2z8XtPseZ/fRVB6tqTEXG04m/1X6VoEIUwgzkaQxt8a1sz9Wjh4eonz JGOa5zMFNWPXPsmUTCJKUNH9MQFBnI+oQvKlKv/uUOJRoxUYabkerJ3c709QxadJyO6efI vvjtd3NgPfT0k5oAx4vjxoPoiDNpDnXdXcX2EVpXQpzy+wuDvWfs7iGxvHU2PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B9j0Rym6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B9j0Rym6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 49F621BA0A X-Spam-Score: -5.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: rJU+df3ijYRJ Tom Gillespie writes: > While debugging an unrelated issue I noticed that > tramp was initiating a new connection every time > save-buffers-kill-emacs ran. I eventually tracked it > down to org-persist-gc running on kill-emacs-hook. > ... > I see a couple potential fixes. > - skip gc for remote files > - never persist remote files > - +only gc remote files when their cache is expired+ This should not happen. See the default value of org-persist-remote-files. Can you confirm that you are using the latest version of Org? Best, Ihor