* how to behave on jffs2
@ 2005-01-12 15:50 Lokesh Kumar
2005-01-12 15:56 ` Carlos Manuel Duclos Vergara
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lokesh Kumar @ 2005-01-12 15:50 UTC (permalink / raw)
To: 'linux-mtd@lists.infradead.org'
Hi All,
I have an embedded Linux (kernel 2.4.18) board at 50MHz, with jffs2 16MB
flash. My system creates small files of 700 bytes each and is required to
create ~3000 of such files. I see that when there are 1000 files, the system
takes 3 minutes or so to mount this partition and then another 3 to do "ls
-l". When there are 3000 files, the system takes 10 minutes each for mount
and "ls -l".
Is that expected behaviour?
Lokesh Kumar
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: how to behave on jffs2
2005-01-12 15:50 how to behave on jffs2 Lokesh Kumar
@ 2005-01-12 15:56 ` Carlos Manuel Duclos Vergara
2005-01-12 16:22 ` Artem B. Bityuckiy
2005-01-12 16:48 ` Wolfgang Denk
2 siblings, 0 replies; 4+ messages in thread
From: Carlos Manuel Duclos Vergara @ 2005-01-12 15:56 UTC (permalink / raw)
To: Lokesh Kumar; +Cc: 'linux-mtd@lists.infradead.org'
> Hi All,
>
Hi,
> I have an embedded Linux (kernel 2.4.18) board at 50MHz, with jffs2 16MB
> flash. My system creates small files of 700 bytes each and is required to
> create ~3000 of such files. I see that when there are 1000 files, the
> system takes 3 minutes or so to mount this partition and then another 3 to
> do "ls -l". When there are 3000 files, the system takes 10 minutes each for
> mount and "ls -l".
>
Why not to create a ramdisk and mount it on the fly?
Only when you modify the ramdisk you save it to the flash, instead of been
working directly with flash memory. You can save a lot of time by doing this.
Cheers!
--
Carlos Manuel Duclos Vergara
carlos@embedded.cl
http://www.embedded.cl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to behave on jffs2
2005-01-12 15:50 how to behave on jffs2 Lokesh Kumar
2005-01-12 15:56 ` Carlos Manuel Duclos Vergara
@ 2005-01-12 16:22 ` Artem B. Bityuckiy
2005-01-12 16:48 ` Wolfgang Denk
2 siblings, 0 replies; 4+ messages in thread
From: Artem B. Bityuckiy @ 2005-01-12 16:22 UTC (permalink / raw)
To: Lokesh Kumar; +Cc: 'linux-mtd@lists.infradead.org'
On Wed, 12 Jan 2005, Lokesh Kumar wrote:
This is feature of JFFS2. It works slow with directories which have lots
of files. If you want to fix it, I may try to take you some hints :-)
> Hi All,
>
> I have an embedded Linux (kernel 2.4.18) board at 50MHz, with jffs2 16MB
> flash. My system creates small files of 700 bytes each and is required to
> create ~3000 of such files. I see that when there are 1000 files, the system
> takes 3 minutes or so to mount this partition and then another 3 to do "ls
> -l". When there are 3000 files, the system takes 10 minutes each for mount
> and "ls -l".
>
> Is that expected behaviour?
>
> Lokesh Kumar
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to behave on jffs2
2005-01-12 15:50 how to behave on jffs2 Lokesh Kumar
2005-01-12 15:56 ` Carlos Manuel Duclos Vergara
2005-01-12 16:22 ` Artem B. Bityuckiy
@ 2005-01-12 16:48 ` Wolfgang Denk
2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2005-01-12 16:48 UTC (permalink / raw)
To: Lokesh Kumar; +Cc: 'linux-mtd@lists.infradead.org'
In message <294FD9D3403A0340BDAC38E48DCEFFDC935788@RES-EXCH> you wrote:
>
> I have an embedded Linux (kernel 2.4.18) board at 50MHz, with jffs2 16MB
> flash. My system creates small files of 700 bytes each and is required to
> create ~3000 of such files. I see that when there are 1000 files, the system
> takes 3 minutes or so to mount this partition and then another 3 to do "ls
> -l". When there are 3000 files, the system takes 10 minutes each for mount
> and "ls -l".
>
> Is that expected behaviour?
Yes - given the age of MTD code you probably have in this old kernel.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Substitute "damn" every time you're inclined to write "very"; your
editor will delete it and the writing will be just as it should be.
- Mark Twain
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-12 16:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12 15:50 how to behave on jffs2 Lokesh Kumar
2005-01-12 15:56 ` Carlos Manuel Duclos Vergara
2005-01-12 16:22 ` Artem B. Bityuckiy
2005-01-12 16:48 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox