4 ms·
Couldn't Apple have used ZFS instead of inventing APFS? Maybe modifying it to use less physical memory?
by emchammer 2y ago
Couldn't Apple have used ZFS instead of inventing APFS? Maybe modifying it to use less physical memory?
- inkyoto 2y agoSupporting ZFS in a UNIX kernel requires excessively extensive modifications to the design and implementation of the VMM, namely: 1. Integration of the kernel's VM with ZFS's adaptive replacement cache which runs in user space – memory pressure cooperation, page accounting and unified memory management. It also requires extensive VM modifications to support ZFS's controlled page eviction, fine-grained dirty page tracking, plus other stuff. 2. VMM alignment with the ZFS transactional semantics and intent logs – delayed write optimisations, efficient page syncing. 3. Support for large memory pages and proper memory page alignment – support for superpages (to reduce the TLB pressure and to efficiently map large ZFS blocks efficiently) and I/O alignment awareness (to ensure proper alignment of memory pages to avoid unnecessary copies). 4. Memory-mapped I/O: different implementation of mmap and support for lazy checksumming for mmap pages. 5. Integration with kernel thread management and scheduling, co-opertation with VMM memmory allocators. 6. … and the list goes on and on. ZFS is just not the right answer for consumer facing and mobile/portable devices due being a heavyweight server design with vastly different design provisions and due to being the answer to a entirely different question.
- AndrewDavis 2y ago> Supporting ZFS in a UNIX kernel requires excessively extensive modifications to the design and implementation of the VMM, namely: FYI: Apple did a bunch of that work. They ported ZFS to OSX shortly after it was open sourced. With with only support landing in 10.5. With it being listed as an upcoming feature in 10.6. But something happened and they abandoned it. The rumour is a sun exec let the cat out of the bag about it being the next main filesystem for osx (ie not just support for non root drives) and this annoyed Jobs so much he canned the whole project.
- lunarlull 2y ago> The rumour is a sun exec let the cat out of the bag about it being the next main filesystem for osx (ie not just support for non root drives) and this annoyed Jobs so much he canned the whole project. Very petty if true.
- MBCook 2y agoIt would fit jobs though. That’s one of the famous rumors. As others here have said Oracle bought Sun two years later. Between me increased memory requirements, uncertainty due to Sun’s status as an ongoing concern, and who knows what else maybe it really did make sense not to go forward.
- JCattheATM 2y agoThe ZFS code was already released under the CDDL. What was stopping Apple from writing their own implementation like OpenZFS and FreeBSD, regardless of what happened with Sun?
- kergonath 2y agoAs other also said, there were patent issues around ZFS: https://wiki.endsoftwarepatents.org/wiki/NetApp's_filesystem_patents https://wiki.endsoftwarepatents.org/wiki/NetApp's_filesystem...
- flomo 2y ago> But something happened and they abandoned it. The rumour is... The reality is NetApp sued Sun/Oracle over ZFS patents. https://www.theregister.com/2010/09/09/oracle_netapp_zfs_dismiss/ https://www.theregister.com/2010/09/09/oracle_netapp_zfs_dis...
- inkyoto 2y agoYes, they did, but… it was more of a proof of concept and a promise rather than a production quality release. They also had the OS X Server product line at the time (no more), which ZFS would have been the best fit for at the time, and they also released the OS X ZFS port before the advent of the first iPhone. It is not a given that ZFS would have performed well within the tight hardware constraints of the first ten or so generations of the iPhone – file systems such as APFS, btrfs or bcachefs are better suited for the needs of mobile platforms. Another conundrum with ZFS is that ZFS disk pools really, really want a RAID setup, which is not a consumer grade thing, and Apple is a consumer company. Even if ZFS did see the light back then, there is no guarantee it would have lived on – I am not sure, anyway.
- cosmic_cheese 2y agoIIRC that was something they had been working on, but it got axed when ZFS changed hands and licensing became potentially thorny. My memory may be failing me though.
- linguae 2y agoI remember reading back in 2007-2008 that Apple was interested in bringing ZFS support to Mac OS X, but discussions ended once Oracle purchased Sun. This was a bummer; I would’ve loved ZFS on a Mac. After a cursory Google search, I found this article: https://www.zdnet.com/article/zfs-on-snow-leopard-forget-about-it/ https://www.zdnet.com/article/zfs-on-snow-leopard-forget-abo...
- Lammy 2y agoThere were a couple of (iirc read-only) beta ZFS PKGs from Apple in the 10.5 era: https://macintoshgarden.org/forum/looking-zfs-beta-seeds-ye-olde-leopard-days https://macintoshgarden.org/forum/looking-zfs-beta-seeds-ye-...
- leoh 2y agoKind of surprising that the Oracle deal would have killed it given that Jobs and Ellison were such close friends.
- krger 2y agoThey were probably close friends because they weren't business competitors.
- GuinansEyebrows 2y agoEllison didn't make enough money to buy an island (okay, 80% of one) by being "friends" with anyone :)
- wpm 2y agoAround the time of Snow Leopard, it was rumored. I assume the Oracle buyout of Sun around the same time had a big part in killing that particular idea.