2003-11-10 12:49:18

by Tomasz Chmielewski

[permalink] [raw]
Subject: compressed tmpfs

Hello,

I was looking for something like tmpfs, but with additional feature -
that all the files in that file system would be compressed.

I think it could be nice for one's RAM, especially in embedded
devices/diskless stations, at a little expense of efficiency.

Is there such a feature in 2.4 kernel yet, and, if not, where should I
look for it?

There is e2compr module on http://sourceforge.net/projects/e2compr/, but
I'm not sure if it can be easily applied to 2.4.22 kernel (seems like
it's for 2.4.17 kernels only).


Regards,

Tomasz Chmielewski


2003-11-10 13:19:24

by Jörn Engel

[permalink] [raw]
Subject: Re: compressed tmpfs

On Mon, 10 November 2003 13:49:16 +0100, Tomasz Chmielewski wrote:
>
> I was looking for something like tmpfs, but with additional feature -
> that all the files in that file system would be compressed.
>
> I think it could be nice for one's RAM, especially in embedded
> devices/diskless stations, at a little expense of efficiency.
>
> Is there such a feature in 2.4 kernel yet, and, if not, where should I
> look for it?
>
> There is e2compr module on http://sourceforge.net/projects/e2compr/, but
> I'm not sure if it can be easily applied to 2.4.22 kernel (seems like
> it's for 2.4.17 kernels only).

Jffs2 on a ramdisk comes close to what you want. For something
better, you have to code it up yourself.

J?rn

--
Time? What's that? Time is only worth what you do with it.
-- Theo de Raadt

2003-11-10 15:22:57

by Paulo Marques

[permalink] [raw]
Subject: Re: compressed tmpfs


Tomasz Chmielewski wrote:

> Hello,
>
> I was looking for something like tmpfs, but with additional feature -

> that all the files in that file system would be compressed.


I'm working on something like a "compressed read/write loopback device", that
might do what you want.

I hope to have something to show by the end of this week, so if you wait a
little maybe i'll be able to solve your problem :)

--
Paulo Marques
Software Development Department
http://www.grupopie.com