[PATCH RFC] 1/2 central workspace for zlib

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Sat May 31 11:44:06 EDT 2003


> Hi!
> 
> The following creates a central workspace per cpu for the zlib.  The
> original idea was to save memory for embedded, but this should also
> improve performance for smp.
> 
> Currently, each user of the zlib has to provide a workspace for the
> zlib to draw memory from.  Each workspace amounts to 400k for deflate
> or 50k for inflate.  Four users exist, as of 2.4.20:
> jffs2: inflate & deflate, initialized once, 450k
[SNIP]

450KB looks like a lot considering JFFS2 will never compress more than a PAGE at a time.
I think the actual workspace needed is much less, but none has figured out how to calculate
the  real workspace needed for a fixed buffer size, right?

 Jocke



More information about the linux-mtd mailing list