Skip to contentSkip to conversation

JFFS2: strange output

DISCUSSION Kenneth Johansson 3 participants 3 messages Jan 29, 2002 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I think you used up all free blocks and now you basically is in a state where you have to wait for one to get free before anything can happen. If you just wait a while when things start to get slow then repeat the test do you get a few runs that are fast again?

Quoted 36 lines · Alex Zeffertt

Hi all,

I'm using a linux-2.4.4-2001-11-24 kernel on an MPC862 based board.

I've been playing with JFFS2 and getting some strange results.

First I erase /dev/mtd2 (a 6 MB FLASH partition). Then I mount the same partition

Quoted 1 line

mount -t jffs2 /dev/mtdblock2 /mnt

Then I copy file1 (a 500K file) to /mnt and repeat the following over and over:

Quoted 1 line

cp /mnt/file1 /mnt/file2; rm /mnt/file1; mv /mnt/file2 /mnt/file1

After 10 of the above I get the following message in /var/log/messages:

Dec 24 00:04:58 gonzo kernel: Waiting for chip to read, status = 4
Dec 24 00:05:40 gonzo last message repeated 2 times

After 11 of the above I get the following message in /var/log/messages:

Dec 24 00:05:55 gonzo kernel: Waiting for chip to read, status = 4
Dec 24 00:05:55 gonzo kernel: Waiting for chip to read, status = 7
Dec 24 00:06:26 gonzo last message repeated 2841 times

By this point the copies are progressing painfully slowly.

I repeated the same test with JFFS1 and had no problems. I repeated the above command 100 times, with no strange output in /var/log/messages, and with no slowing down.

Has anybody had similar problems with JFFS2?

Alex

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Signature · 4 lines
Kenneth Johansson	
Ericsson Telecom                  Tel: +46 8 404 71 83
Viderögatan 3                     Fax: +46 8 404 72 72
164 80 Stockholm                  [email protected]
#2 lore raw
Quoted 7 lines · [email protected] said:

After 11 of the above I get the following message in /var/log/messages:

Dec 24 00:05:55 gonzo kernel: Waiting for chip to read, status = 4
Dec 24 00:05:55 gonzo kernel: Waiting for chip to read, status = 7
Dec 24 00:06:26 gonzo last message repeated 2841 times

By this point the copies are progressing painfully slowly.

Those messages are harmless. They're removed in non-ancient versions of the code. The system slows down partly due to the garbage collection, and partly due to the spewing of these messages.

--
dwmw2

#3 lore raw
Quoted 5 lines

Those messages are harmless. They're removed in non-ancient versions of the code. The system slows down partly due to the garbage collection, and partly due to the spewing of these messages.

Thanks, I guess I'll just comment out the printk then.

Alex