public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 Garbage collection issue
@ 2013-11-27 10:11 Albrecht, Harald
  2013-11-27 10:23 ` Joakim Tjernlund
  2013-11-27 19:27 ` Albrecht Dreß
  0 siblings, 2 replies; 9+ messages in thread
From: Albrecht, Harald @ 2013-11-27 10:11 UTC (permalink / raw)
  To: linux-mtd

Hi all,

we are currently facing a problem with the Garbage-collection on a JFFS2 
file system.

We have an embedded linux system based on an ARM9 AT91RM9200 processor 
with an Intel / Micron JS28F256 NOR-flash of 32MB in size.
The Flash holds the U-Boot loader and its environment and in the main 
part (30MB) of the chip a JFFS2-based root-file-system.
Our Linux kernel version is 2.6.24.3

Some minutes after startup of the system, the garbage collector (gc.c) 
does a scan of the file system, gathering information for the garbage 
collection procedures that may be initiated based upon that data.
On some file systems, especially such with long runtime and therefore 
many file operations, this scan consumes a lot of time. On some systems 
it stays in that scan for more that 10 minutes. The problem with this 
behaviour is the fact, that during the scan the file system is locked, 
and therefore all file operations are suspended. This leads to a crash 
of the system, when the application program hangs for a long time, 
waiting for a file operation to return from a system call, and the 
watchdog is not triggered.

In a test system without watchdog, after the scan, the system runs normally.
The flash chip itself shows no errors, so it seems to be a problem of 
the file system.

Any idea or suggestion to solve the problem would be very welcome!

Harald Albrecht

^ permalink raw reply	[flat|nested] 9+ messages in thread
* JFFS2 Garbage Collection Issue
@ 2008-07-27 18:44 suresh
  0 siblings, 0 replies; 9+ messages in thread
From: suresh @ 2008-07-27 18:44 UTC (permalink / raw)
  To: linux-mtd

Hi,

I am running a stress test which keeps writing to the flash on every  
reboot (around 15 MB each time). After running the test for 2 days, I  
see that the garbage collection takes a long time to complete (almost  
65 seconds).

I disabled the garbage collection from running during bootup (and the  
stress test is stopped). When I see the free space on the JFFS2  
partition its much more than what it should be (we expect it to be  
around 17 MB, but its 35 MB). When the JFFS2 garbage collection is  
started again it comes down to 17MB. Again after a reboot its back at  
35 MB (garbage collection is stopped at reboot and stress test is now  
not running).

Why does the JFFS2 NOT remember the garbage collection it did the  
previous time? This is affecting the application start up time in out  
case.

I am using JFFS2 in 2.6.16-rc3 on OMAP5912

Thanks in advance,

Best Regards,
Suresh

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

end of thread, other threads:[~2013-11-28 11:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 10:11 JFFS2 Garbage collection issue Albrecht, Harald
2013-11-27 10:23 ` Joakim Tjernlund
2013-11-27 10:30   ` Joakim Tjernlund
2013-11-27 19:34     ` Albrecht Dreß
2013-11-28  6:33       ` Joakim Tjernlund
2013-11-28  9:33   ` Albrecht, Harald
2013-11-28 11:03     ` Joakim Tjernlund
2013-11-27 19:27 ` Albrecht Dreß
  -- strict thread matches above, loose matches on Subject: below --
2008-07-27 18:44 JFFS2 Garbage Collection Issue suresh

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