public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Øyvind Harboe" <oyvind.harboe@zylin.com>
To: "'David Woodhouse'" <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: RE: RFC - patch to reduce peak memory usage by disablingcompression
Date: Thu, 21 Aug 2003 15:00:34 +0200	[thread overview]
Message-ID: <002a01c367e4$3592e690$73dea8c0@lair> (raw)
In-Reply-To: <1061469898.13830.52.camel@hades.cambridge.redhat.com>

>You could make it use a static buffer and serialise 
>compression, and it really would be only 4KiB you're saving.
>
>I sincerely hope this is done because you're using uncompressible 
>data, rather than trading about 4KiB of cheap RAM for a doubling 
>in expensive flash space :)
>
>If you're doing this, I'd prefer to change jffs2_compress() to 
>allocate its _own_ buffer (or optionally use a static one), 
>then have a simple definition of jffs2_compress which does 
>nothing in the !CONFIG_JFFS2_FS_COMPRESSION case. 

These are bigger changes than I want to attempt to JFFS2 at the
moment. 

>You need to handle the case where compression is configured out 
>and a filesystem created with compressed nodes is encountered -- 
>it looks like it'll die horribly at the moment.

I don't know my way around JFFS2 too well, but I thought I reported
an error in that case? 

What else can be done in this case, except to fail to read the file?

In my case, it is my own firmware that writes the JFFS2, so the
situation
will never arise. 

I can't say that I think it makes much sense to support the
configuration
of JFFS2 where it does not compress, but decompress. 

>I'd also like to see individual compression routines selectable, 
>and also at runtime with something akin to chattr.

What you describe is higher resolution of configurability, but for
my purposes the resolution is good enough.

Too many options isn't a good thing either. There will be a lot of
implied
orthogonality that isn't there(since all configurations will never be
tested).

Øyvind

      reply	other threads:[~2003-08-21 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21 12:31 RFC - patch to reduce peak memory usage by disabling compression Øyvind Harboe
2003-08-21 12:44 ` David Woodhouse
2003-08-21 13:00   ` Øyvind Harboe [this message]

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='002a01c367e4$3592e690$73dea8c0@lair' \
    --to=oyvind.harboe@zylin.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /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