Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Stern <stern+gnus@cray.com>
Subject: Re: Dribble file getting huge
Date: Wed, 08 Jun 2005 11:58:27 -0700	[thread overview]
Message-ID: <yccmzq07k18.fsf@monkeypuzzle.wc.cray.com> (raw)
In-Reply-To: <qlkacm1ixsd.fsf@thym.ens.fr>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1504 bytes --]

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




  reply	other threads:[~2005-06-08 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 22:53 Gaëtan LEURENT
2005-06-08 18:58 ` Ted Stern [this message]
2005-06-08 20:58   ` Gaëtan LEURENT
  -- strict thread matches above, loose matches on Subject: below --
2005-06-06 23:15 dribble " Gaëtan LEURENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yccmzq07k18.fsf@monkeypuzzle.wc.cray.com \
    --to=stern+gnus@cray.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).