public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2 compression question
@ 2003-04-17 19:10 Brian T.
  2003-04-17 19:23 ` Russ Dill
  2003-04-17 20:16 ` Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Brian T. @ 2003-04-17 19:10 UTC (permalink / raw)
  To: linux-mtd

Hi,

I have jffs2 running on a 2.4.20 kernel custom Embedded box with 16MB ROM
(Intel flash) and 32MB RAM.  The file system is about 52% full, and has
about 22MB of free RAM.  When I copy 4 ~1.6MB programs over to the ROMFS I
loose about 3MB of space with compression.  The system however also uses
another ~3MB RAM once the files are done being copied.  My question is, when
does (if ever) that 3MB RAM get freed up?  If I delete the files I just
copied, the RAM appears to be freed up.   If I reboot the unit, the RAM gets
reset back to the original 22MB RAM free.

Thanks for any insite.

-Brian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: jffs2 compression question
  2003-04-17 19:10 jffs2 compression question Brian T.
@ 2003-04-17 19:23 ` Russ Dill
  2003-04-17 20:16 ` Thomas Gleixner
  1 sibling, 0 replies; 3+ messages in thread
From: Russ Dill @ 2003-04-17 19:23 UTC (permalink / raw)
  To: Brian T.; +Cc: linux-mtd


> I have jffs2 running on a 2.4.20 kernel custom Embedded box with 16MB ROM
> (Intel flash) and 32MB RAM.  The file system is about 52% full, and has
> about 22MB of free RAM.  When I copy 4 ~1.6MB programs over to the ROMFS I
> loose about 3MB of space with compression.  The system however also uses
> another ~3MB RAM once the files are done being copied.  My question is, when
> does (if ever) that 3MB RAM get freed up?  If I delete the files I just
> copied, the RAM appears to be freed up.   If I reboot the unit, the RAM gets
> reset back to the original 22MB RAM free.

linux tries not to let any RAM go to waste, so if there is free ram, it
uses it for caches and buffers. If you were to read these files again,
it would happen quickly because they are in RAM. If more RAM is needed
for other things, then less caches and buffers are used (see
/proc/meminfo for more info)

> Thanks for any insite.

don't worry, everything is working rite.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: jffs2 compression question
  2003-04-17 19:10 jffs2 compression question Brian T.
  2003-04-17 19:23 ` Russ Dill
@ 2003-04-17 20:16 ` Thomas Gleixner
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2003-04-17 20:16 UTC (permalink / raw)
  To: Brian T., linux-mtd

On Thursday 17 April 2003 21:10, Brian T. wrote:
> Hi,
>
> I have jffs2 running on a 2.4.20 kernel custom Embedded box with 16MB ROM
> (Intel flash) and 32MB RAM.  The file system is about 52% full, and has
> about 22MB of free RAM.  When I copy 4 ~1.6MB programs over to the ROMFS I
> loose about 3MB of space with compression.  The system however also uses
> another ~3MB RAM once the files are done being copied.  My question is,
> when does (if ever) that 3MB RAM get freed up?  If I delete the files I
> just copied, the RAM appears to be freed up.   If I reboot the unit, the
> RAM gets reset back to the original 22MB RAM free.

Have you taken the +/- buffers/cache into account ?

-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-17 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-17 19:10 jffs2 compression question Brian T.
2003-04-17 19:23 ` Russ Dill
2003-04-17 20:16 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox