From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: linux-mtd@lists.infradead.org
Subject: Re: Q: Cramfs Vs. Ubifs
Date: Wed, 6 Jun 2012 21:11:25 +0200 [thread overview]
Message-ID: <20120606211125.62aba982@skate> (raw)
In-Reply-To: <CAJ2oMhJxM6UTfj3zX7DFnc8PPcNNLfnXeV68ELLaCY=_8inFTg@mail.gmail.com>
Hello,
Ricard has already answered your points, but I felt that adding an
additional detail would be useful. See below.
Le Mon, 4 Jun 2012 21:17:34 +0200,
Ran Shalit <ranshalit@gmail.com> a écrit :
> I read about cramfs and ubifs, but there is still something I don't
> understand here, I hope you can help me with that...
> 1. It seems reasonable that execution from RAM is faster then Nand flash.
> So If I'm using ubifs, should I copy the executables to RAM before execute ?
This is not needed. The Linux kernel uses the MMU to do demand paging
so load on demand into RAM the portions of the program that are
actually being used. So Linux userspace applications are always
executed from RAM (unless, as Ricard pointed out, you use some XIP
mechanism, but that requires NOR flash and special filesystems, so it's
a very uncommon situation these days). However, an application is not
completely loaded at once at the beginning of its execution, parts of
it are loaded on demand during the execution.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2012-06-06 19:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 19:17 Q: Cramfs Vs. Ubifs Ran Shalit
2012-06-05 8:33 ` Ricard Wanderlof
[not found] ` <CAJ2oMhK0isouNBTzMEXPvRLAjFFcSCzWn_gvszrgt1_6Nvw13A@mail.gmail.com>
2012-06-05 9:29 ` Ricard Wanderlof
2012-06-06 19:08 ` Thomas Petazzoni
2012-06-12 4:54 ` Ran Shalit
2012-06-13 6:55 ` Ricard Wanderlof
2012-06-13 14:26 ` Ran Shalit
2012-06-13 14:59 ` Ricard Wanderlof
2012-06-13 15:25 ` Ran Shalit
2012-06-13 15:32 ` Ricard Wanderlof
2012-06-13 15:46 ` Nathan Lynch
2012-06-14 5:37 ` Ran Shalit
2012-06-14 6:23 ` Nathan Lynch
2012-06-14 6:57 ` Ricard Wanderlof
2012-06-06 19:11 ` Thomas Petazzoni [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=20120606211125.62aba982@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=linux-mtd@lists.infradead.org \
/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