From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60428 Path: news.gmane.org!not-for-mail From: Ted Stern Newsgroups: gmane.emacs.gnus.general Subject: Re: Dribble file getting huge Date: Wed, 08 Jun 2005 11:58:27 -0700 Organization: Cray Inc. Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1118257384 6960 80.91.229.2 (8 Jun 2005 19:03:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2005 19:03:04 +0000 (UTC) Original-X-From: ding-owner+M8955@lists.math.uh.edu Wed Jun 08 21:03:02 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dg5nS-00037a-F8 for ding-account@gmane.org; Wed, 08 Jun 2005 21:01:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Dg5pf-0003CA-00; Wed, 08 Jun 2005 14:03:19 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dg5pb-0003C5-00 for ding@lists.math.uh.edu; Wed, 08 Jun 2005 14:03:15 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dg5pV-0003u8-SN for ding@lists.math.uh.edu; Wed, 08 Jun 2005 14:03:10 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dg5pU-0007C3-00 for ; Wed, 08 Jun 2005 21:03:08 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dg5j0-0002G2-Hl for ding@gnus.org; Wed, 08 Jun 2005 20:56:26 +0200 Original-Received: from ip-136-162-78-102.cray.com ([136.162.78.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2005 20:56:26 +0200 Original-Received: from stern+gnus by ip-136-162-78-102.cray.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2005 20:56:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip-136-162-78-102.cray.com User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:a/sPojuHDI4G4EnUK+TZEYtFO6s= X-Spam-Score: -4.5 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60428 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60428 On 7 Jun 2005 at 15:53 UTC-0700, Gaëtan LEURENT wrote: > Hi, > > I read some local newsgroup with about 200 messages per day, and with no > expiration; my .newrc-servername.eld gets quite big (around 1MB) but > everything works fine. The problem is that I usually let my Gnus run for > weeks, and then the group informations are written hundreds of time in > the dribble file, which grows to hundreds of megabytes, and so emacs > eats that much memory and gets a lot slower ... > > I don't want to set gnus-use-dribble-file to nil because that would be a > lot of trouble if Gnus crashes after a week. Is there any way to get the > benefits of the dribble file without this annoying memory problem ? > > I tried > (add-hook 'gnus-after-getting-new-news-hook 'gnus-save-newsrc-file) > (add-hook 'gnus-after-getting-new-news-hook 'gnus-dribble-clear) > wich seems to work fine, but I'm not sure this really saves everything. > > Maybe a solution would be to make gnus-dribble-enter smarter so that it > removes the old (gnus-server-set-info ...) before writing the new one ... > > I'm using Gnus 5.11 in emacs CVS. These work for me. Dribble never gets bigger than a few hundred bytes. (add-hook 'gnus-summary-exit-hook 'gnus-dribble-save) (add-hook 'gnus-after-getting-new-news-hook 'gnus-dribble-save) (add-hook 'gnus-group-catchup-group-hook 'gnus-dribble-save) (add-hook 'gnus-summary-exit-hook 'gnus-group-save-newsrc) -- Ted Stern Frango ut patefaciam -- I break so that I may reveal