If you run your data center on Linux you have likely heard of BTRfs, the next generation file system that was recently merged into the kernel. If you haven’t heard of it, you should, as it stands to make your life, and all those who handle large amounts of data on Linux, much easier, more reliable and more scalable.

While BTRfs isn’t ready for production yet, I think it’s one of the most exciting and important developments in Linux today. I recently sat down with Oracle developer Chris Mason to discuss the file system, how he corrupted Linus’ root filesystem with his first patch (and lived to tell about it) and just how you pronounce the name of the project.

Amanda: Can you describe BTRfs? What is it and why should users care?

Chris: Btrfs is a new, next generation filesystem designed from the ground up for Linux.  It aims to solve scalability problems for larger and faster storage, while also adding features that existing Linux filesystems lack.

Amanda: There is a lot of choice of file systems in Linux. Some people might say there is too much choice. What do you think?

Chris: Linux has grown a rich infrastructure for filesystems, making it very easy to experiment and innovate with different storage technologies. So, it isn’t surprising that many different filesystem projects have found their way into the kernel.

One of the reasons we are able to sustain these projects is because Linux is used with so many different workloads and types of storage.

Amanda: What’s the status of BTRfs? I know it was merged in January 09 in kernel 2.6.29; when will it be ready for users to use in production?

Chris: One of the earliest goals of Btrfs was to attract other companies and developers interested in working on the project.  This has helped build a strong group of contributors, and we’re concentrating on stability and performance.

We have most of the features we need today for Btrfs to be usable, including the core of multi-device support, checksumming and snapshotting that are crucial because other Linux filesystems don’t provide them today.  After the 2.6.32 kernel release, I expect to have things in a state where we can start collecting early adopters for heavy
testing.

Amanda: Why did you start this project? Why is Oracle supporting this project so prominently?

Chris: I started Btrfs soon after joining Oracle.  I had a unique opportunity to take a detailed look at the features missing from Linux, and felt that Btrfs was the best way to solve them.

Linux is a very important platform for Oracle.  We use it heavily for our internal operations, and it has a broad customer base for us.  We want to keep Linux strong as a data center operating system, and innovating in storage is a natural way for Oracle to contribute.

Amanda: What are some of the key features/improvments of Btrfs over existing file systems today? What file system would you compare it to?

Chris: Btrfs integrates multi-device management at the filesystem level. The devices can be mixed in size and speed, giving the admin much more flexibility when managing large pools of storage.

The long term goal is to be able to choose allocation policies that match the data being stored to the underlying devices.

Because Btrfs maintains both data and metadata integrity checksums, it is able to detect bad copies of blocks and use the internal RAID code to pull up the correct data.

Btrfs supports snapshots that are writable and can be snapshotted again. The copy-on-write mechanism that backs the snapshotting code makes key features possible, such as transparent compression.  In future releases we plan to add online fsck, deduplication, encryption and other features that have been on admin wish lists for a long time.

Ext4 and XFS are the two filesystems we use most often for comparison. They both perform very well, so they are usually our performance target during benchmarking runs.

My favorite demonstration of Btrfs’ flexibility is the conversion tool from Ext3/4 to Btrfs.  The conversion tool places all of the Btrfs  metadata in the free space of the Ext filesystem, and adds Btrfs extent pointers to all of the file data blocks.

The conversion maintains the original Ext metadata as a snapshot, leaving the original filesystem unmodified.  Until the snapshot is deleted, the conversion can be undone, reverting things back to the original Ext filesystem.

Amanda: Here’s a fun question: how did you get started working with Linux? What’s the very first patch you had accepted?

Chris: My first Linux project was a friendly race with the Ext3 developers.  At the time, Linux didn’t yet have a journaled filesystem, and I was an admin looking at the features Linux was missing before it could be used in my own data center.  I ended up working on journaling code for ReiserFS, and was then able to switch to filesystem programming full time.

Back when ReiserFS was merged into mainline, I managed to corrupt Linus’ root filesystem (ext2 at the time) with a last minute patch.  So far I haven’t repeated that yet, but each new merge window gives me another try.

Amanda: There were some performance metrics reports recently on Btrfs that weren’t that glowing in comparison to XFS or Ext4. What’s your response?

Chris: Benchmarking is one of my favorite parts of development.  With the 2.6.31 merge window, we’ve fixed most of the performance bottlenecks that caused problems in those benchmark runs.  But, our goal isn’t to win every benchmark. Today’s filesystems perform very well, and usually when bad performance is found it gets tuned and fixed.

Btrfs is concentrating on features that can’t be implemented with Ext4 or XFS.  It is important that we perform well, but I don’t expect to be at the top of every benchmark result.

Amanda: Was Btrfs created to replace Ext3/4 or do you see users still using those file systems? What about XFS?

Chris: The goal is definitely to replace Ext3 and Ext4 as the default Linux filesystem.  I wouldn’t be surprised to find people holding on to the Ext series, it has a long history of stability, and not everyone needs the latest and greatest features.

XFS is likely to stay around just as long.  It has been heavily tuned and optimized for high scalability, and that kind of investment takes a long time to match.

Amanda: You are a member of the Linux Foundation’s Technical Advisory Board. Can you tell me about your participation in that group and what it means?

Chris: The TAB is an great way to connect the Linux Foundation with community. It gives a broader base of input into the issues the Linux Foundation is trying to solve, and more people are aware of the LF initiatives.

Amanda: Now that your employer Oracle is purchasing Sun, and with it Solaris’ ZFS file system, any plans to license under GPLv2 so developers could port it to Linux? If so, is Btrfs still as needed?

Chris: Sun has many interesting projects, and I’m looking forward to working with their R&D teams.  We’re committed to continuing Btrfs development, and ZFS doesn’t change our long term plans in that area.

Amanda: To clear this up, once and for all: is it pronounced BetterFS or ButterFS?

Chris: <Grin> Definitely both.

Popularity: 12% [?]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Slashdot

Since we launched the Linux Foundation, I’ve been amazed at the passion and willingness to help of Linux users worldwide. This out-pouring of support especially is evident when Linux seems threatened — by a lawsuit, attack by a company, or a combination of the two.  It’s clear that Linux users do not take Linux for granted. In the last six months, we have thought long and hard how to best harness this passion and provide an outlet for this support.

While we  have had an individual membership program since the launch of the Linux Foundation, it’s been somewhat limited in both its impact and the benefits it gives to users. Starting tomorrow that will change. We will announce an expanded individual membership program that will help us promote and protect Linux while delivering tangible advantages to those who wish to support the Linux community’s cause. Most notably, members will receive their own linux.com email address that will showcase to the world — and potential employers — their support for Linux.

Your support goes a long way in enhancing, promoting and protecting Linux for generations to come. But your membership also will connect you with the information, tools and events needed to advance your career and stay current with the platform. We realize altruism only goes so far, so the membership pays for itself with just the LinuxCon, training or O’Reilly discount below. (Your employer may even pay for your membership given the savings on events and training.)

Linux Foundation Benefits:

  • Your own Linux.com email address with forwarding service. Since this is a new service, new users will have a chance to grab a nice alias. (Well, amanda at linux dot com is taken already.)
  • A weekly Linux.com “Briefing Book” with news, technical tips, and analysis to keep you ahead of the curve.
  • 30% off of Linux Foundation LinuxCon 2009 standard registration fees.
  • 20% Discount on registration fees for Linux Foundation Training. This can save you (or your company) a lot of money.
  • A Free Linux Foundation T-shirt so we can showcase your OS of choice at your next company meeting (or at the grocery store, the beach, Presidential news conferences, the Super Bowl, etc.)

Partner Discounts:

  • 35% of O’Reilly Books and E-Books
  • 20% Off O’Reilly’s Open Source Convention (OSCON)
  • 35% of No Starch Press Publications
  • 15% off Subscription to Linux Journal
  • 15% off Neuros Technologies NeurosLink. The Neuros LINK allows you to watch internettv (Hulu, Youtube) as well as downloads on your TV using Linux.
  • 50% off Southern California Linux Expo (SCALE)
  • $10 off every $40 order on Thinkgeek (excluding shipping and taxes)

We hope this program is useful to you, and that you see supporting the promotional, education and protection programs of the Linux Foundation a worthwhile cause. From the legal defense fund, to Linux.com, to our fellows program (currently employing Linus Torvalds), we think these programs are enhancing and protecting Linux now and for future generations. We hope you agree.

To sign up as a member, please visit this page.

If you have feedback feel free to email me at amanda at linux dot com.

Popularity: 19% [?]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Slashdot

I am pleased to announce the launch of the new Linux.com, the fruition of many months of hard work from nearly everyone at the Linux Foundation, but especially Dan Lopez and Brian Proffitt. While I’m sure we still have much work to do, I think the site has turned out very well. I’m especially pleased with how we’ve worked with the community through our Ideaforge site to collaboratively develop ideas and content on the site. (Ideaforge users have had access to the site over the last few weeks in a private beta.)

Highlights of the site for me:

  • The Linux Guru Directory. We have a saying, “code is the new resume.” With the transparency of the Internet, those who participate and showcase their skills are best positioned for success. Users of Linux.com can gain Linux guru status for answering questions, reviewing products, submitting tutorials or much more. The top user every year receives a dream laptop signed by no other than Linus Torvalds. You can find out more here.
  • DistroCentral. Linux is strong because of choice, but sometimes the myriad of distributions can be confusing to users. To alleviate that we went directly to the source, the community managers and developers of the top Linux distributions: Debian, Fedora, OpenSuse and Ubuntu. You can read content directly from these experts as well as browse a directory of distributions (and applications for Linux.)
  • Linux Groups and User Directories. I’ve received quite a few requests over the years for a listing of Linux User Groups or other Linux groups that want to collaborate more easily. I think our new site fulfills this need. Users can form groups, add existing ones and showcase their meet ups and events for others to find them.  In future phases we’ll have this easily sortable by geography. There are already over 50 groups created since we launched the private beta.
  • Original Content. While we’re not a news site, we feature news and content from around the Internet, including content from our workgroups. But we also will feature original content such as
    • A case study on how the Gendarmerie have used Linux to cut costs
    • The Linux career guide for IT and developers and links to Linux Foundation training
    • A migration guide for Windows users interesting in moving to Linux
    • And check out the community blogs. Already some amazing content from the community.

I’d also like to thank our inaugural sponsors:  Intel, NetApp, Novell and Red Hat. It’s certainly no surprise to see those names associated with Linux but we truly appreciate their leadership in helping us make this site a reality. Most importantly, I’d like to hear from you: feedback, praise, complaints, bugs. You can reach me at amanda (at) linux dot com.

On second thought, you won’t get points for sending me an email, so you may prefer to comment on the site if you think you have what it takes to become the ultimate Linux guru.

Popularity: 24% [?]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Slashdot