Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Questions on nnmaildir
Date: Wed, 02 Apr 2003 12:33:55 -0500	[thread overview]
Message-ID: <m31y0kby7a.fsf@multivac.cwru.edu> (raw)

Something seems to be up with my subscription; I haven't received any
ding messages since Friday, when there were DNS changes for
multivac.cwru.edu.

Thomas Neumann <blacky_tn@gmx.de> wrote:
> It seems that nnmaildir is quite an inode-hogger.

The files in */.nnmaildir/marks/*/ are hard links.  By default, they
use one inode per group, but if you create */.nnmaildir/markfile
yourself as a hard link, you can use just one inode total.

The files in */.nnmaildir/num/ are hard links.  One extra inode per
group.

The files in */.nnmaildir/nov/ are separate inodes; nnmaildir uses two
inodes per message, where nnml and nnmh use one.

> Wouldn't it make more sense to handle the marks in a fashion close to
> courier? [appending them to the filename]

The current method makes it easier to manipulate marks from outside
Gnus, and for nnmaildir to pick up changes on the fly (whether made
from a shell, or from a concurrent Gnus).  Gnus also has more marks
than the standard maildir format.

You add a hook function to sync nnmaildir's marks with Courier's with
a script: when scanning for new messages, update nnmaildir's marks;
when exiting a group, update Courier's.

> Is it really that much faster for nnmaildir to pick a specific nov-file
> and grab its contents then to search through a single file containing
> all novs and look for a match?

The task here is to fetch some persistently-stored information indexed
by a string (the unique part of the message's filename).  That is
precisely what the filesystem is meant for.  Historically, many
filesystems didn't do a great job of it, and if you're stuck with one
of those, maybe nnmaildir isn't for you.  But if you're not, ReiserFS
or another modern filesystem may be just what you need.


paul



             reply	other threads:[~2003-04-02 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-02 17:33 Paul Jarc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-30 22:16 Thomas Neumann
2003-03-31  1:38 ` Josh Huber
2003-03-31 16:23   ` Thomas Neumann
2003-03-31 14:22 ` Kai Großjohann

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=m31y0kby7a.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).