Re: journaling fs and large mailbox format

From: Don Lewis (truckman_at_FreeBSD.org)
Date: 09/30/05

  • Next message: Mike Meyer: "Re: journaling fs and large mailbox format"
    Date: Thu, 29 Sep 2005 19:17:44 -0700 (PDT)
    To: dougb@FreeBSD.org
    
    

    On 29 Sep, Doug Barton wrote:
    > Mike Meyer wrote:

    >> A 4K block won't hold your median file. But an 8K block wastes a lot of
    >> space. You might get a file with 0 blocks and 3 frags, assuming that UFS2
    >> will do that, which doesn't seem good. If UFS2 won't do that, you get a
    >> lot of half-empty blocks, which likewise isn't good. The other option is
    >> a 4K block size, which means you get a lot of 1 block + 1 frag files.
    >> That seems optimal in this case.
    >
    > That's a logical analysis, but you're missing one important premise. UFS
    > doesn't do "more than one file per frag" until the file system gets close to
    > filling up, and the optimization switches from time to space. Therefore, in
    > your example you're actually wasting more space than you would with 8k
    > blocks, and as a side effect making the fs less efficient in at least 2 ways.

    If you know that most of the files are write-once and don't grow over
    time, you can tune the file system to always do space optimization. I
    used to do this with classic Usenet spools and it worked well.

    _______________________________________________
    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: Mike Meyer: "Re: journaling fs and large mailbox format"

    Relevant Pages

    • Re: Improvements to fsck performance in -current ...?
      ... I have seen no issue in snapshots or background ... > fsck to analyze and repair it on an active file system. ... you must newfs the partition. ... The basic improvement in UFS2 is the expansion of many ...
      (freebsd-current)
    • Re: grub, FreeBSD 5.x, on second disk
      ... # fbsd is on the second disk, which is primary on the secondary ide channel, ... At the moment grub does not understand the UFS2 file system, ... There are efforts to make grub UFS2 aware, ...
      (comp.unix.bsd.freebsd.misc)
    • file(1) cannot detect UFS2?
      ... I'm trying to use fileto detect file system type on partitions, ... so far it's working for any file system I've cared to try (the usual MS ... Detecting UFS1 works, though much more verbosely than it needs to be, ... but UFS2 isn't detected at all. ...
      (freebsd-hackers)
    • Re: filesystems
      ... JFS, UFS2, XFS, and ZFS. ... When an acronym ends with FS and the context is operating system components, I can usually infer that we're talking about some sort of file system ... Could be a file system, but could be a new GUI or DRM subsystem for all I know. ...
      (comp.programming)
    • Re: A beginners problem...
      ... Mike Meyer wrote: ... > bother looking in the file system. ... or I just couldn't find the right syntax... ...
      (comp.lang.python)