1 SQUASHFS 2.1 - A squashed read-only filesystem for Linux 2 3 Copyright 2004 Phillip Lougher (plougher@users.sourceforge.net) 4 5 Released under the GPL licence (version 2 or later). 6 7Welcome to Squashfs version 2.1-r2. Squashfs 2.1 introduces indexed 8directories which considerably speed up directory lookup (ls, find etc.) for 9directories which are greater than 8K in size. All directories are now also 10sorted alphabetically which further speeds up directory lookup. Many smaller 11improvements have also been made to this release, please see the CHANGES file 12entry for detailed changes. 13 141. DIRECTORY SPEED IMPROVEMENT EXAMPLES 15--------------------------------------- 16 17To give an indication of the directory speed improvements a number of test 18results are shown here. There is in addition a new PERFORMANCE.README file 19which gives details of I/O and lookup performance for Squashfs 2.1 against 20the Zisofs, Cloop and CRAMFS filesystems. 21 22example 1: 23 24Filesystems generated from a single directory of 72,784 files (2.6 MB 25directory size). Each file is 10 bytes in size (the test is directory 26lookup and so the file size isn't an issue). The ext3 uncompressed 27directory size is 288 MB (presumably because of one file per block). 28 29Zisofs compressed size 153.50 MB 30Cloop (isofs) compressed size 1.74 MB 31Squashfs2.1 compressed size 612 KB (0.60 MB) 32 33Time taken to perform "ls -lR --color=always | cat > /dev/null" on 34filesystems mounted on hard disk. 35 36Zisofs 35 minutes 7.895 seconds (User 7.868 secs, Sys 34 mins 5.621 secs) 37Cloop 35 minutes 12.765 seconds (User 7.771 secs, Sys 34 mins 3.869 secs) 38Squashfs2.1 19 seconds (User 5.119 secs, Sys 14.547 secs) 39 40example 2: 41 42Filesystems were generated from the Ubuntu Warty livecd (original uncompressed 43size on ext3 is 1.4 GB). 44 45Zisofs compressed size 589.81 MB 46Cloop (isofs) compressed size 471.19 MB 47Squashfs2.0 compressed size 448.58 MB 48Squashfs2.1 compressed size 448.58 MB 49 50Time taken to perform "ls -lR --color=always | cat > /dev/null" on 51filesystems mounted on hard disk. 52 53Zisofs 49.875 seconds (User time 2.589 secs, Sys 11.194 secs) 54Cloop 20.797 seconds (User time 2.706 secs, Sys 13.496 secs) 55Squashfs2.0 16.556 seconds (User time 2.424 secs, Sys 10.371 secs) 56Squashfs2.1 10.143 seconds (User time 2.475 secs, Sys 4.440 secs) 57 58 59NOTE: the usual warnings apply to these results, they are provided for 60illustrative purposes only, and due to different hardware and/or file data, you 61may obtain different results. As such the results are provided "as is" without 62any warranty (either express or implied) and you assume all risks as to their 63quality and accuracy. 64 652. NEW MKSQUASHFS OPTIONS 66------------------------- 67 68There is only one extra option "-2.0". This tells mksquashfs to generate 69a filesystem which is mountable with Squashfs version 2.0. 70 713. APPENDING AND MOUNTING SQUASHFS 2.0 FILESYSTEMS 72-------------------------------------------------- 73 74Mounting 2.0 filesystems is supported by Squashfs 2.1. In addition 75mksquashfs v2.1 can append to 2.0 filesystems, although the generated 76filesystem will still be a 2.0 filesystem. 77 784. DONATIONS 79------------ 80 81If you find Squashfs useful then please consider making a donation, 82particularly if you use Squashfs in a commercial product. Please consider 83giving something back especially if you're making money from it. 84 85Off the Squashfs subject somewhat I'm currently looking for another 86job doing Linux kernel or filesystems work. If you know of any such 87work that can be performed from the UK then please get in touch. Thanks. 88