Re: journaling fs and large mailbox format

From: Alin-Adrian Anton (aanton_at_spintech.ro)
Date: 09/30/05

  • Next message: Doug Barton: "Re: journaling fs and large mailbox format"
    Date: Fri, 30 Sep 2005 04:52:36 +0300
    To: freebsd-hackers@freebsd.org
    
    

    Eric Anderson wrote:
    > Alin-Adrian Anton wrote:
    >
    >>
    >> I don't know if the mbox format can handle this, and I know
    >> Maildir cannot handle this on UFS2 standard install, no matter of
    >> soft-updates. (because it exhaustes the free nodes) So I currently
    >> have no solution for this stuff.
    >
    >
    > I'm not sure how you came to this conclusion, or what the history is,
    > but I see no reason why UFS2 would have any adverse affects on maildir
    > format mail system. You can set the number of inodes to be created to a
    > higher number when using newfs on the filesystem, so if you believe that
    > is an issue, you should be able to tweak it to your needs. mbox starts
    > to break down on large mailboxes with many messages. 50mb may or may
    > not be in that range, but maildir is much better for performance.
    >

    I run out of inodes with Maildir, and there were just a few hundred
    accounts. Outlook ppl tend to "leave their messages on server if they
    are not 7 days old" and this brings Christmas every day.

    OK now i received some directions of how to tune it for Maildir, and
    there's also this link I received:

    http://www.mostlygeek.com/node/11

    >
    > A quick note - run the mail area on a RAID array, preferrably a RAID0+1
    > (or 10 depending on who you ask). Disks are nearly always a bottleneck,
    > so if you can keep your random read/writes fast, the whole system will
    > feel snappy.

    Defenately.

    Also there is this:
    http://www.dbmail.org/

    something more appropiate to my principles, however I was told it's not
    so stable.

    >
    > You might try posting this to freebsd-isp@, since many people there have
    > much larger installations running than this, and can probably provide
    > some good hints.
    >
    >

    Thanks for the tip.

    Mike Meyer wrote:
    > The solution isn't to avoid Maildir/mh - the solution is to tune the
    file system for the expected usage.

    Well, I dislike throwing up my problems to a superior level, and act
    like it was brilliant. It was just running away from the issue, instead
    of dealing with it. More exactly, storage problems are database theory.
    Storing the mail is a classic database problem. Throwing this up to the
    filesystem level is not an elegant way of dealing with it, because now
    the filesystem must solve it, and this imposes new restrictions to the
    filesystem.

    I agree, B-trees are for database index problems, and not only, however,
    just imagine what would happen if mySQL or PostgreSQL would throw away
    their database indexing/locking issue up to the filesystem level? It
    would be a total hoax, one would need separate filesystem tuning for
    mysql, one for postresql, one for mail, one for apache, etc.. This just
    brings headaches and unnecessarry restrictions to the partitioning schema.

    This is why something like dbmail seems more appropiate in my opinion
    (conceptually).

    >Neither journaling nor soft updates would solve the problem of running
    out of inodes. The only solution there is more inodes. XFS may be
    flexible enough to deal with file systems that far from the norm - but
    I wouldn't write a business plan based on it without checking first.

    XFS fits incredibly well with Maildir, however this I did not test
    practically (i'd need Linux for that :) ). I think having XFS and maybe
    ReiserFS in BSD is a must (and obviously there must be reasons for being
    a must, one of them being a large scale Maildir situation), however it's
    just my opinion.

    ZCB wrote:
    >From personal experience on a smaller system(~1000 accounts and
    nearly all ways less than 45MB boxes) I would suggest avoiding mboxes
    all together. Maildir is all ways the way to go. For cleaning stuff
    out automatically and ect, maildir is much nicer as well.

    Hm ok, thank's for the info.

    >Also is this vnodes or inodes? See the tuning man pages. For vnodes,
    there are some sysctls.

    Inodes. I'll try both tuning the FS and using dbmail, and see what happens.

    Thank you all.

    Yours Sincerely,

    -- 
    Alin-Adrian Anton
    GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785  2F7C 5823 ABA0 1830 87BA)
    gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA
    "It is dangerous to be right when the government is wrong." - Voltaire
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Doug Barton: "Re: journaling fs and large mailbox format"

    Relevant Pages

    • Re: ext3_dx_add_entry: Directory index full!
      ... mbox style storage scheme. ... Even with a 1k block filesystem, ... million files you'll be wasting 6 gigabytes of disk space of slack ... Maildir is to make it easy to delete or replace individual mail ...
      (Linux-Kernel)
    • Re: To mbox or not, that is the question! (fwd)
      ... On Tuesday 27 April 2004 08:34 am, Jonathan Dowland wrote: ... > Maildir does use considerably more space. ... It depends on the filesystem. ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: Storing a lot of little files
      ... > Hello freebsd-current, ... > Is it possible to allocate inodes dynamically, ... Have you investigated using a database? ... this sort of task than a general-purpose filesystem. ...
      (freebsd-current)
    • Re: the " official point of view" expressed by kernelnewbies.org regarding reiser4 inclusion
      ... Why would I want to intentionally limit myself to a set number of inodes ... switching to ReiserFS it saved one company I worked for over $250,000 ... Or reconfigure the filesystem with more inodes (you were willing to rebuild ... I believe this database was on an 18GB SCSI drive, ...
      (Linux-Kernel)
    • Re: Mail Issues (pt 2 )
      ... database, SQL, would be ok. ... to meet your needs as a file system is just a very primitive database. ... Maildir. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)