From: DMcLeod <dmcleod@bittware.com>
To: linux-mtd@lists.infradead.org,
uClinux development list <uclinux-dev@uclinux.org>
Subject: Filling RAM
Date: Tue, 05 Feb 2008 12:33:19 -0500 [thread overview]
Message-ID: <47A89DDF.4050505@bittware.com> (raw)
Hi,
I am seeing that as files are created, their approximate size is
subtracted from the available memory. For example, assume I have /home
mounted from /dev/mtdblock2, which is a jffs2 filesystem on NOR flash.
The following procedure reproduces the problem consistently:
[code]
]# cat /proc/mounts
rootfs / rootfs rw 0 0
/proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
/dev/mtdblock2 /home jffs2 rw,sync 0 0
]# cd /home
]# grep MemFree /proc/meminfo
22588 kB
]# dd if=/dev/zero of=1M.dat bs=1M count=1
...
]# grep MemFree /proc/meminfo
21522 kB
]# rm 1M.dat
]# grep MemFree /proc/meminfo
22576 kB
[/code]
I'm fairly certain the file does get written to flash as it is
noticeably slower than creating a file of the same size in ramfs. So it
seems like the file is stored in RAM as well, how/why would this happen?
ps - XATTRS is off, JFFS2_SUMMARY is off, JFFS2_VERBOSITY = 0,
Any help is greatly appreciated.
next reply other threads:[~2008-02-05 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 17:33 DMcLeod [this message]
2008-02-06 7:48 ` Filling RAM Ricard Wanderlof
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=47A89DDF.4050505@bittware.com \
--to=dmcleod@bittware.com \
--cc=linux-mtd@lists.infradead.org \
--cc=uclinux-dev@uclinux.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