Gnus development mailing list
 help / color / mirror / Atom feed
From: Jim Pick <jim@jimpick.com>
Cc: "(ding)" <ding@gnus.org>
Subject: Re: [PATCH] Mail fetching on memory-poor machines
Date: 14 Jul 1999 20:23:36 -0700	[thread overview]
Message-ID: <87vhbmzjd3.fsf@pepper.jimpick.com> (raw)
In-Reply-To: Stainless Steel Rat's message of "14 Jul 1999 21:21:00 -0400"

Stainless Steel Rat <ratinox@peorth.gweep.net> writes:

> * Jim Pick <jim@jimpick.com>  on Wed, 14 Jul 1999
> | Why not fix the problem?  The results of the problem are so bad that
> | it's basically a bug.  Fixing it seems like a more logical thing to
> | do, rather than force everybody to use the program in a certain way.
> 
> Because, if I understand what your code does (which might not be the case),
> it only works for people who use Gnus "your" way while slowing it down
> unnecessarilly for those who are not on memory-starved systems, have large
> nnfolders, and do use Gnus to split mail sources.

I know.  I stated that the patch wasn't for everybody when I posted
it!

It wouldn't be too hard to put in a customize option to enable/disable
it - but I haven't gotten any feedback on whether this is wanted.  The
patch was ugly enough that I'm not sure that if it should be
integrated as is.

I can think of several different ways of achieving a similar effect.
For example, it might make sense for Gnus to track the size of the
buffers currently in use, and only save the least-recently-used ones
to disk to free up some space.  That's overkill for my case though.

I didn't put a lot of effort into it because Lars might want to do it
some other way.  The patch was just posted to illuminate the problem
(hopefully).

I'll live if the problem isn't fixed upstream - but I fixed it here,
so I thought I'd share.
 
> Personally, I am all for lean and mean, which is one of the reasons why I
> don't use nnfolder.  I tried it, briefly, back when I was on a 12MB system.
> That was a mistake :).

I still like nnfolder.  I don't find it very objectionable at all
(with my patch).

> For what its worth, inode starvation is not as likely as you might think.
> The average mail message is ~3-4kB; the average inode size on a modern
> filesystem is 4kB.  One message, one inode.  On an ~1GB filesystem you will
> have around 256k inodes (more, actually).  In practical terms, you will run
> out of space before you run out of inodes, unless your filesystem is tuned
> with unusually large inodes or you are suffering under a woefully
> restrictive inode quota.

My primary objection to nnml is primarily that it is painful to do
anything that scans the disk.  I've got a very large mail archive.

As an aside - I did manage to run out of inodes once when I was using
nnml before.  I compressed my mail files, and was using jka-compr.
When the files are compressed, they average out to be smaller than
than default 4kB per inode, and it suddenly becomes possible to run
out of inodes.  In that case, I just backed everything up, and
reformatted the partition with more inodes though.  No big deal.

Cheers,

 - Jim



  reply	other threads:[~1999-07-15  3:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-14  5:13 Jim Pick
1999-07-14 19:02 ` Stainless Steel Rat
1999-07-14 21:31   ` Jim Pick
1999-07-15  1:21     ` Stainless Steel Rat
1999-07-15  3:23       ` Jim Pick [this message]
1999-07-15 14:44         ` Stainless Steel Rat

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=87vhbmzjd3.fsf@pepper.jimpick.com \
    --to=jim@jimpick.com \
    --cc=ding@gnus.org \
    /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).