Gnus development mailing list
 help / color / mirror / Atom feed
From: Wes Hardaker <wes@hardakers.net>
Subject: Agent .overview files not getting truncated (was Re: memory usage results (ack!))
Date: Thu, 07 Feb 2002 14:20:27 -0800	[thread overview]
Message-ID: <sdadulc4t0.fsf@wanderer.hardakers.net> (raw)
In-Reply-To: <sdwuxqoyxq.fsf@wanderer.hardakers.net> (Wes Hardaker's message of "Wed, 06 Feb 2002 17:36:33 -0800")

>>>>> On Wed, 06 Feb 2002 17:36:33 -0800, Wes Hardaker <wes@hardakers.net> said:

...
Wes> *nntpd*:
Wes> text 34088184
...

Wes> Yikes.  Ok, so the nttpd buffer (note all these have a leading space)
Wes> is 34megs.   The agent overview is also 34 megs.  Double ouch.

Ok, I think I've figured out where the memory has gone:

% ll .overview
-rw-------    1 hardaker wheel    13765613 Feb  7 14:08 .overview
% wc -l .overview
  47372 .overview

So, there are 47k lines in my agent's .overview file.  But there are
only a handfull of messages in the directory itself.  So this quickly
made me check what else is in the .overview file:

% egrep '^10015' .overview | wc -l
     36

Ahh...  So 36 lines are functionally duplicates for a single message.
But why?

So, I move this file aside and reenter the group and bang!  What a
speed difference (and I'm sure a memory difference too, but I probably
need to restart emacs to claim everything).  Now the .overview file:

% egrep '^10015' .overview | wc -l
      1

Yay.  A single line.

keystrokes:  q ENTER

Nada.  No change.  A good thing.

keystrokes:  q 2 g ENTER

% egrep '^10015' .overview | wc -l
      2

Ack.  And so we begin again collecting too much data.

Apparently the new auto-header-fetch code is duplicating stuff?

% ll `find . -name .overview` | awk '{ size=$5 + size } END { print size }'
15750346

15 megs of overview files anyone?  (and this is after removing the two
largest ones which were 13 megs and 18 megs each.

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."



  reply	other threads:[~2002-02-07 22:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-07  1:36 memory usage results (ack!) Wes Hardaker
2002-02-07 22:20 ` Wes Hardaker [this message]
2002-02-07 23:24   ` Agent .overview files not getting truncated (was Re: memory usage results (ack!)) ShengHuo ZHU
2002-02-08  5:08     ` Wes Hardaker
2002-02-08  6:02       ` ShengHuo ZHU
2002-02-08 15:44         ` Wes Hardaker

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=sdadulc4t0.fsf@wanderer.hardakers.net \
    --to=wes@hardakers.net \
    /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).