Skip to contentSkip to conversation

long umount time

DISCUSSION Sergei Sharonov 2 participants 3 messages Apr 6, 2005 – Apr 7, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,
I sometimes see excessively long umount times (40-60 s) with jffs2/nand. The platform is a custom at91rm9200 board running linux 2.6.10 with mtd snapshot from 3/28/2005. Umount is from busybox. The umount time varies but the system is mostly idle during it unlike during mount. After a few operations with filesystem it goes away until sometime later. Has anybody seen that?

Sergei Sharonov

#1 lore raw
Quoted 8 lines · Sergei Sharonov

Hi,
I sometimes see excessively long umount times (40-60 s) with jffs2/nand. The platform is a custom at91rm9200 board running linux 2.6.10 with mtd snapshot from 3/28/2005. Umount is from busybox. The umount time varies but the system is mostly idle during it unlike during mount. After a few operations with filesystem it goes away until sometime later. Has anybody seen that?

I see 2 reasons why umounts can be slow:
1. The GC thread receives several SIGHUP signals and JFFS2 waits for the GC thread has processed them all and has reached the SIGKILL signal.

2. The final wbuf synchronization founds that there is no space and performs GC to free some room. We may imagine scenarios when this may take considerable time.

Please, look at jffs2_gcd_mtd thread - does it eat a lot of CPU cycles during these long unmounts ?

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

#2 lore raw

Hi,

Quoted 2 lines

Please, look at jffs2_gcd_mtd thread - does it eat a lot of CPU cycles during these long unmounts ?

I got the board in the oven running endurance test again.. I'll post results once I get hardware back. I got prior results captured in text file with Hyperterminal but the bloody thing has messed the text file (Dah!). From what I recall user and system times were close to 0, so I suppose nothing was eating CPU cycles.

Sergei Sharonov