[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-knoppix] A little "tweak" for better compression, saves > 2% space



Hello everyone,

a few days ago when working on a little modification of Knoppix
i had an idea:

Why not using better algorithms for the gz compression?
Therefore I took cloop-2.01 and advancecomp-1.9 and hacked
it together.
(btw. the extract thing in cloop is brocken)
(advancecomp uses parts from the great 7-zip to archive this)
(I saw that with the new functions some blocks got bigger,
so I just use both ways on every block and compare the size)
(If it will be used I might clean it up etc. it's really just
done to get it working, didn't know if it's better to send the
advancecomp maintainer a little patch or Klaus a MB sized one)

It saves > 2%, I guess this also applies for a full CD
sizes filesystem. (blocksize was 65536)

A little bit smaller filesystem I used for my tests because I
had it handy:

core:/space# du -sh KNOPPIX
1.1G    KNOPPIX
core:/space# ls -lh KNOPPIX_*
-rw-r--r--    1 root     root         375M Feb 13 02:16 KNOPPIX_advfs
-rw-r--r--    1 root     root         386M Feb 13 00:23 KNOPPIX_normal

I added a MD5 sum file for every file in the filesystem, mounted it
and checked it, it just worked, I also took the time, but there is
no performance decrease.

The only negative thing is the time it takes for compressing.
On my box (2000 Mhz) it was going up from 9 min to about 70 min.

To use it, just run ./configure; make  then you can use advfs instead of
create_compressed_fs.


To Klaus:
Perhaps it's early enough for the real Knoppix 3.4, thank you for
Knoppix!


Have fun

Christian Leber <christian@leber.de>

Oh, it's here: http://debian.christian-leber.de/knoppix_compressed/

-- 
  "Omnis enim res, quae dando non deficit, dum habetur et non datur,
   nondum habetur, quomodo habenda est."       (Aurelius Augustinus)
  Translation: <http://gnuhh.org/work/fsf-europe/augustinus.html>
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: