OSDN Git Service

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