From: Paul W. <Pau...@in...> - 2004-06-10 01:42:45
|
FYI, I have been able to compile a coLinux kernel with ext2 compression support (http://e2compr.sf.net/), which when used in conjunction with a sparse filesystem back-end created using mksparse (http://www.acc.umu.se/~bosse/mksparse.zip) results in very significant reductions in the on-disk footprint of the filesystem. You can smbmount a region of the host filesystem, then on the host create an initial zero-length file using mksparse, mke2fs it as large as you like (ignore warnings), mount it via loopback, chattr +c the top level directory, and then load it up with data. You will see a bunch of scary-looking "IO error syncing ext2 inode" errors, but AFAIK these are completely benign (I will have to look into this further), and they go away if you remount the image as a /dev/cobdN instead. You definitely want to mount the filesystem image via cobd in the long run, as performance of e2compr-on-ext2-over-loop-over-smb is not good. Note that you will need special e2compr-aware versions of ext2 tools (e2fsck, chattr, etc) available from the e2compr.sf.net site. Please note also that, although it has been around for many years, e2compr is considered experimental and should not be relied upon for storage of anything particularly valuable. But then the same is true of coLinux, I guess. Taking this one step further I have created a prototype e2compr'd root FS using my own embedded distro (http://diet-pc.sf.net) and have managed to get root filesystem size as small as 3.5 Mb, and I'm not even trying hard (DIET-PC is liberal for an embedded distro, using a real glibc 2.3.2 rather than uclibc, etc - the "hard core" embedded distros are much smaller still). |
From: Jason A. P. <pat...@pc...> - 2004-06-10 14:53:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Whittaker wrote: | Note that you will need special e2compr-aware versions of ext2 tools | (e2fsck, chattr, etc) available from the e2compr.sf.net site. Please note | also that, although it has been around for many years, e2compr is considered | experimental and should not be relied upon for storage of anything | particularly valuable. But then the same is true of coLinux, I guess. I had my company laptop setup once using e2compr to compress everything on it (I have a 10GB harddrive with only 4.5GB available to Linux). I pretty much lost everything on it. Major filesystem corruption occurred after using it for a few months. I can't remember the exact details, but files started not being able to decompress, and I think some may have ended up being deleted as well. So, unless there has been some major work done on e2compr in the past year or so, I probably would not rely on it. - -- Jason A. Pattie pat...@xp... Xperience, Inc. (http://www.xperienceinc.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFAyHXwuYsUrHkpYtARAsdlAJ9FJTGRv2sHorkjk7alU3BaMxSQ0wCeIToK 0qdQ/xXgDE0qehdOIPtna94= =Qr3A -----END PGP SIGNATURE----- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. |
From: Paul W. <Pau...@in...> - 2004-06-11 00:43:07
|
----- Original Message ----- From: "Jason A. Pattie" <pat...@pc...> To: "Paul Whittaker" <Pau...@in...> Cc: <col...@li...> Sent: Friday, June 11, 2004 12:53 AM Subject: Re: [coLinux-users] Smaller filesystems (gratuitous e2compr plug) > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul Whittaker wrote: > | Note that you will need special e2compr-aware versions of ext2 tools > | (e2fsck, chattr, etc) available from the e2compr.sf.net site. Please note > | also that, although it has been around for many years, e2compr is > considered > | experimental and should not be relied upon for storage of anything > | particularly valuable. But then the same is true of coLinux, I guess. > > I had my company laptop setup once using e2compr to compress everything > on it (I have a 10GB harddrive with only 4.5GB available to Linux). I > pretty much lost everything on it. Major filesystem corruption occurred > after using it for a few months. I can't remember the exact details, > but files started not being able to decompress, and I think some may > have ended up being deleted as well. So, unless there has been some > major work done on e2compr in the past year or so, I probably would not > rely on it. It depends what you are doing. I will happily admit to not daring to use e2compr with my main Linux distro myself, but have had no problems whatsoever with it in an embedded role with a very small number of files on an initrd filesystem that gets reset to a known-good state every time the machine boots. My uses of coLinux are along the same lines. Nitpick: e2compr cannot cause "filesystem corruption", because it doesn't compress metadata (ie. directories, inode info). It's not to blame for any files that go missing. At worst it can only result in corruption of file contents. |