At the heart of every operating system is the file system that provides read/write access to data. Since 2001, Ext3 has been the mainstay of Linux file systems, but a better file system may be in the works (see Linux File Systems: You Get What You Pay For and Linux File Systems: Ready for the Future?).
BTRFS (dubbed Butter FS by some) is currently under development in an effort led by Oracle (NASDAQ: ORCL) engineer Chris Mason. With the support of Intel (NASDAQ: INTC), Red Hat (NYSE: RHT), HP (NYSE: HPQ) and IBM (NYSE: IBM), BTRFS could become the engine that brings next-generation file system capabilities to Linux.
"The main goal is to let it [Linux] scale for the storage that will be available," said Chris Mason, director of Linux Kernel Engineering at Oracle. "Scaling is not just about addressing the storage, but also means being able to administer and to manage it with a clean interface that lets people see what's being used and makes it more reliable."
After all, Mason noted, although hard drives are getting bigger, the error rates on those drives are not going down (see Keeping Silent About Silent Data Corruption and Solving the Storage Error Management Dilemma).https://o1.qnsr.com/log/p.gif?;n=203;c=204660765;s=10655;x=7936;f=201812281308090;u=j;z=TIMESTAMP;a=20400368;e=i
"We need to be able to easily determine when disks have the wrong information on them," Mason said. "And we need to be able to do file system consistency checking and need to be able to recover from errors in a much more robust fashion then we currently do."
With the current Ext3 Linux file system, scaling to meet the needs of large storage is a challenge for several reasons.
One of them is that Ext3 was never designed for the large data pools that enterprise and even consumer desktop users now have available to them. Mason noted that on Ext3, for every 4k of data there is a piece of metadata pointing to where that 4k of data is on the drive. So as files grow larger, so does the amount of metadata. It's not very efficient.
"BTRFS uses something called extents, which just says that from this starting position for this number of blocks, use this part of the disk," Mason said.
The extents approach is more scalable and efficient than the 4k block approach of Ext3. Extents are also part of the new Ext4 file system, which is part of the upcoming 2.6.28 Linux kernel release.
Though Ext4 adds extents, Mason noted that BTRFS adds a number of other features beyond that. Among those features are items like snapshots, online file consistency checks and the ability to perform fast incremental backups.
"BTRFS is a file system that we think has a lot of potential to be a key next-generation file system for Linux," said Ric Wheeler of Red Hat.
Wheeler noted that Red Hat engineers are actively contributing to its development and have made substantial contributions to the project. Intel is also active in BTRFS. Imad Sousou, director of Intel's Open Source Technology Center, said Intel likes and contributes to BTRFS.
Intel's view is that it has the right technology and architectural decisions to evolve Linux file systems to support the increased demands in areas such as performance and fault tolerance.
HP is also a key backer of the effort and is putting some of its UNIX heritage in play to help out.
"BTRFS is very interesting to HP because its goal is to provide a core set of features that are very similar to what we have with Tru64 AdvFS and a set of features that go beyond that," said Bdale Garbee, chief technologist for HP's open source and Linux organization.
In June, HP open sourced its Tru64 AdvFS file system, which has its roots in Digital Equipment Corporation's Digital Unix. Oracle's Mason noted that he was a Tru64 user years ago and that the open sourcing of AdvFS by HP has been a major benefit to the BTRFS effort.
Mason is now pushing to have a testable version of BTRFS available to Linux users before the end of 2008. He's currently aiming to have a version of BTRFS available as part of the 2.6.29 Linux kernel as well.
"This week, I pushed out the last huge format change, and there are still a few small ones to come, " Mason said. "Once all that is done, it will make it much easier to get out to a broad number of testers."
At this point, Mason's biggest challenge in getting BTRFS together is keeping it stable.
"There is a big volume of changes coming in because we have a lot of contributors," Mason said. "It's mostly just a software engineering effort to make sure we make it easy to test and don't introduce regressions."
Article courtesy of Internet News