Re: consequences of migrating to maildir storage system

From: Charles Swiger (cswiger_at_mac.com)
Date: 10/28/03

  • Next message: Nucleo de Pesquisa e Desenvolvimento: "IPSEC in tunnel mode ( possible? )"
    Date: Tue, 28 Oct 2003 11:36:17 -0500
    To: freebsd-isp@freebsd.org
    
    

    On Monday, October 27, 2003, at 09:02 PM, Nathan Kay wrote:
    > That is to say, if your file system block size is 16k, and most
    > of the email messages are 1k, that's 15k per message (on average) that
    > you've lost, unless the file system is doing things to avoid it.

    Your thoughts are good, but note that the Unix FFS can break a 16K file
    system block size into eight 2K 'fragments', per "man inode":

          Addresses stored in inodes are capable of addressing fragments of
          `blocks'. File system blocks of at most size MAXBSIZE can be
    optionally
          broken into 2, 4, or 8 pieces, each of which is addressable; these
    pieces
          may be DEV_BSIZE, or some multiple of a DEV_BSIZE unit.

          Large files consist of exclusively large data blocks. To avoid
    undue
          wasted disk space, the last data block of a small file is
    allocated as
          only as many fragments of a large block as are necessary. The
    file sys-
          tem format retains only a single pointer to such a fragment, which
    is a
          piece of a single large block that has been divided.

    Also, the amount of "wasted" disk space due to intrinsic fragmentation
    (ie, due to the fact that files are stored in blocks leaving unused
    bytes after EOF) can be estimated as [ 0.5 * frag_size *
    number_of_files ].

    -- 
    -Chuck
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Nucleo de Pesquisa e Desenvolvimento: "IPSEC in tunnel mode ( possible? )"

    Relevant Pages

    • Re: embedded DVD - RAM / RW
      ... all-at-once file system, except for things like adding extra sessions ... But why do you want to avoid them? ... need to save sets of images or other files onto DVD over time. ...
      (comp.arch.embedded)
    • Re: Reiser FS: all data lost!
      ... > I lost all my data on my Reiser FS partitions! ... The file system was corrupted ... > after a SuSE crash. ... > the Reiser FS was corrupted, and it could not repair it. ...
      (alt.os.linux.suse)
    • Re: cannot compile application
      ... I think the file system of the source drive is NTFS, ... encrypt files. ... may be lost, the content of the file will not be affected. ... > 2) the 2nd way for copying is to use another drive in the same network, ...
      (microsoft.public.fox.helpwanted)
    • Hard drive now showing as RAW, why?
      ... I have a second hard drive in my PC and now all the files appear to be lost ... and in device manager the file system is showing as RAW. ...
      (microsoft.public.windowsxp.general)
    • Re: filesystem information
      ... outage. ... I was just wondering why that ONE file system was misbehaving, ... and has been fine ever since, why is it being lost now? ...
      (freebsd-questions)