From: Michael Lawnick <nospam_lawnick@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code
Date: Tue, 04 Nov 2008 12:14:26 +0100 [thread overview]
Message-ID: <49102E92.7010909@gmx.de> (raw)
In-Reply-To: <490BAA2A.6020806@emcraft.com>
Ilya Yanok said the following:
> Hello Michael,
>
> Michael Lawnick wrote:
...
>> d) output of 'ls' is corrupted: no date and access right output,
>> directories in / are shown multiple times
>
> Can you please be more specific on this? Is this with
> CFG_JFFS2_SORT_FRAGMENTS enabled or not? How did you create your FS? I
> can't reproduce any of described symptoms on our system...
>
> The only thing I can tell you for now is that the first patch from my
> posting is wrong, the following patch fixes the problem:
>
...
I added your patch, it corrected date part of 'ls'.
For both versions (CFG_JFFS2_SORT_FRAGMENTS set or not set)
- device root based directories are printed out up to 9 times
- output of access rights is still corrupted, e.g.:
d????-??-? 0 Tue Oct 21 11:08:17 2008 10
-????-??-? 262144 Thu Jan 01 00:00:33 1970 u-boot.bin
d????-??-? 0 Tue Oct 21 11:08:32 2008 1
d????-??-? 0 Tue Oct 21 11:00:58 2008 2
The difference is:
*with* CFG_JFFS2_SORT_FRAGMENTS time for ls is ~ 16s
*without* CFG_JFFS2_SORT_FRAGMENTS time for ls is ~ 2s
Setup scenario:
U-boot flashed, Linux booted and jffs mounted on erased flash --> in
background-process flash gets formatted.
create dir '10' in root of flash, copy 2 files with ~1.2MB each into it.
Run following script ~300 times:
mkdir /flash/11
cp /flash/10/* /flash/11
rm -rf /flash/1
mv /flash/2 /flash/1
mv /flash/3 /flash/2
mv /flash/4 /flash/3
mv /flash/5 /flash/4
mv /flash/6 /flash/5
mv /flash/7 /flash/6
mv /flash/8 /flash/7
mv /flash/9 /flash/8
mv /flash/10 /flash/9
mv /flash/11 /flash/10
sync
This should mix up jffs image enough to see what I observe.
--
Michael Lawnick
Software Design Engineer
Lise-Meitner-Str. 7/1
89081 Ulm
Tel: +49 731 9533 2066
Michael.Lawnick.ext at nsn.com
http://www.nokiasiemensnetworks.com/global/
Think before you print
next prev parent reply other threads:[~2008-11-04 11:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-13 5:53 [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: add sector_size field to part_info structure Ilya Yanok
2008-10-13 8:17 ` Wolfgang Denk
2008-10-15 12:35 ` Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: rewrite jffs2 scanning code based on Linux one Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: summary support Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: fix searching for latest version in jffs2_1pass_list_inodes() Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: add buffer to cache flash accesses Ilya Yanok
2008-10-13 5:53 ` [U-Boot] [PATCH] jffs2: cache data_crc results Ilya Yanok
2008-10-14 9:25 ` Michael Lawnick
2008-10-13 8:14 ` [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code Wolfgang Denk
2008-10-15 12:44 ` Ilya Yanok
2008-10-16 12:36 ` Michael Lawnick
2008-11-01 1:00 ` Ilya Yanok
2008-11-02 16:02 ` Wolfgang Denk
2008-11-02 19:08 ` Ilya Yanok
2008-11-04 11:14 ` Michael Lawnick [this message]
2008-11-04 12:31 ` Michael Lawnick
2008-11-04 13:14 ` Joakim Tjernlund
2008-11-05 7:59 ` Michael Lawnick
2008-11-11 6:49 ` Alexey Neyman
2008-11-11 8:19 ` Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49102E92.7010909@gmx.de \
--to=nospam_lawnick@gmx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.