public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* RE: jffs2_scan_eraseblock() - errors
@ 2002-07-30 23:30 Curtis, Allen
  2002-07-30 23:42 ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Curtis, Allen @ 2002-07-30 23:30 UTC (permalink / raw)
  To: 'David Woodhouse', Curtis, Allen
  Cc: 'linux-mtd@lists.infradead.org'

> > jffs2_scan_eraseblock() - Node at 0xXXXXXX {0x1985, 0xe002,
> > 0x1985c002) has invalid CRC)
> 
> 
> It's harmless. We were in the middle of writing that node when we lost
> power, and hadn't finished writing the payload -- hence the CRC fails.
> That's sort of what the CRC is there for. 

Questions then:
1. Does this node get reclaimed? I get this same message now with each
reboot.

2. It appears that the mount operation gets slower once this error condition
occurs. Is this possible/expected?

3. If the file-system becomes corrupted, what is the failure condition and
how do you correct it? Test for it?

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: jffs2_scan_eraseblock() - errors
@ 2002-07-31 23:02 Curtis, Allen
  2002-08-01 10:44 ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Curtis, Allen @ 2002-07-31 23:02 UTC (permalink / raw)
  To: 'David Woodhouse', Curtis, Allen
  Cc: 'linux-mtd@lists.infradead.org'

> >  INOCACHE_HASHSIZE was set to 1. Changed this to 128 and....
> > real	47.258s sys	47.25s
> 
> It's the first (and easy) part of the proof-of-concept which involves 
> moving said CRC32 check to later so the mount doesn't have to 
> wait for it.

With the CRC patch:
real	36.7s

PS: The version of scan.c we are using is 1.57. The patch note was for
1.51.2.3.

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: jffs2_scan_eraseblock() - errors
@ 2002-07-31  1:15 Curtis, Allen
  2002-07-31  3:07 ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Curtis, Allen @ 2002-07-31  1:15 UTC (permalink / raw)
  To: 'David Woodhouse', Curtis, Allen
  Cc: 'linux-mtd@lists.infradead.org'

> >  After being used, usage = 41%: JFFS2	real	1m3.583	
> (4X increase) 
> 
> Btw, the most useful thing you can give here is profiling 
> information. If 
> you still have INOCACHE_HASHSIZE set to 1 in 
> include/linux/jffs2_fs_sb.h 
> then I can guess what's at the top of your profile. Increase 
> it to 14 or 
> 128 or something for an instant win.

INOCACHE_HASHSIZE was set to 1. Changed this to 128 and....

real	47.258s
sys	47.25s

THX

JFFS is already set to 40. I will try changing this some other time.

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: jffs2_scan_eraseblock() - errors
@ 2002-07-31  0:38 Curtis, Allen
  2002-07-31  0:48 ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Curtis, Allen @ 2002-07-31  0:38 UTC (permalink / raw)
  To: 'David Woodhouse', Curtis, Allen
  Cc: 'linux-mtd@lists.infradead.org'

> you still have INOCACHE_HASHSIZE set to 1 in 
> include/linux/jffs2_fs_sb.h 
> then I can guess what's at the top of your profile. Increase 
> it to 14 or 
> 128 or something for an instant win.

THX, anything like that for JFFS? Unfortunately that is what we are shipping
now and it gets VERY slow, even with our GCD nice level modification.

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: jffs2_scan_eraseblock() - errors
@ 2002-07-30 23:59 Curtis, Allen
  2002-07-31  0:15 ` David Woodhouse
  2002-07-31  0:18 ` David Woodhouse
  0 siblings, 2 replies; 20+ messages in thread
From: Curtis, Allen @ 2002-07-30 23:59 UTC (permalink / raw)
  To: 'David Woodhouse', Curtis, Allen
  Cc: 'linux-mtd@lists.infradead.org'

> the root inode, which is obviously a bug. In that case, we 
> just delete the 
> offending directory and all its children. I suppose we should really 
> re-link it to /lost+found instead :)

Yes, disappearing files could be annoying.

Has anyone characterized the performance of the JFFS* file-systems over
time? Our initial tests indicated that JFFS2 was faster than JFFS. After
using the JFFS2 file-system and maintaining a relatively consistent
utilization there was a 4X increase in the time required to complete a mount
operation. Is this expected? Is there a worse case? See below for some
measurements.

JFFS/JFFS2 Mount Performance (38% usage, fresh install):
JFFS	real	16.164
	user	 0.01
	sys	16.14
JFFS2	real	6.47
	user	0.01
	sys	6.45

After being used, usage = 41%:
JFFS2	real	1m3.583	(4X increase)

^ permalink raw reply	[flat|nested] 20+ messages in thread
* jffs2_scan_eraseblock() - errors
@ 2002-07-30 18:11 Curtis, Allen
  2002-07-30 22:21 ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Curtis, Allen @ 2002-07-30 18:11 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

While testing power-fail operation of JFFS2, I can consistently produce this
error which occurs when the partition is mounted.

jffs2_scan_eraseblock() - Node at 0xXXXXXX {0x1985, 0xe002, 0x1985c002) has
invalid CRC)

I do not remember if the error is always CRC related and the Node location
changes but the hex values displayed within the parens is consistent.

Has anyone seen this before? Some concerns are:
1. Once the error occurs, it never gets fixed.
2. There does not appear to be a utility to fix errors.

We are using MVista 2.1, which is 2.4.17. I was able to produce this error
with only 13 power-cycles.

Any help would be appreciated!
TIA

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

end of thread, other threads:[~2002-08-01 10:45 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30 23:30 jffs2_scan_eraseblock() - errors Curtis, Allen
2002-07-30 23:42 ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31 23:02 Curtis, Allen
2002-08-01 10:44 ` David Woodhouse
2002-07-31  1:15 Curtis, Allen
2002-07-31  3:07 ` David Woodhouse
2002-07-31  0:38 Curtis, Allen
2002-07-31  0:48 ` David Woodhouse
2002-07-30 23:59 Curtis, Allen
2002-07-31  0:15 ` David Woodhouse
2002-07-31  0:18 ` David Woodhouse
2002-07-30 18:11 Curtis, Allen
2002-07-30 22:21 ` David Woodhouse
2002-07-31 10:34   ` Jörn Engel
2002-07-31 11:45     ` David Woodhouse
2002-07-31 11:57       ` Jörn Engel
2002-07-31 11:59         ` David Woodhouse
2002-07-31 12:16           ` Jörn Engel
2002-07-31 12:17             ` David Woodhouse
2002-07-31 13:07               ` Jörn Engel

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