From: tweedledum@openbrain.co.kr (심성융)
To: linux-mtd@lists.infradead.org
Subject: Required memory size for jffs2.
Date: Fri, 28 Mar 2003 12:03:56 +0900 [thread overview]
Message-ID: <00da01c2f4d6$ac6b3140$7d0323d3@tweedledum> (raw)
I have tested jffs2 in user memory space, which gave me many advantages to
understand the inner works of jffs2 and save time; disk i/o request was
redirected to file i/o and kmalloc() was modified to malloc().
I checked the size of all allocated memory using malloc_stats() function to
meet our memory requirement in embedded environment.
Nand flash size 32MB with blocks of 16KB and pages of 512B, whose total
number of blocks is 2048.
When there is no file, malloc_stats() prints the follow results after mount
Arena 0:
system bytes = 148128
in use bytes = 140208
Total (incl. mmap):
system bytes = 148128
in use bytes = 140208
max mmap regions = 0
max mmap bytes = 0
After Creation of a ~10MB file under same situation. the number of total
nodes on flash including clean markers is 3297
system bytes = 209568
in use bytes = 203056
Total (incl. mmap):
system bytes = 209568
in use bytes = 203056
max mmap regions = 0
max mmap bytes = 0
When I tried to read the file, it went worse. It temporarily needs 400KB
maximally; I wish this number is under 200KB.
Arena 0:
system bytes = 463520
in use bytes = 415728
Total (incl. mmap):
system bytes = 463520
in use bytes = 415728
max mmap regions = 0
max mmap bytes = 0
I could hardly believe the results. jffs2 requires too much memory!!
Actually I used the version ported to ecos(the date I downloaded ecos is
2003-02-07 07:17). Because I thought that's easily be done.
Could someone help me to understand the situation? any suggestion and
help will be appreciated. thanks very much.
next reply other threads:[~2003-03-28 3:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 3:03 심성융 [this message]
2003-03-29 2:49 ` Required memory size for jffs2 Russ Dill
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='00da01c2f4d6$ac6b3140$7d0323d3@tweedledum' \
--to=tweedledum@openbrain.co.kr \
--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