Q: Cramfs Vs. Ubifs
Ran Shalit
ranshalit at gmail.com
Wed Jun 13 10:26:11 EDT 2012
>> If I start several executable from ubifs in some start point, Is it
>> right to assume that all of them are running in RAM, and there is no
>> access to flash after this start point of execution ?
>
>
> As someone else mentioned on the mtd list, Linux is demand paged which means
> that the code is loaded into memory when needed. If there's a chunk of code
> (Linux uses a page size of 4 kbytes so that's the granularity of the paging)
> that is not used until after a while after the start of execution, it won't
> be loaded until it is actually run.
>
> I don't know if there's a way to force it all into memory when execution
> starts; there probably is.
>
In embedded system it is desired to execute only from RAM, therefore
it seems that ubifs is not best choice here.
It seems that in order to run completely from RAM I need to copy all
the files in ubifs potion to RAM and then execute the application in
RAM. Therefore it seems that best choice here would be to use both
root file system in RAM, and also mount ubifs file system in flash,
for easily flashing executables and other files. Is there a simpler
way that I miss here or any wrong assumptions I've made ?
Many Thanks, Ran
More information about the linux-mtd
mailing list