Slashdot Mirror


Apple Looking at ZFS For Mac OS X

Udo Schmitz writes "Apples Filesystem Development Manager, Chris Emura, is looking into porting Sun Microsystems' file system ZFS to OS X. At least this is what Sun's Eric Kustarz states on the ZFS mailing list. Is this a glimpse of hope for all those of us who think HFS+ isn't up to par for a 21st century OS? Next thing you know and they'll rewrite the Finder ..."

11 of 261 comments (clear)

  1. Comparison of Filesystems. by Whiney+Mac+Fanboy · · Score: 5, Informative

    Have a look at wikipedia's Comparison of file systems page to see the difference between ZFS & HFS+.

    The main advantage for HFS+ users (I mean who's really going to need a 16,000,000 Gigabyte file) would be the introduction of journalling beyond metadata (and even this is unlikely to be useful to most people).

    --
    There are shills on slashdot. Apparently, I'm one of them.
    1. Re:Comparison of Filesystems. by captnitro · · Score: 5, Informative

      Since OS X.3, I believe the kernel has defragmented files under 20 MB on the fly.

    2. Re:Comparison of Filesystems. by clifyt · · Score: 3, Informative

      This was actually addressed.

      If you keep around 70% of your drive free, the machine will be able to make large enough chunks that given a combinations of other factors it was meaningless.

      It was said with multiple independent read write heads, you can actually fill the buffer faster by spreading the load out in noncontiguous sections...and even if it did need to read sequential sections from the same head in different areas, both that the drive can read files nonsequentially and load these chunks into the cache while the other read head is catching up -- and that it takes less than a ms to jump from one sector to another these days.

      The clue that was beaten into me was to think of this as sorta a spanned raid within a single drive and that's entirely how these work these days (and then told its entirely not like a raid so I shouldn't use that metaphor lest some nerd that thinks with his head instead of his gut tells me that I'm wrong -- ok I made up the last part, but its essentially what I was told).

      But all in all, as other have mentioned, HSF+ likes to defrag on the fly non-contiguous chunks of less than 20 megs (and it will also do this in the background after the CPU is more free after seeing these) -- and given that the average cache on a drive is around 16 Megs, even when this inevitably doubles in the next year or two, the logic remains that this is still good enough.

      But you are entirely right -- if drives didn't employ caching and multiple independent read write heads (i.e., early multiple platter systems required that the read/write heads all be driven by the same motor and thus killing any attainable speeds).

      Blah blah blah...its all pseudoscience and phrenology to me. I'm just mouthing everything that was sent to me without understanding a word of it. I'm a musician (and technically a pseudoscientist by trade) so making up words and using them incorrectly by mirroring others comes naturally and might even make sense to those that don't know any better :-)

    3. Re:Comparison of Filesystems. by Kjella · · Score: 3, Informative

      Look up any decent hard disk review site and compare sequential read vs random reads, and you'll see that it suffers quite badly. As for the operating system handling that, I don't know about OS X but Windows certainly doesn't. The "never fill it past 60 or 70%" is simply because than the OS can pick large open chunks, avoiding fragmentation but it does nothing to fix fragmentation. Once your drive has been close to 100%, the last files will be in a zillion fragments all over the disk. They will sit around like little road bumps making sure all other files will be fragmented too.

      That said, most desktop users will not notice a big difference between a fragmented, quick-defragment (defrag files, but don't consolidate free space) and full defragmented disk. A typical modern HDD has a 35-40MB/s minimum transfer rate. DV, probably the most resource intensive any normal person bothers with has a measly 25Mb/s = 3,2MB/s. Unless you're suffering from really horrible fragmentation, that should be no problem. Same goes for analog capture with hardware/on-the-fly compression. Yes, there are fringe areas like raw analog video or scientific data but audio capture isn't part of it anymore. And if you're that specific, using a separate tool isn't that big a deal. Servers OTOH might be something, but I imagine most of that is handled by other parts than the OS disk I/O.

      --
      Live today, because you never know what tomorrow brings
  2. Re:HFS+ vs. UFS vs. ZFS by minus_273 · · Score: 3, Informative

    ufs does not work with all software especially stupid applications made by microsoft

    --
    The war with islam is a war on the beast
    The war on terror is a war for peace
  3. Re:This is meaningless by Anonymous Coward · · Score: 5, Informative

    ZFS actually is a ver good file system.

    Here is the ars technica low-down on what ZFS does differently and why that's such a good thing.

    arstechnica.com/news.ars/post/20051117-5595.html

  4. Re:HFS+ vs. UFS vs. ZFS by rsmith-mac · · Score: 4, Informative
    From the AirPort page:
    This issue is resolved in Mac OS X 10.1 and later.

    It's the same deal with the problem with Classic. All 3 items you link to are for OSX 10.0 and have been fixed since then. The number of UFS problems now is minute compared to then.

  5. rewriting the Finder by Aram+Fingal · · Score: 3, Informative

    I know this is just a little comment at the end of the story and not the main topic but the Finder really does need to be rewritten. It has a surprising lack of multithreading, even compared to Mac OS 9. This is most apparent (and most annoying) when you are navigating a slow network volume in the Finder. Quite often, you just can't do anything with but wait for the network to time out.

  6. Re:HFS is big endian by BurntNickel · · Score: 4, Informative

    Currently on intel macs, all disk IO has to be byte swapped, degrading performance. ZFS on the other hand will store data in the machines native format.

    While the non-native byte ordering does slow performance this only applies to metadata and not the contents of the files.

    --
    And the knowledge that they fear is a weapon to be used against them...
  7. Re:Think you'll get it? by booch · · Score: 4, Informative

    I agree that there was a lot in VMS that the world has "lost". I think that modern UNIX implementations should look at what VMS had, to reuse some of the good ideas that we still have not replicated. My favorite is the security system -- various small capabilities that each user (or program) could be granted. And the super-user only had one capability by default: the ability to grant privileges. I also appreciated the automated versioning, with the ability to pull up a previous version from the filesystem without having to use any special programs.

    And yes, I know that Windows NT is sort of descended from VMS. But I've not seen many of the concepts make it up to userland cleanly implemented.

    And I'm also aware that VMS is still around. It may not be on life-support yet, but it's clearly in the nursing home already.

    --
    Software sucks. Open Source sucks less.
  8. Re:Reiser4 would be a better choice by be-fan · · Score: 3, Informative

    Reiser4 is transaction-oriented, just like ZFS. The two actually use a similar principle (not journaling) to maintain consistency, based on COW'ing blocks in a tree, then committing the change atomically by swapping the pointer to the root of the tree in the parent node. Reiser4, however, instead of using the traditional block tree ZFS does, uses "dancing trees", which is kind of a B*-tree with ideas from log-structured filesystems mixed in.

    --
    A deep unwavering belief is a sure sign you're missing something...