* Re: Speed of writing to flash
[not found] ` <1078325271.4619.3.camel@hades.cambridge.redhat.com>
@ 2004-03-04 17:45 ` Matthias Gorjup
0 siblings, 0 replies; 3+ messages in thread
From: Matthias Gorjup @ 2004-03-04 17:45 UTC (permalink / raw)
To: linux-mtd
On Wednesday 03 March 2004 15:47, you wrote:
> On Tue, 2004-03-02 at 20:40 +0100, Matthias Gorjup wrote:
> > Hi, thanks for the prompt answer. But in the kernel 2.4.20 that we are
> > using, there is not "erase suspend" supported - as I could understand
> > from the source code. And there is no EraseSuspend variable anywhere in
> > the mtd source code of the kernel 2.4.20.
> > Could you give us some info about what else could be wrong?
>
> Please don't top-post. Your reply should be underneath the _selectively_
> quoted parts of the original reply.
>
> You could try updating to the latest code, in that case. Or use
> profiling to see where it's spending all its time when it's slow.
OK, I will try... before doing that just one question:
- when I tried to simply copy 2 MB large file from NFS mounted file system to
the flash file system, it took me from 5 to 20 minutes. It took me 5 minutes
after rebooting and over 20 minutes after doing it for the fourth time (with
no rebooting in between). Is 5 minutes normal for writing such a big file to
flash file system?
Best Regards
Matthias Gorjup
www.norik.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Speed of writing to flash
@ 2004-03-02 13:58 Matthias Gorjup
2004-03-02 14:08 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Gorjup @ 2004-03-02 13:58 UTC (permalink / raw)
To: linux-mtd
Hello,
we are developing an embedded device, based on MPC860/Linux 2.4.20
platform.
We have 8 MB of flash and 16 MB of RAM. We have implemented a JFFS2 flash
filesystem with following partitions: 128 kB bootloader, 1 MB kernel A, 1
MB kernel B, 5.8 MB root FS. In root FS partition we have two complete
root filesystems, in two directories, A and B. One (for example A) is
mounted douring booting, the other directory (B) can be overwritten during
runtime and the device can then be rebooted with this new (B) FS. This
makes downloading the new FS (updating the software) during runtime
possible.
Our problem is following:
- we have a requirement to download the zipped FS (B) that is 3.5 MB large
to the embedded device via 64kb/s ISDN line, extract the FS and copy it to
the second (B) directory. Then reboot the system. This must be done in 10
minutes.
Our procedure of extracting the FS takes too long... 30 minutes. If we
kill all the processes, then extracting time can be reduced to less than
10 minutes.
What is the cause of this behavioure? How could we optimize the procedure
of downloading the new file system to the device?
Please note also that as we have only 16 MB of RAM, we do not have enough
space to implement ramdisk which could reduce the time of extracting the
FS into flash.
Here are also the settings for MTD:
#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_CONCAT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_CFI_B1 is not set
CONFIG_MTD_CFI_B2=y
# CONFIG_MTD_CFI_B4 is not set
CONFIG_MTD_CFI_I1=y
# CONFIG_MTD_CFI_I2 is not set
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
# CONFIG_MTD_AMDSTD is not set
# CONFIG_MTD_SHARP is not set
# CONFIG_MTD_JEDEC is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_PHYSMAP is not set
# CONFIG_MTD_TQM8XXL is not set
# CONFIG_MTD_RPXLITE is not set
# CONFIG_MTD_MBX860 is not set
# CONFIG_MTD_DBOX2 is not set
# CONFIG_MTD_CFI_FLAGADM is not set
CONFIG_MTD_KEYMILE_AG=y
# CONFIG_MTD_PCI is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_DOC1000 is not set
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOCPROBE is not set
#
# NAND Flash Device Drivers
#
# CONFIG_MTD_NAND is not set
And here are settings for JFFS2
# CONFIG_JFFS_FS is not set
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
# CONFIG_CRAMFS is not set
# CONFIG_TMPFS is not set
CONFIG_RAMFS=y
Best Regards
Matthias Gorjup
www.norik.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-04 17:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.10.10403022036240.1720-100000@mail.hurricane.at>
[not found] ` <1078325271.4619.3.camel@hades.cambridge.redhat.com>
2004-03-04 17:45 ` Speed of writing to flash Matthias Gorjup
2004-03-02 13:58 Matthias Gorjup
2004-03-02 14:08 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox