public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] fsload taking more time
Date: Fri, 29 Jun 2007 17:06:09 +0200	[thread overview]
Message-ID: <m2ved64x7i.fsf@sowhat.denx.de> (raw)
In-Reply-To: <38b44d590706282100s71107723m286e61fcf5aa942b@mail.gmail.com> (Saiful Khan's message of "Fri\, 29 Jun 2007 09\:30\:15 +0530")

Hi Saiful,

> I have booted kernel image from the jffs2 file system.
> The kernel image "uImage" is located in /boot directoy of jffs2 file
> system, to load uImage form /boot to RAM location 0?, "fsload
> 0? boot/uImage" command is used. Then this kernel image is
> booted from 0? using " bootm 0?" command
>
> But there is a issue that it is taking 5-6 sec (approx) more while
> doing fsload, comapred to loading uImage from raw flash location and
> booting it.
>
> The function jffs2_1pass_build_lists() on
> u-boot-1.2.0/fs/jffs2/jffs2_1pass.c is actually taking more time. May
> you please suggest me What this function does?? what to do to solve
> this isuue??

This behaviour is rooted in how jffs2 works, especially that appends
new data rather than to overwrite in place.  So on the first pass it
has to build up a list on what fragments make up the current files on
that partition.  This forces jffs2 to scan *the whole* partition
before it can serve a file (just look at the loop in the function you
quoted).

So if you want to get faster, either don't use JFFS2 or shrink the
partition so the scan speeds up.

Cheers
  Detlev

-- 
Less talking -- more hacking
                                        -- Olin Shivers
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

      reply	other threads:[~2007-06-29 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-29  4:00 [U-Boot-Users] fsload taking more time Saiful Khan
2007-06-29 15:06 ` Detlev Zundel [this message]

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=m2ved64x7i.fsf@sowhat.denx.de \
    --to=dzu@denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox