Computerworld
Analysis: IBM's JFS for Linux
Joe Barr  06 October, 2000 12:01

Nick Petreley wrote last year that Linux needed three items to become more fault-tolerant, and thus better able to compete on high-end boxes in the enterprise. Those three things were a journaling filesystem, fault tolerance, and data clusters. Someone must have been listening; Linux now has four, count 'em, four journaling filesystems in the cooker. Those filesystems, and the pending 2.4 kernel's vastly improved scalability, won't give Nick everything he asked for, but will surely make Linux more attractive to users of high-end systems.

One company that listened to Nick must have been IBM, which, believe it or not, has become a major player in Linux and open source. IBM's initial Apache flirtation has blossomed into a virtual organization called the Linux Technology Center (LTC).

Under the LTC umbrella, IBM has become involved in many diverse projects, supported by teams positioned around the world. IBM is working on the logical volume manager (LVM), kernel performance and scalability, the OMNI project for open source print drivers, the IA-64 port, the PowerPC port, the S/390 port, the Linux Standard Base, and a journaling filesystem called JFS. You can learn more about each of those projects at the LTC page. This column deals with the port of JFS from AIX to Linux.

I know, the ReiserFS is much further along, and will almost certainly be the first journaling filesystem included in the 2.4 kernel. ext3 is coming along too, as is SGI's entry in the race, XFS. But JFS has an advantage: the hometown edge. LTC's JFS team is located right here in Austin, Texas. Steve Best, who leads the small team working on JFS, gave the Austin LUG an informal presentation on the port's status just a few weeks ago. I was there; Best said that the project, working on open source code and with the open source community, was the best job he had ever had.

Journaling filesystems defined

For those who aren't familiar with the ins and outs of journaling filesystems, here is the lowdown. The filesystem writes a journal that keeps track of where data has been written or removed. For example, as you receive a file you are FTPing, the file consumes more disk space as extents grow or new ones are added. An extent, by the way, is a group of contiguous blocks of data.

The journal keeps track of where the filesystem puts each extent. Then, if your system crashes, you can be back up and operational much more quickly with a journaling filesystem. Instead of having to remap the filesystem from scratch by relinking the data, a journaling filesystem can use the journal entries to do the job. For a busy e-commerce site, for example, there is a critical difference between an outage of less than a minute and an outage of an hour.

However, a journaling filesystem like JFS -- which does not journal data, only the metadata that allows it to quickly puzzle out what data belongs with what file -- can still lose data in the event of a crash. Fast recovery is more important than a guarantee that there will be no data lost. It can take hours, even days, for a large, busy site with a nonjournaling filesystem to restore service. With JFS, it only takes seconds or minutes.

There is a performance penalty involved in using a journaling filesystem, since the system writes more data when it keeps a diary. But a small penalty is definitely worthwhile the first time your system crashes and fsck runs. JFS has reduced that penalty by switching from synchronous logging to asynchronous. With synchronous logging, journaling occurs in direct proportion with any qualifying filesystem action. Using asynchronous logging, journaling happens less and can take place when it won't interfere with other filesystem operations, thus reducing the journaling overhead.

IBM's JFS

At the LUG meeting, Best explained that JFS journals in the classic database-transaction model. For those of you who don't have a database or fault-tolerant background, and who are interested in exploring the subject, I recommend an article by Juan I. Santos Florido in Linux Gazette.

Best also listed some items still being developed for JFS: support for character devices in the JFS fsck utility, case-sensitive filename support, Endian support for non-Intel platforms, and completion of the logging capabilities.

Best is tight-lipped about when IBM may complete the Linux port, but he did say that the company is "working with the community and the distributors to potentially have JFS included in the [2.4] kernel." When I asked him how the port will compare with JFS on AIX, he replied, "The JFS team's goal is to have a competitive high performance enterprise filesystem on Linux."

You can download and use JFS today, but it is not yet complete and should probably be used only for evaluation. Still, that's good progress for a project announced earlier this year. The latest drop (12) came out on Sept. 15. The JFS patch and tar files support three levels of the kernel: 2.2.14, 2.2.16, and 2.4.0-test7. Actually, a patch for a later test version of 2.4 may be ready by the time this column appears. Check the JFS page to be sure.

Computerworld Buyer's Guide - Vendors Matched to this Article
More about SGI, Logical, Santos, IBM, Apache, Intel, INS

Comments

Post new comment

Login or register to link comments to your user profile, or you may also post a comment without being logged in.
The content of this field is kept private and will not be shown publicly.
Add to Google
Computerworld Buyer's Guide - Vendors Matched to this Article
Zones
Zone logoZones provide focussed content from Computerworld and leading technology partners.
Newsletter Subscription
Newsletter Subscription
Sign up for our Computerworld newsletters!
Syndicate content
 

Computerworld Webinar

Thursday, June 11th, 2009
10:30am EST (Sydney, Australia)
Screening at your PC

Computerworld is hosting a 30 minute live webinar to help you to learn how unified communications can save you money, foster innovation and business agility by making it easier for people to find, reach and collaborate with one another.

Register Now

Computerworld Community Comments
Whitepaper

Understanding Email Marketing: A Guide for SMBs

Email marketing is often viewed as a marketers silver bullet. If used effectively, email campaigns will provide strong results for a limited spend each and every time. Download this white paper to discover how email marketing can work for you and your business.

Enterprise IT Buyer's Guide
Find Technology Vendors Fast
 
Find vendors by name | Find by category
Sponsored Links
 
Send Us E-mail | Privacy Policy
Features List | Media Kit | Advertising | Contact Us

Copyright 2009 IDG Communications. ABN 14 001 592 650. All rights reserved.
Reproduction in whole or in part in any form or medium without express written permission of IDG Communications is prohibited.