Ubuntu 10.04 filesystems and boot times

I haven’t really mentioned it much, but the few times in the past month that I’ve used Ubuntu 10.04 have been rather disappointing. I haven’t dared install it on anything except this machine, and in most cases that’s been only borderline acceptable.

Disk access seems to be one of the biggest problems for me. The time it takes to start up, load programs, update software and make file transfers is exceptionally bad, on a machine I consider to be extremely fast. In fact, most times I get a more responsive desktop when using the live system over USB2.0, as opposed to a native install.

In situations like that, I usually blame the filesystem. Ubuntu uses ext4 by default, which has the reputation of being rather fast; I use ext2 by default, which I believe to be a better solution for low-, low-end hardware. On a fast machine it should be even speedier.

(Yes, I know, ext2 means no journalling, which means I might lose data if something goes wrong. I know. Everybody has their favorite filesystem, and everybody lost data to the other ones. Spare us the war stories. :evil: )

Here’s a look at boot times, which can be measured precisely, and suggest how well the system is handling disk access … or at least, the effect the filesystem might be having on system performance.


ext2

ext3

ext4

reiserfs

jfs

xfs

In many ways, there’s not much here that will shock and awe. ext2 is the fastest by a hair, with ext3 and 4 in close quarters, and reiserfs doing well too. jfs is far back there in last place, and xfs … well, xfs is xfs.

I also gave each installation the benefit of the doubt, allowing it to boot twice or even three times before claiming a bootchart, in case there were first-run tasks to be written. Each system was fully updated, but there were no tweaks added — not even the classic noatime adjustment.

Take away from this what you will; for me, it told me that the filesystem wasn’t the source of my problems, and that I didn’t need to micromanage the installation to find the source of my disk woes. I will be sticking with ext2 in spite of all the fear and loathing that early filesystems attract. But I’ll probably be sticking with Arch Linux too. :twisted:

P.S.: Yes, yes, btfrs, blah, blah, blah. :roll:

About these ads

20 Responses to “Ubuntu 10.04 filesystems and boot times”


  1. 1 Cian 2010/05/20 at 11:39 PM

    ext4 with journalling switched off is supposed to be faster than ext2

  2. 2 Anthony 2010/05/20 at 11:45 PM

    i thought journaling was the whole point of ext4 ? :)
    and don’t you mean “stickin with ext4 , rather than 2, since that’s not very knew is it :) or since the link, mebe 3 lol

    2 is old, 3 aint that new, 4 is the new kid on the block.

    how about pushing the boat out and getting ZFS on that .

  3. 3 Dennis Decker Jensen 2010/05/21 at 12:41 AM

    Why do you think ext2 is less safe than ext3 or ext4? As far as I know, the primary reason, why one is using ext3 or ext4, is that it saves boot time of the fsck that ext2 needs occasionally. Ext2 isn’t any less safe than ext3, which is exactly ext2 with added journaling. Ext4 may have added some features improving the safety over ext2. I don’t know.

    • 4 Nugnuts 2010/05/21 at 4:52 AM

      Ext2 isn’t any less safe than ext3, which is exactly ext2 with added journaling.

      The added journaling is exactly what makes ext3 safer. The journaling makes corruption less likely.

  4. 5 scott 2010/05/21 at 5:19 AM

    my ubuntu 10.04 test was rather slow as well on this old laptop. Slow at everything, its slower then its previous versions. I recently had arch linux with openbox on it so that may be why it seems slower to me haha.

  5. 6 Nugnuts 2010/05/21 at 5:44 AM

    A more responsive desktop from a live system rather than a native install? Sounds like something is wrong, even if the boot charts don’t reveal any specific issues. Have you seen similar problematic behavior with other distros on the same machine since you’ve seen this happening with Ubuntu 10.04? Any indication of disk problems? Is DMA not being turned on for some reason or some such?

  6. 7 peterix 2010/05/21 at 6:02 AM

    No matter the filesystem, all the current kernels are absolutely and completely broken (whole range between 2.6.18 – 2.6.33). They have bad, bad problems with USB transfers and general IO lockups (I can’t use the term IOwait for something that makes my machine unresponsive for half a minute with a damn Intel SSD installed). Overuse of disk cache while migrating application binaries to the swap seems to be the most common problem. Hell, I have this problem with 8GB of RAM installed.

    Yes. the kernel is broken. It’s been that way for while now. By some sheer luck or rather /misfortune/, not enough people are screaming bloody murder yet. AFAIK, if you run RAID or LVM, it doesn’t seem to be that bad… maybe that’s the reason.

    • 8 Nugnuts 2010/05/21 at 6:23 AM

      FWIW, I’m not using RAID, LVM, nor an SSD drive and have had no performance problems with any of the latest kernels.

  7. 10 Steve 2010/05/21 at 11:18 AM

    Ubuntu is the red headed step-child of Debian…and Arch, well…http://www.phoronix.com/scan.php?page=article&item=ubuntu_arch_faster&num=1

    The fact that people persist with Ubuntu even after it continues to disappoint is beyond me.

  8. 11 John Bohlke 2010/05/21 at 4:59 PM

    I know that I have seen a lot of issues with io choking when I am using Gnome and KDE4. If I switch to other windows managers, xfce, openbox, etc, the problem is mitigated. So I think it isn’t the kernel, it is problem something in the virtual file systems that Gnome and KDE4 are using. Just a possibility.

  9. 12 Luca 2010/05/21 at 11:12 PM

    Erm… I may just be being dumb, but ext4 took 33.31 secs to boot and ext2 took 33.48. That means ext4 is faster, contrary to what you said in your post. Right? :P

    It is entirely possible that USB will be faster than a laptop HDD, mainly due to random access being faster. The actual transfer speeds between the two are usually about the same as well.

    Have a look at these two articles from 2008. The flash drive tops out reads of 28Mb/s, and the average of the slowest (of the high-end range at that time – thats a mouthful) is 37Mb/s. However the real key at bootup is random access, hence the flash drive wins.

    http://www.tomshardware.com/reviews/usb-hard-drive,2015.html
    http://www.tomshardware.com/reviews/notebook-hard-drive,2006.html

    One thing you might want to do is to upgrade to a newer, faster, HDD. I upgraded to a 7200rpm drive, and the speed increase is definitely noticeable, fortunately the affect on battery life and noise isn’t :)

  10. 13 Pogeymanz 2010/05/24 at 2:56 AM

    These issues don’t test filesystem speed or responsiveness or IO speed. Bootcharts are confounded by the mount-time required for certain filesystems. If I remember correctly, it is known that JFS takes a long time to mount, but that doesn’t mean it’s necessarily a slow filesystem.

  11. 14 Matt 2010/06/06 at 11:10 PM

    Ubuntu gets slower with each release.
    It’s pretty much unusable for me now on my old AMD3200 system.
    What the heck have they done to this distro?

    • 15 mulenmar 2010/06/07 at 7:37 AM

      AMD 3200 — isn’t that a 2GHz 64-bit CPU? I’m surprised that even Ubuntu could be slow on that…

      Then again, it’s been a long time since I used Ubuntu on a single-core system. *eyes the HP Pavilion a1000 he’s Frankenstein-monster’d to life with a Mini-ATX PSU* I’ll get back to you on that, though.

      • 16 mulenmar 2010/06/07 at 2:01 PM

        Just tested Xubuntu 10.04 i386, and there doesn’t seem to be any slowness. I just created two partions, / and swap, and used ext4 for the /. No other speed tweaks.

        It still used just over 250MB of memory after a fresh boot-up, though. Standerd Ubuntu uses well over 350MB on my netbook, too, so could you check how much RAM your machine has? Lack of memory may be causing the slowness.

  12. 17 n3mo 2010/06/09 at 7:10 PM

    Hey, what program do you use for creating these graphics ?

  13. 19 Mark 2010/06/19 at 12:31 PM

    I don’t see what the fuss is about.
    My Ubintu Server takes Five Minutes to boot from a USB key.

    I have 4 x 2Tb disks in a mdraid 5, so used a /boot on usb and a root and data raid5 on disk.

  14. 20 James 2010/06/24 at 5:18 PM

    EXT4 can be created without a journal.

    mkfs.ext4 -O ^has_journal /dev/sdX

    And EXT2 can be mounted as EXT4.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,959,363 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: