From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88666 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jason L Tibbitts III Newsgroups: gmane.emacs.gnus.general Subject: Debugging extremely long IMAP folder exit times Date: Thu, 18 Jul 2019 13:34:12 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="107753"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36870@lists.math.uh.edu Thu Jul 18 20:35:16 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoBFL-000Rnw-Az for ding-account@gmane.org; Thu, 18 Jul 2019 20:35:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hoBEY-0003G2-1V; Thu, 18 Jul 2019 13:34:26 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hoBES-0003DJ-11 for ding@lists.math.uh.edu; Thu, 18 Jul 2019 13:34:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hoBEQ-0003lm-RX for ding@lists.math.uh.edu; Thu, 18 Jul 2019 13:34:19 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoBEM-00063w-UR for ding@gnus.org; Thu, 18 Jul 2019 20:34:17 +0200 Original-Received: from epithumia.math.uh.edu ([129.7.128.2]) by mx1.math.uh.edu with esmtp (Exim 4.92) (envelope-from ) id 1hoBEK-0003lY-EC for ding@gnus.org; Thu, 18 Jul 2019 13:34:13 -0500 Original-Received: by epithumia.math.uh.edu (Postfix, from userid 7225) id 5CDB7801554; Thu, 18 Jul 2019 13:34:12 -0500 (CDT) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88666 Archived-At: Occasionally a folder on an IMAP server will get into a state where it takes ages for gnus to leave it. I have one folder which before today was quick to exit, but today suddenly takes over two minutes. Gnus shows "Expiring articles..." in the minibuffer. If I C-u RET to enter the group, gnus thinks there are over 364000 messages in the group. There are actually only about 9000 messages there, according to another IMAP client. My guess is that gnus is just iterating over 364k entries to see what it should expire. Note that when I run gnus-group-expire-articles on the group from the summary buffer, it doesn't take very long at all. Here is what's in newsrc.eld for the group. I was worried there would be a huge set of ranges in there but the data is quite simple. ("fail2ban" 3 ((1 . 364570)) ((unexist) (seen (364431 . 364570))) nil ((modseq) (uidvalidity . "1535374911") (active 1 . 364570) (permanent-flags %Answered %Flagged %Draft %Deleted %Seen %*) total-expire (expiry-wait . 7))) Any hints on understanding what gnus is doing here, or suggestions on how to speed it up? I used to know quite a bit about Emacs and Gnus internals but it has been many years now since I tried to do anything interesting. I am running emacs 26.2; gnus-version says "Gnus v5.13". Thanks, - J<