Re: New Feature Idea: Compress swap file

Russell Coker - mailing lists account (bofh@snoopy.virtual.net.au)
Sun, 22 Feb 98 15:38:51 +1000


>> Compressed swap would only make sense when:
>> - - paging space is short
>> - - you are actually _swapping_ (suspending_) some
>> process to alleviate the above problem

>Indeed, it's been tried and mostly failed.
>The only way I can see to make it successful is:
>1 - compress fast
>2 - compress a lot
>3 - beware of mapping between incore addresses and compressed addresses.

>1 and 2 require a non-generic compression algorithm: the compression code
>should know what is on the page and compress integers differently from floats
>or from pointers or strings...

It's impossible to know whether ints or floats are being used.

Why not try simple run length encoding (RLE)? RLE is fast and will compress
well for simple data.

Russell Coker

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu