public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Shawn Jin <shawnxtech@yahoo.com>
To: linuxmtd <linux-mtd@lists.infradead.org>
Subject: Understanding JFFS2 behavior
Date: Thu, 12 Feb 2004 14:30:01 -0800 (PST)	[thread overview]
Message-ID: <20040212223001.53258.qmail@web20724.mail.yahoo.com> (raw)

Hi,

When mounting a mtd device (chip Am29PL320D, 8MB, erase block 512KB, bus
width 64 bits), I observed the following behavior of JFFS2 and don't
understand what's going on inside JFFS2. 

The available space in the mtd is shrinking quickly and in the end it
leaves 0%. As a matter of fact, the mtd device only has one file
/var/log/messages with length 0. Then I cannot create any file there
because of the lack of disk space.

I know that 5 blocks need to be reserved for garbage colletion. But is this
related the gc? Is the phenomenon normal? BTW, I use the latest mtd/jffs2
code from CVS.

-Shawn.

bash-2.05# mount -t jffs2 /dev/mtdblock1 /mnt
bash-2.05# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/nfs               7044432   5535224   1151364  83% /
/dev/mtdblock1            8192      2052      6140  26% /mnt
bash-2.05# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/nfs               7044432   5535228   1151360  83% /
/dev/mtdblock1            8192      3588      4604  44% /mnt
bash-2.05# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/nfs               7044432   5535232   1151356  83% /
/dev/mtdblock1            8192      4612      3580  57% /mnt
bash-2.05# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/nfs               7044432   5535248   1151340  83% /
/dev/mtdblock1            8192      8192         0 100% /mnt
bash-2.05# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/nfs               7044432   5535248   1151340  83% /
/dev/mtdblock1            8192      8192         0 100% /mnt
bash-2.05# 

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

             reply	other threads:[~2004-02-12 22:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-12 22:30 Shawn Jin [this message]
2004-02-13  7:43 ` Understanding JFFS2 behavior Florian Schirmer

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=20040212223001.53258.qmail@web20724.mail.yahoo.com \
    --to=shawnxtech@yahoo.com \
    --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