Re: New Feature Idea: Compress swap file

Russell Coker - mailing lists account (bofh@snoopy.virtual.net.au)
Fri, 20 Feb 98 09:12:54 +1000


>> How about, when using swap, it is compressed before it is written out?

>Can't this already be done by using mkswap to make a swap file on a
>compressed ext2 filesystem?

Swapping to a file on an ext2 file system is considerably slower than using
a swap device. Using a compression method that is designed for file access
(large chunks of data being stored for long periods of time) probably isn't
going to be very efficient for swapping (4k blocks of data that are stored for
short periods and require fast access).

Maybe just simple RLE is the way to go?

Russell Coker

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