From owner-freebsd-hackers Tue Feb 27 15:09:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA17552 for hackers-outgoing; Tue, 27 Feb 1996 15:09:13 -0800 (PST) Received: from labinfo.iet.unipi.it ([131.114.9.5]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA17509 for ; Tue, 27 Feb 1996 15:08:56 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id AAA04556; Wed, 28 Feb 1996 00:00:17 +0100 From: Luigi Rizzo Message-Id: <199602272300.AAA04556@labinfo.iet.unipi.it> Subject: Re: OK, so what would YOU like to see on that second CD? To: terry@lambert.org (Terry Lambert) Date: Wed, 28 Feb 1996 00:00:16 +0100 (MET) Cc: jfieber@indiana.edu, jerry@border.com, jkh@time.cdrom.com, hackers@FreeBSD.ORG In-Reply-To: <199602272049.NAA05743@phaeton.artisoft.com> from "Terry Lambert" at Feb 27, 96 01:48:58 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > I have some example file compression code for the Heidemann framework; > John has asked that I not redistribute it. but the problem is not the compression code, there's plenty of it out there, and some is even reasonably fast [and often the same algorithm has been patented several times by different people, *after* an implementation was made available on the net; I was reading the comp.compression FAQ the other night and it's full of this kind of stories! ]. The problem is that compressed blocks have variable size, and handling them efficiently requires (I believe) big changes in the device+fs code. Perhaps log-structured filesystems lend themselves better to this. > It would be trivial to implement block compression at the device export > layer in the devie framework I suggested previously. This is similar while you can certainly make a compressed device look like a regular one, I believe some efficiency is lost, and not only because of compression. The FS layout assumes that adjacent blocks are adjacent (modulo a few bad sectors). But what on a compressed device ? Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 http://www.iet.unipi.it/~luigi/ ====================================================================