From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74615 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Newsgroups: gmane.emacs.gnus.general Subject: expiry taking "forever" in both cpu time and real time when the IMAP UID is high Date: Thu, 02 Dec 2010 13:17:21 +0100 Organization: m Message-ID: <871v609xny.fsf_-_@nemi.mork.no> References: <874od8fjcc.fsf@nemi.mork.no> <1291291383-18946-1-git-send-email-bjorn@mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291292290 11572 80.91.229.12 (2 Dec 2010 12:18:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 12:18:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22971@lists.math.uh.edu Thu Dec 02 13:18:06 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PO86v-0006eY-HE for ding-account@gmane.org; Thu, 02 Dec 2010 13:18:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PO86V-0002bs-Jb; Thu, 02 Dec 2010 06:17:39 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PO86U-0002bj-3x for ding@lists.math.uh.edu; Thu, 02 Dec 2010 06:17:38 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PO86P-0001XK-3p for ding@lists.math.uh.edu; Thu, 02 Dec 2010 06:17:37 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PO86O-0000EK-00 for ; Thu, 02 Dec 2010 13:17:32 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PO86O-0006Pa-2T for ding@gnus.org; Thu, 02 Dec 2010 13:17:32 +0100 Original-Received: from 193.160.199.2 ([193.160.199.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 13:17:32 +0100 Original-Received: from bjorn by 193.160.199.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 13:17:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.160.199.2 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:Eww3c1gTftkYF6Hh1xyEdALREQk= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74615 Archived-At: And then after having implemented the IMAP internal copy speedup, I noticed that the "fetch all articles which are about to be expired one by one" code isn't the worst part of the expiration process... After copying the articles, Gnus does "something" which evidently depends on the UID value. When expiring from my work INBOX, which now is using UIDs in the 280000s although it usually only has a few hundred messages, emacs will eat 100% of one CPU core for a loooong time (several minutes). So I did a simple experiment with my home courier-imap server: I changed the UID value of one article to a high value (>100000) by editing the courierimapuiddb file, and then tried to expire this article. This made Gnus go into the CPU burning mode. There is obviously something going on which doesn't handle high UIDs very well. This happens right _after_ the actual article copying, while waiting for the *Group* buffer to reappear. Any hints? Anyone else seen this? Bjørn