public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* RE: JFFS2 Stability problem!
@ 2001-07-16 14:34 Frederic Giasson
  2001-07-16 14:42 ` David Woodhouse
  0 siblings, 1 reply; 13+ messages in thread
From: Frederic Giasson @ 2001-07-16 14:34 UTC (permalink / raw)
  To: 'Vipin Malik', David Woodhouse
  Cc: Frederic Giasson, linux-mtd, jffs-dev, Jean-Denis Boyer

Here are Vipin's debug terminal log:

<snip>

Message from syslogd@elan at Sun Jul 15 12:27:26 2001 ...
elan kernel: 4c6d10 is obsolete... skipping

Message from syslogd@elan at Sun Jul 15 12:27:56 2001 ...
elan kernel: 00000, bad_size 0x00000000 (total 0x00800000 of 0x00800000)

Message from syslogd@elan at Sun Jul 15 12:28:17 2001 ...
elan kernel: 29298, erasing_size 0x00000000, bad_size 0x00000000 (total 
0x00800000 of 0x00800000)

Message from syslogd@elan at Sun Jul 15 12:29:59 2001 ...
elan kernel: 31ba0c is obsolete... skipping

Message from syslogd@elan at Sun Jul 15 12:30:30 2001 ...
elan kernel:  nextblock->free_size 0x0003b150

<snip>

Message from syslogd@elan at Sun Jul 15 15:08:44 2001 ...
elan kernel: 006c0000, nextblock->free_size 0x000366b8

Message from syslogd@elan at Sun Jul 15 15:08:44 2001 ...
elan kernel: 000000, bad_size 0x00000000 (total 0x00800000 of 0x00800000)

Message from syslogd@elan at Sun Jul 15 15:10:07 2001 ...
elan kernel: 00, bad_size 0x00000000 (total 0x00800000 of 0x00800000)

Message from syslogd@elan at Sun Jul 15 15:10:12 2001 ...
elan kernel: 00000, bad_size 0x00000000 (total 0x00800000 of 0x00800000)


P.S. I did not get those errors on my terminal, though.

Frédéric Giasson





-----Original Message-----
From: Vipin Malik [mailto:vipin.malik@daniel.com]
Sent: Monday, July 16, 2001 10:37 AM
To: David Woodhouse
Cc: Frederic Giasson; linux-mtd@lists.infradead.org; jffs-dev@axis.com;
Jean-Denis Boyer
Subject: Re: JFFS2 Stability problem!


David Woodhouse wrote:

> fgiasson@mediatrix.com said:
> >       I found a stability problem that looks like a flash space leak
while
> > running intense test case with JFFS2.
>
> Definitely looks like a leak. Does the space come back after an unmount
and
> remount?

[root@elan /root]# rm -rf /mnt/jffs2/*

[root@elan /root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock1            8192      2544      5648  31% /mnt/jffs2

[root@elan /root]# umount /mnt/jffs2/
[root@elan /root]#
[root@elan /root]# mount -t jffs2 /dev/mtdblock1 /mnt/jffs2/
[root@elan /root]#
[root@elan /root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock1            8192      1284      6908  16% /mnt/jffs2

[root@elan /root]#

Hence Yes!

Vipin
P.S. I also got some strange (debug type) messages from JFFS2 on the
terminal I
was running the program at, but NOT on the serial console (why?)
I sent those to Frederic. I don't have access to those here, but maybe
Frederic
can forward them to you. It may help decipher what is going on.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: JFFS2 Stability problem!
@ 2001-07-17 12:20 Frederic Giasson
  0 siblings, 0 replies; 13+ messages in thread
From: Frederic Giasson @ 2001-07-17 12:20 UTC (permalink / raw)
  To: 'David Woodhouse', Vipin Malik
  Cc: Frederic Giasson, linux-mtd, jffs-dev

Do those KERN_DEBUG messages tell you anything about this?  Do you have an
idea on how fixing this problem?

Frédéric Giasson




-----Original Message-----
From: David Woodhouse [mailto:dwmw2@infradead.org]
Sent: Tuesday, July 17, 2001 3:11 AM
To: Vipin Malik
Cc: Frederic Giasson; linux-mtd@lists.infradead.org; jffs-dev@axis.com;
Jean-Denis Boyer
Subject: Re: JFFS2 Stability problem! 



vipin.malik@daniel.com said:
>  Well, actually that's why I called them "strange" as these did not
> show up on my serial console (I was logging my serial console messages
> to a file on another computer)!.

> Plus, they were not a "spew"- rather one in a few minutes type
> frequency. Do they tell you anything? 

KERN_DEBUG messages don't go to the console by default. But there were 
enough of them to confuse syslogd.


--
dwmw2

^ permalink raw reply	[flat|nested] 13+ messages in thread
* JFFS2  Stability problem!
@ 2001-07-16 13:54 Frederic Giasson
  2001-07-16 14:09 ` David Woodhouse
  0 siblings, 1 reply; 13+ messages in thread
From: Frederic Giasson @ 2001-07-16 13:54 UTC (permalink / raw)
  To: linux-mtd, jffs-dev; +Cc: Jean-Denis Boyer

Hi all,

	I found a stability problem that looks like a flash space leak while
running intense test case with JFFS2.  Someone else with a diffenrent
platform with different flash driver at a different company told me he
encountered the same problem, so I think am not dreaming.  Here is what I do
and a description of the problem:

1- I erase my flash.
2- I mount JFFS2.  The empty file system reports a 22% disk usage when I
call "df" system command.
3- I start a script that does the following loop:
	a. Copy many files of various size and types to JFFS2 file system
using "cp" command.
	b. Call "df" system command after the transfer of the files.  After
the first transfer is completed, it reports a 88% 	   disk usage.
	c. Call "rm" command to erase all files on JFFS2 file system.

	The set of files copyied is always the same.  Logging the output of
my terminal, I noticed that after about 200 loops, the disk usage at step
3-b begins to grow slowly.  After about 500 loops, the disk usage as grown
so much that there is no longer enough room on the file system to store all
the same files that at first took 88% disk usage.  When my test case script
cannot copy all files, it stops.

	After the test case failure, I manually erased all files (using "rm"
again).  Then, calling "df" I got a 30% disk usage.  I ran the test case
many times on different machines (of the same types, though), and I obtained
the same failure after about the same number of test case loops.

Description of my platform:

Embedded MPC860T
2MB Atmel AT49BV16x4 single flash memory chip
16MB RAM
Linux Kernel 2.4.4

	Since my flash chip was not supported by MTD, I wrote my own driver
but I doubt greatly that the problem could come from it.  I tested it not
using JFFS2 and I did not get any error.  As I said, another developper ran
my test case and got the same problem and he have a different system with
differents drivers.

	Could it be a garbage collector problem?  Anyone who have a clue
about it is welcome to tell me even the slightyiest details, since resolving
this problem is very important to me.



Frédéric Giasson

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

end of thread, other threads:[~2001-09-18  9:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-16 14:34 JFFS2 Stability problem! Frederic Giasson
2001-07-16 14:42 ` David Woodhouse
2001-07-16 14:47   ` Vipin Malik
2001-07-17  7:11     ` David Woodhouse
2001-09-17  3:16     ` jffs & amd_flash.c Kugan
2001-09-18  8:19       ` Jarkko Lavinen
2001-09-18  8:37         ` Kugan
2001-09-18  9:00           ` Jarkko Lavinen
2001-07-17 17:00   ` JFFS2 Stability problem! Doron Sandroy
  -- strict thread matches above, loose matches on Subject: below --
2001-07-17 12:20 Frederic Giasson
2001-07-16 13:54 Frederic Giasson
2001-07-16 14:09 ` David Woodhouse
2001-07-16 14:37   ` Vipin Malik

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