public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Roy Sigurd Karlsbakk <roy@karlsbakk.net>
Cc: linux-kernel@vger.kernel.org, reiserfs-dev@namesys.com
Subject: Re: writing a plugin for reiserfs compression
Date: Fri, 02 Nov 2001 01:54:31 +0300	[thread overview]
Message-ID: <3BE1D2A7.FDC86888@namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0111011754580.2106-100000@mustard.heime.net>

Basically a good idea, lots of people have agreed with you for years on it. 
Wait until Sep. 30, 2002, and it will become especially easy to write this for
reiserfs using reiser4 plugins.  Probably not very hard to write using reiser3
though.  If you don't want to wait, I will review any patch you create for
reiser3, and express an opinion when I see it.  Clean and simple is more
important to getting it accepted by me than optimal, at least for reiser3.  Your
code will be easy tp author excepting the uncompression upon read, which is
probably not that hard.  I think we can spare three bits for you in the stat
data.  Your code will get tested in 2.5 before being sent in for 2.4 users if
you do it for v3. 

Hans


Roy Sigurd Karlsbakk wrote:
> 
> hi
> 
> I got this idea the other day...
> 
> Novell NetWare has a feature I really like. It's a file compression
> feature they've been having since version 4.0 (or 4.10) of the OS.
> 
> - Once a day, a job is run to compress all files that havent been touched
> within <n> days - default 14, that have not been flagged CAN'T COMPRESS
> or DON'T COMPRESS (see below).
> 
> - After the file is compressed, it's checked against the compression
> gain. If this is less than <n> per cent (default 30), the compressed
> version is being deleted and the file is flagged CAN'T COMPRESS. If the
> file is compressed, the uncompressed version is being deleted and the file
> is flagged COMPRESSED.
> 
> - When a compressed file is accessed, it'll be decompressed on the fly and
> flagged ACCESSED AFTER COMPRESSION. The next time it's accessed within the
> given <n> days (above), it's decompressed and the compressed file
> discarded. The flag COMPRESSED is cleared.
> 
> Files can be flagged 'DON'T COMPRESS' and 'FORCE COMPRESS' manually by the
> user or admin. 'FORCE COMPRESS' is dominant over 'CAN'T COMPRESS'.
> 
> The result is that you're saving loads of space (typically 50-70% on a
> netware file server) and, since the compression job is batched up
> (typically by night), the performance penalty is minimal. File
> decompression will happen quite rarely, as only the least-accessed files
> are compressed.
> 
> TODO:
> New attributes must be added somehow. 'ls' and 'find' and perhaps other
> files must be modified to take advantage of this. The compression job can
> be a simple script with something like
> 
>         find . -type f ! --compressed ! --dont-compress / -exec fcomp {} \;
> 
> (and check can't compress and force compression).
> 
> There must be a way to access the compressed files directly to make
> backups more efficient - backing up already compressed files's a good
> thing.
> 
> COMMENT:
> And yes - I know a lot of people are saying this is something we don't
> need, as diskspace doesn't cost anything today compared to what it used
> to. The first time I heard that, was in '92. We're always using too much
> diskspace!
> 
> Please cc: to me as I'm not on the list
> 
> roy
> ---
> Praktiserende dyslektiker.
> La ikke ortografiske krumspring skygge for
> intensjonen bak denne fremstilling.

  parent reply	other threads:[~2001-11-01 22:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01 17:14 writing a plugin for reiserfs compression Roy Sigurd Karlsbakk
2001-11-01 20:07 ` Andreas Dilger
2001-11-01 23:01   ` Hans Reiser
2001-11-01 23:09   ` Hans Reiser
2001-11-02  9:29   ` Nikita Danilov
2001-11-01 22:54 ` Hans Reiser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-01 20:17 Roy Sigurd Karlsbakk
2001-11-01 21:14 ` Andreas Dilger
2001-11-01 21:27   ` Roy Sigurd Karlsbakk
2001-11-01 21:37     ` Padraig Brady
2001-11-01 21:43       ` Roy Sigurd Karlsbakk
2001-11-02  9:24         ` Robert Varga
2001-11-01 23:16     ` Hans Reiser
2001-11-09 23:27 ` Andreas Dilger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BE1D2A7.FDC86888@namesys.com \
    --to=reiser@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-dev@namesys.com \
    --cc=roy@karlsbakk.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox