20

Which is Better, Original DVD or Pirate MP4?

For a long time it has been obvious that in all cases anti-piracy technologies discourage purchases and in many cases encourage piracy. I first discovered the significance of this in about 1991 when I attended a public lecture by a senior employee of Borland and a member of the audience claimed that the Borland product he bought didn’t function correctly due to anti-piracy measures. The Borland employee firmly stated that Borland did not use anti-copying technology on any of it’s products, didn’t have any plans to do so, and the problem in question must have been caused by something else. Of all the hostile questions that were asked, this was the only one that caused the speaker to appear agitated so it was obviously an issue that was considered to be important within Borland.

In the late 80’s anti-piracy measures were mostly based around creating floppy disks that couldn’t be easily copied (violations of various aspects of the disk formatting standards). This meant that you couldn’t make a backup copy of the data, so it wasn’t uncommon for people to seek pirate copies of their commercial software for daily use to avoid wearing out their valuable original floppy disks. Then the dongle was invented and people who bought software sometimes sought pirate copies so that they could use their printer and their commercial software without having to change plugs on their PC. But in those cases the benefits to uncrippled software to the users were small.

Now a large part of the battle on copy protection concerns DVDs. If you had a DVD of a recent movie and an MP4 which would you rather watch? Would you prefer to be forced to watch some anti-piracy rubbish for a couple of minutes at the start of the movie (with fast-forward disabled) or would you prefer to just start watching it? Would you prefer to be able to pre-program the sections of the movie that you watch (as some parents desire to skip the sex and/or violence in movies for their teenagers) or would you prefer to be forced to watch the movie straight-through with only a manual fast-forward to skip sections? Would you prefer to have a DVD that can’t be played properly on many (most?) computers because of the CSS encoding or an MP4 that plays on everything from PCs to mobile phones without an issue? Would you rather have 100 movies in the spare space on your laptop hard drive when you travel and 1000 movies on your desktop system or the much smaller number of boxed DVDs that you can store? I think that in most cases a pirate MP4 will give a better experience than a DVD.

So the question is, why pay for a DVD when in most cases you get a lesser experience than you will get from a MP4 file downloaded by bittorrent?

One reason for buying the DVD is to support the film industry. But I doubt that such a profitable industry will get much sympathy in today’s economy. Another reason is the morality, some people consider piracy to be theft (it isn’t – by definition theft requires that for at least a moment the property be completely in the possession of the thief) and therefore avoid it.

One technical reason for buying a DVD is the fact that it may have multiple languages supported, it will have subtitles, it may have an audio track with the creators giving a commentary, and it may have extra scenes that were cut from the main release. I believe that work on adding subtitles to the video file formats is a work in progress, so it’s only a matter of time before the DVD rips include all this extra data.

Really the content creators should focus on making a product that meets the needs of users and that they want to pay for. Pirating books is technically possible, but almost no-one does it. Some successful authors such as Charles Stross freely publish significant parts of their work and Cory Doctorow freely publishes all his work in electronic form. Books just work well, they meet the needs of users and people want to buy them. Sure they can sell them second hand, lend them to other people, and it’s technically possible to pirate them, but they remain profitable. On my documents blog I have a page of links to free short stories that I liked [1] and a page of links to free books [2]. It seems to me that creators of other copyright content should consider how they can be of service to their customers.

We are all familiar with corporations and misguided individuals who get whiny about the supposed losses due to piracy. Bruce Everiss has unfortunately joined this trend and demanded the disconnection of Internet users based on unproven accusations of game piracy [3]. I don’t know whether the game buying experience sucks as badly as the DVD buying experience, but based on the reports of locked-down consoles that have to be cracked before they run Linux I expect that the modern game industry is doing at least as badly as the movie industry. They need to provide things that users want!

One thing to note is that a Windows or console game player who uses pirate games will probably buy some games at some future time, while someone like me who uses free software both by principle and because it gives a better user experience will probably never pay for a game (I haven’t got time to play all the free games so I probably wouldn’t even buy a Linux game).

12

An Interesting new “Auction” Site

BidRivals.com is an interesting new auction site, their business model is that you buy “bids” for $0.80 each. If you want to bid on an item it costs you $0.80, then if you win the auction you pay for it. Every bid increases the price by 2 cents. So if you see an auction with a current price of $2.00 that apparently means 100 bids have been placed – IE $80 have been spent.

Currently a Canon EOS 50D Digital SLR camera + a lens is on auction, it has a “buy it now” price of $2,499 (the same price that Harvey Norman advertises) and the bidding is at $163 and climbing – so the auction site has apparently made almost $6,500 in revenue and the product has not been sold yet! The auction also has no fixed end time, it seems that about 10 or 15 seconds are added to the clock every time someone bids, and the autobidder will kick in when 4 seconds remain. So there will probably be an autobid every 6-11 seconds – somewhere between 300 and 600 bids per hour at a cost of $0.80 each – every item that is running with autobids will generate something between $240 and $480 in revenue without being sold!

Now if you don’t win the auction (or give up trying to win) then you can buy it for the difference between the cost of your bids and the product price. In the case of the camera in question if you had made 500 bids (which would be quite easy with the autobid feature) then that would be $400 worth of bids, and given a choice between losing that $400 and using it as a down-payment on the regular retail price I think that most people would choose to buy the product. Of course if you buy it from Harvey Norman you save the delivery fee and probably get more options if you want to return it – I’ve never had to return something to Harvey Norman but I’m assuming that it would be a lot easier than returning an item to an online store!

I don’t consider this to be a real auction site. I believe that a real auction has genuine bids of a value that is determined by the bidder, the auctioneer (or auction software) may decline bids that are too low in value or which have too small an increment. Bidding in an auction generally costs the bidder nothing – the only exception I’ve personally seen is auctions which have a printed catalogue in which case you pay for the catelogue, a fixed fee which is small when compared to the auction prices. It seems to me that a significant portion of the revenue (possibly the majority of the revenue) of BidRivals is from the bidding fees, and the other significant portion of the revenue would be comprised of profits made from auction customers who opt to buy the item at it’s list price to avoid wasting the money that they have put in to bids. The actual prices of the items are small by comparison.

Note that I am not accusing BidRivals of doing anything illegal (such as running a gambling system), I am merely stating that I don’t believe that they offer a good deal for customers. While they aren’t strictly a gambling site, it seems that one could get lucky and make a single bid (costing $0.80) at the right time and get a $2,499 camera for $170 (or whatever it ends up selling for) while others may spend hundreds of dollars in bids and get nothing other than a potential down-payment on the full $2,499 price. That’s a lot more luck than I want in any of my purchases!

I recommend not doing business with them or anyone like them.

Ext4 and RHEL5/CentOS5

I have just noticed that Red Hat added Ext4 support to RHEL-5 in kernel 2.6.18-110.el5. They also added a new package named e4fsprogs (a break from the e2fsprogs name that has been used for so long). Hopefully they will use a single package for utilities for Ext2/3/4 filesystems in RHEL-6 and not continue this package split. Using commands such as e4fsck and tune4fs is a minor inconvenience.

Converting a RHEL 5 or CentOS 5 system to Ext4 merely requires running the command “tune4fs -O flex_bg,uninit_bg /dev/WHATEVER” to enable Ext4 on the devices, editing /etc/fstab to change the filesystem type to ext4, running a command such as “mkinitrd -f /boot/initrd-2.6.18-164.9.1.el5xen.img 2.6.18-164.9.1.el5xen” to generate a new initrd with Ext4 support (which must be done after editing /etc/fstab), and then rebooting.

When the system is booted it will run fsck on the filesystems automatically – but not display progress reports which is rather disconcerting. The system will display “/ contains a file system with errors, check forced.” and apparently hang for a large amount of time. This is however slightly better than the situation on Debian/Unstable where upgrading to Ext4 results in an fsck error on boot which forces you to login in single user mode to run fsck [1] – which would be unpleasant if you don’t have convenient console access. Hopefully this will be fixed before Squeeze is released.

I now have a couple of my CentOS 5 DomUs running with Ext4, it seems to work well.

4

I Bought the Bose QC-15

I bought the Bose QC15 noise canceling headphones for my trip back from the US. See my previous posts about Noise Canceling Headphones [1] and Testing Noise Canceling Headphones [2] for the details of my search.

Me wearing QC 15 headphones

I first tried my new headphones in my hotel room and they worked really well at blocking the noise from the nearby road (El Camino Real in Menlo Park) as well as the noise from the heater in my room. At the airport they entirely blocked the sound of the airport air conditioning system (which was surprisingly loud – I didn’t realise how loud until I tried the headphones).

On the flight the headphones worked really well. I used them for hours when they weren’t plugged in to any source, just stopping the noise was a huge benefit. I was also able to listen to music (both MP3s on my laptop and the plane sound system) at a relatively low volume with an apparent high quality. The Bose store I visited in Stanford mall has a sound system set up to emulate the noise you experience inside a jet to demonstrate what the headset can do. It really lives up to this demonstration! I recommend them to anyone who wants over-ear noise canceling headphones and can afford $US300 + tax.

But one thing to note is that not everyone likes such things – my wife didn’t like the sound that they generate (the least bad way to describe it is as a soft hiss). This is definitely not something you would want to buy based on reviews alone, it must be tested in-store.

The main technical suggestion I can make for improvement to the QC-15 is for it to have slightly softer and thicker padding where it contacts the sides of the wearer’s head. I find that my glasses prevent it from making as good contact as I would like, and that when wearing it while eating the contact is significantly broken with every jaw movement which is really annoying. A minor suggestion is that every pair of headphones should have the left and right ear pieces clearly marked, I really shouldn’t have to read an instruction manual to discover which way to wear it.

One thing that surprised me was the inclusion of business cards for the headset! Here is a picture:
Bose business card
The picture links to a larger picture that also shows the French version of the same text on the other side.

I was astonished by this, encouraging happy customers to help sell your products is a reasonable and effective form of product promotion (really this is what I’m doing for Bose with this blog post). But giving customers business cards is going too far – anyone who wants me to hand out their business cards can offer to pay me to do so (and I probably won’t accept). But if such things are considered to be a good idea then here are a few suggestions for other things that they could do:

  1. Create a Bose dating site where one can meet people who like music and traveling (this does sound appealing). In about 10 years the children of people who meet that way would start buying audio gear…
  2. Start a Bose fan club.
  3. Create a template that be used by a tattoo parlor to make a Bose tattoo.
  4. Sell Bose fan t-shirts to people who aren’t dedicated enough to get a tattoo.
  5. Register Bose as a religion, that gets tax free status among other benefits.

It’s a pity that Bose doesn’t make any water-proof noise canceling headphones. It would be something for their marketing people to wear while jumping over a shark on water skis [3].

But seriously the best thing that Bose could do to have their products promoted would be to start by printing the web site for each product on the item, my headset has two patent numbers listed which seem unlikely to provide any benefit for anyone, in that space they could have printed the global.bose.com/qc URL that is on the business card. Of course providing the URL really doesn’t do any good when the URL actually is useless. It starts by giving me a page asking which country I am in – the correct thing to do is to use geoip to determine the country and then give the user the option of selecting another country if that one is not ideal. Then after I select a country it doesn’t take me to a specific page for the product! I could have typed in www.bose.com and got the same result (in terms of US shopping at least) while typing six fewer characters!

Next like most corporate web sites the Bose site doesn’t appear to be configured for longevity of URLs – URLs which are clearly designed for the computer rather than humans are expected to change without warning. This discourages linking to any page that one might discover through web searches or navigating the site, and causes them to lose a lot of potential links.

Having specific URLs for all the products (including the obsolete ones) that are designed firstly for humans to read and write would be a good idea. It would be really useful to be able to compare the features of new products with the ones that are going cheap on eBay. For someone who is considering buying a new product now the purchase decision would be easier if they knew that the company would provide resources to help them get a better price on eBay in a few years if they want to upgrade to a newer model. One thing to keep in mind is the fact that the reputation of a company (which makes a dramatic impact on the prices customers are prepared to pay) depends largely on a long history of making quality products. Telling customers about those historic products is one of the most sensible things that most corporations fail to do on the Internet.

5

Shared Objects and Big Applications

Some time ago I wrote a little utility named memlockd [1]. Memlockd will lock files into memory which allows significantly faster access when the system pages heavily, in my simulated tests I have found that having the programs and shared objects needed for logging in locked in memory can make it possible to login without a timeout when there is heavy paging, this can make the difference between recovering a system with some processes that are out of control and having to reboot it (often without discovering the root cause).

As always happens some people use my software in ways that I never planned. One guy is using it to try and make OpenOffice.org load faster. I’m not sure that this is a good idea. In a typical installation when configured for the purpose that I intended it (system recovery from a rabbit process) memlockd will take a bit less than 10M of RAM on an i386 platform (that is for bash, login, sshd, getty, busybox, and all necessary shared objects and a few data files. Since RHEL 4 Red Hat distributions have whinged at boot time if there was less than 256M of RAM available, installation of a Red Hat based system on anything less than 128M of RAM has been impossible for some years, and Debian systems perform very poorly with less than about 128M of RAM when you run apt-get. I initially designed memlockd to run on my SE Linux Play Machine which has 128M of RAM in it’s current incarnation. Locking 7.5% of RAM on the system may impact performance, but as a large part of that RAM is used for things like libc and bash which tend to be partially paged in at all times this shouldn’t be a noticeable impact. But locking 100M or more of OpenOffice seems more likely to have the potential to hurt performance, I often run OpenOffice on a machine with 512M of RAM and the biggest desktop machine I use has 1.5G of RAM – for me it wouldn’t make sense to lock OpenOffice into memory.

But it could be that there is some unusual aspect of his system that makes running memlockd with OpenOffice likely to give worthy benefits in performance without significantly hurting performance for other programs, for example it could have 4G of RAM and a really slow disk. It is also a possibility that the usage of the system makes OpenOffice so much more important than other programs that any decrease in performance in other areas is not relevant. In any case I’m happy to help people use my software to do unusual things so I’ll support this use.

I’ve been asked why memlockd doesn’t seem to give much benefit when starting up OpenOffice when run with “+/opt/openoffice.org3/program/soffice.bin” in the config file, where the + means to lock all shared objects that ldd reports that the binary needs.

for n in `ldd /usr/lib/openoffice/program/soffice.bin|sed -e s/^.*=..// -e s/\ .*// | sort -u` ; do readlink -f $n ; done | sort -u > ldd.txt

I used the above command to get a list of all shared objects that ldd reports for the soffice.bin program. On my system (Debian/Lenny i386) it reports 77 shared objects loaded. When memlockd locks all those ps reports that the RSS is 51944K.

cat /proc/1234/maps|sed -e s/^.*\ //|sort -u > /tmp/map.txt

Then I used the above command to get a list of the files that are memory mapped by OpenOffice when running OpenOffice calc where 1234 is the PID of the soffice.bin process (I expect that the numbers will be similar for writer, impress, etc – I just happened to have a spreadsheet open). It reports 172 memory mapped files which include 9 files related to fonts and 64 shared objects under /usr/lib/openoffice/program which are not found by ldd among other things. It’s quite common for a large application to use dlopen(3) at run-time to map shared objects instead of linking against them. Running memlockd with this list gave an RSS of 118644K, which is more likely to give a useful performance boost to OpenOffice load times.

1

Nagios and SSL in Debian

I was doing some work on NRPE (the Nagios Remote Plugin Executor) and I noticed bug report #547092 [1] which concerns the fact that the default configuration uses the same SSL certificate for all Debian servers and provides a patch to fix the problem. After building the patched package I followed the advice of the DebianAdministration.org article on creating self-signed SSL certificates [2].

cert_file=/etc/ssl/certs/FOO-cert.pem
privatekey_file=/etc/ssl/private/FOO-key.pem
cacert_file=/etc/ssl/certs/cacert.pem

Then I added the above lines to /etc/nagios/nrpe.cfg to instruct the nrpe to use the certificates.

For the Nagios server I had the problem that most of the systems I monitor run old versions of NRPE while only a few are recent Debian systems that allow me to easily install a new SSL checking nrpe. So I installed the following script as /usr/lib/nagios/plugins/check_nrpe to run either the old or the new check_nrpe:

#!/bin/sh -e
if echo $2 | egrep -q server0\|server2\|mail ; then
  /usr/local/sbin/check_nrpe -C /etc/cert/cert.pem -k /etc/cert/key.pem -r /etc/cert/cacert.pem $*
else
  /usr/lib/nagios/plugins/check_nrpe.orig $*
fi

The reason I started working on Nagios was to try and solve bug #560002 [3] which I filed. The bug concerns the fact that applications such as mailq which are run as part of Nagios checks were inheriting a TCP socket file handle from the nrpe. SE Linux prevents such file handles from being inherited, but it does mean that I get audit messages (and this is not a good case for a dontaudit rule).

Update:
One thing I forgot to mention is that the SSL key checking requires that the server common name used in the SSL certificate of the nrpe system matches the name that is used by the check_nrpe program. So if you check by IP address then you need to use the IP address in the certificate name – which is rather ugly. So I have moved to putting the hostname of each server in /etc/hosts on the NAGIOS system and using the hostname in the SSL certificate. This required using $HOSTNAME$ instead of $HOSTADDRESS$ in the NAGIOS configuration (thanks to John Slee for a tip in that regard).

Update2:
I removed some printf debugging from the script. It seems that I included a pre-production version of the script in the first version of this blog post.

1

US Border Security

Making Light has a post about the Canadian sci-fi author Peter Watts who was beaten and jailed overnight without access to a lawyer by US border guards because he asked what they were doing [1]. Apparently one is supposed to cringe in fear whenever questioned by authority in the US, so much for “land of the free“.

In 12 hours time I will hopefully have got past the security police and be boarding a flight out of the US and it will be a great relief.

On a practical note, if al Quaeda was a serious threat, if anyone really cared to stop the importation of drugs, of if any of the other reasons for having security on borders were taken seriously then this sort of thing really wouldn’t help to achieve such goals.

One of the purposes of a justice system is to encourage cooperation from the population. If a suspect will be treated fairly and considered to be innocent until proven guilty then there is no reason not to report suspicious people to the police. If however a suspect will be summarily beaten and denied access to a lawyer then no decent person can make a police report unless they are certain of the suspect’s guilt beyond all reasonable doubt.

When Barack Obama was elected the majority of the world’s population was greatly relieved, we expected some significant changes in the way things are run. It doesn’t seem that he is living up to our expectations.

7

Testing Noise Canceling Headphones

This evening I tested some Noise Canceling Headphones (as described in my previous post [1]).

I first tried the ones on sale at Brookstone [2], they were the on the ear type so there was never a chance that I would buy them but they seemed like good ones to test. I wore them for about 10 minutes while I walked around the store looking at all the electronic stuff that’s on sale. I noticed that they were much more effective at filtering low frequencies and regular sounds. So for the Christmas music that was playing the music was mostly filtered just leaving the sound of the singing. Also I was able to talk to the guy who worked there and hear him clearly when the noise canceling was turned on – this can be considered a bug or a feature depending on your planned use. When I listened to electric fans the sound of the buffeting air was filtered just leaving the high pitched bearing noise.

It is well documented that there is a hissing sound from noise canceling headphones and sometimes a feeling of pressure. I didn’t hear any hissing but it did feel a little different when I turned on the noise canceling. After 10 minutes I didn’t feel in any way uncomfortable, so I could probably survive an entire flight while wearing such headphones. I can highly recommend the customer service at the Brookstone store in Menlo Park. The guy who was working there was totally helpful, even by US standards his customer service was really good. Sometimes when you make an unusual request (such was wanting to try the merchandise for an extended period of time) the staff aren’t particularly enthusiastic, but I had no problems at Brookstone!

After Brookstone I went to a Bose store and tried the Quiet Comfort 15 noise canceling headphones [3]. The Bose store conveniently had a device configured to emulate the sound of a jet engine to demonstrate how the QC15 stopped that. I was quite impressed with that. I did feel that the QC15 was a little light for my taste, I would rather have something bigger and heavier with thicker padding to improve the passive resistance to sound. But I expect that many people would like it to be small and light as it’s designed for travel.

I visited a Sony store a couple of times, but no-one seemed able to serve me. I’ll go there again some time when they are less busy.

Finally I have to note that I have received a significant number of comments suggesting ear-bud type devices. I suggest that anyone who doesn’t mind wearing such things should consider ear-bud type devices. But as I can’t stand such things I will continue my search for over-ear headphones. I may end up just buying the Bose QC15, they seem to be good enough and not really expensive.

12

Noise Canceling Headphones

My patience with the noise of airlines has run out, on my trip from AU to US I didn’t get any sleep due to the cramped seat and the noise of the plane. While I can’t do anything about the cramped seat without spending a lot of money it seems that I can do something about the noise with moderate expense.

I’ve been researching Noise Canceling Headphones [1]. The principle of such devices is that they have a microphone on the outside and a speaker on the inside to generate sound that is 180 degrees out of phase which will then almost cancel out the ambient noise. Apparently such devices are very effective for low frequencies but less effective for high frequencies. High frequencies are more easily blocked by sound insulation, so the ideal seems to be “around the ear” headphones with lots of padding to passively stop noise with active noise canceling to deal with the lower frequencies.

So I’m now planning on buying a set of headphones before I leave the US.

Choice Magazine (an Australian independent product review organisation) published a review of noise canceling headphones in 2007, it has some interesting information but is not suitable for buying advice today [2]. Choice gave the best results to the Jabra C820s which had just gone out of production when they published the review and by now could only be bought on eBay. The Jabra had an active cancellation of 14.3dB and a passive cancellation of 8.3dB. The best active cancellation of all the reviewed products was 19.5dB for the Bose QuietComfort 3 – which incidentally only had a passive cancellation of 4.8dB. Both the Bose and Jabra products got good reviews in a mailing list discussion. It’s a pity that Jabra is now only manufacturing products for call centers.

I am not considering the headphones that go on top of the ears, they will inherently give less passive protection due to the design and they will annoy me. I am also not considering the ear-buds because I don’t like putting things in my ears. I will note that there are some very positive reviews of some of the ear-bud devices. The Etymotic Research devices get very good reviews and are apparently on sale at reasonable prices in Apple stores (among other places) [3]. Anyone who wants noise-canceling headphones and disagrees with me about the desirability of ear-bud type devices should probably consider them.

The Bose QuietComfort 15 is selling for $300 (NB for this post all prices will be in US dollars) [4]. It has microphones both inside and outside the ear cup to allow better detection of ambient sound. A single AAA battery is supposed to last 35 hours, it has a detachable audio cable (for use in just blocking noise), and comes with an airline adapter (for the two-port airline sockets). It does require being turned on to listen to audio, some headphones allow you to turn off the noise canceling feature to listen to music without a battery – this doesn’t matter for my planned use. They have a volume switch (low and high settings) to cope with airlines that set the volume too high. They are specifically designed for passengers in commercial jet aircraft. Surprisingly the Bose web site doesn’t mention the number of dB of audio protection and none of the reviews I have read have mentioned it either.

The store Brookstone was recommended, they have some unbranded noise canceling headphones, but as they are on the ear and more expensive than comparable Sony products ($130 vs $100) I eliminated them quickly.

Sony has a good range of noise-canceling headphones [5]. They have ear-buds starting at $90 and on-ear headphones for as little as $50. They have two models of over the ear headphones that are advertised at $200 and $400. The MDR-NC60 costs $200 and reduces noise by 12dB at 200Hz while the MDR-NC500D costs $400 and reduces noise by 20dB at 160Hz. I don’t know why they didn’t measure both headphones at the same frequency or give any information on passive sound insulation. They state that the MDR-NC500D was voted as being better than the Bose QC2 and QC3 but made no such claim about the MDR-NC60 – presumably the older Bose devices were rated as better than the MDR-NC60, and I have to wonder about how the Bose QC15 would compare to the MDR-NC500D. The MDR-NC500D has an internal Lithium-Ion battery that lasts 16 hours and can take a pair of AA batteries as well for a total of 28 hours.

The Sennheiser PXC 350 claims up to 32dB of passive attenuation and up to 18dB of active noise compensation [6]. Their claims about NoiseGuard (TM) cause me to lack confidence in their products. The PXC 350 is advertised at $330 and the reviews that I have read suggest that the Bose might be a better product. Sennheiser also has PXC 450 which offers 23dB of active noise compensation and costs $450. I am not going to pay $450 for headphones.

It seems that the choice for over the ear noise canceling headphones comes down to the Sony MDR-NC60 at $200 and the Bose QuietComfort 15 at $300. I have the impression that the Bose product is better, but whether it is $100 better is the question. Also while I haven’t forgiven Sony for Rootkitting their customers [7], this is not going to prevent me from buying the headphones that best suit my needs.

Does anyone have any suggestions? Did I miss a good brand that I should be considering? Does Sennheiser have some redeeming features that I missed?

7

The Transition to Ext4

I’ve been investigating the Ext4 filesystem [1].

The main factor that is driving me to Ext4 at the moment is fsck times. I have some systems running Ext3 on large filesystems which I need to extend. In most cases Ext3 filesystems have large numbers of Inodes free because the relationship between the number of Inodes and the filesystem size is set when it is created, enlarging the filesystem increases the number of Inodes and apart from backup/format/restore there is no way of changing this. Some of the filesystems I manage can’t be converted because the backup/restore time would involve an unreasonable amount of downtime.

Page 11 of the OLS paper by Avantika Mathur et al [2] has a graph of the relationship between the number of Inodes and fsck time.

Ext4 also has a number of other features to improve performance, including changes to journaling and block allocation.

Now my most important systems are all virtualised. I am using Debian/Lenny and RHEL5 for the Dom0s. Red Hat might back-port Ext4 to the RHEL5 kernel, but there will probably never be a supported kernel for Debian/Lenny with Ext4 and Xen Dom0 support (there may never be a kernel for any Debian release with such support).

So this means that in a few months time I will be running some DomUs which have filesystems that can’t be mounted in the Dom0. This isn’t a problem when everything works well. But when things go wrong it’s really convenient to be able to amount a filesystem in the Dom0 to fix things, this option will disappear for some of my systems, so if virtual machine A has a problem then I will have to mount it’s filesystems with virtual machine B to fix it. Of course this is a strong incentive to use multiple block devices for the virtual machine so that a small root filesystem can be run with Ext3 and the rest can be Ext4.

At the moment only Debian/Unstable and Fedora have support for Ext4 so this isn’t a real issue. But Debian/Squeeze will release with Ext4 support and I expect that RHEL6 will also have it. When those releases happen I will be upgrading my virtual machines and will have these support issues.

It’s a pity that Red Hat never supported XFS, I could have solved some of these problems years ago if XFS was available.

Now for non-virtual machines one factor to consider is that the legacy version of GRUB doesn’t support Ext4, I discovered this after I used tune2fs to convert all filesystems on my EeePC to Ext4. I think I could have undone that tune2fs option but instead decided to upgrade to the new version of GRUB and copy the kernel and initramfs to a USB device in case it didn’t boot. It turns out that the new version of GRUB seems to work well for booting from Ext4.

One thing that is not explicitly mentioned in the howto is that the fsck pass needed to convert to Ext4 will not be done automatically by most distributions. So when I converted my EeePC I had to use sulogin to manually fsck the filesystems. This isn’t a problem with a laptop, but could be a problem with a co-located server system.

For the long term BTRFS may be a better option, I plan to test it on /home on my EeePC. But I will give Ext4 some more testing first. In any case the Ext3 filesystems on big servers are not going to go away in a hurry.