`
rubynroll
  • 浏览: 202043 次
  • 性别: Icon_minigender_1
  • 来自: Wgt
社区版块
存档分类
最新评论

UFFS mounting process

    博客分类:
  • UFFS
阅读更多

One of the most important feature of UFFS is that it can boot up very fast.How fast is it ? Typically, mounting a full loaded 1Gb(with 8192 blocks, page size 512) NAND flash cost less than 1 seconds on ARM7 CPU.

Mounting a UFFS partition needs three steps:

* Step one: scan the NAND flash
On this step, UFFS will read the first page spare of every block, which tells the block attribute one of:
* Marked bad block
* Erased(free) block
* Dir block
* File block
* File data block

UFFS will build a in-memory tree during this step, every block will be classified into the hashed tree nodes.

When a file or file data block is scanned, it also need to read one (for full loaded file block) or all (for half-loaded file block) spares on this block to obtain the data length of this block.

It also search the tree nodes to find if the block is an unclean block (If the system is power off during writing to a block, then it could result two blocks having the same serial number, one of them is unclean block). If an unclean block is found, UFFS will check the timestamps and erase the unclean block.

TIME COST:
(reading 1 spare) x (total_blocks + total-file-data-blocks - 1) +
(readin <pages_per_block>g 1 to pages_per_blocks - 1 spare) x total-files + </pages_per_block>
(1 tree scan) x non-free-blocks +
(erasing block) x (0 or 1)


* Step two: randomize the start point of erased blocks list.

In order to implement ware-leveling across power recycle, UFFS randomly choose a start point for erased block list.
The time cost depends on the random number generation method, it should be very fast for most system.

* Step three: process the orphan nodes.

In this step, UFFS will scan the file data nodes in tree, find the orphan nodes(which can be produced when power lost in the middle of deleting/truncating a file) and erase it.

TIME COST: (1 tree scan) * file-data-blocks

* Summary:

The total time cost when mounting an UFFS partition is:

(reading 1 spare) x (total_blocks + total-file-data-blocks - 1) +
(readin <pages_per_block>g 1 to pages_per_blocks - 1 spare) x total-files + </pages_per_block>
(1 tree scan) x (non-free-blocks + file-data-blocks)

* For unclean power off, it may need to erase 1 block when mounting.
* The in-memory tree is a hash tree with key composed from serial number, so scan the tree with a given serial number is very fast.

分享到:
评论

相关推荐

    uffs移植.rar

    基于正点原子F429开发板,移植了uffs文件系统,进行了简单的文件读写测试,暂未发现问题。 uffs是专用于nandflash操作的文件系统。

    uffs文件系统源码

    uffs,一个开源、高效的nandflash文件系统,和yaffs2不相上下。占用内存少,速度快,免费。

    uffs 1.3.3 嵌入式文件系统

    嵌入式文件系统,很不错的 ● Ultra low cost – Low memory cost – Fast booting ● Superb Stability – Guaranteed integrity across unexpected power losses – Bad block tolerant, ECC and ware leveling ...

    UFFS

    UFFS

    uffs 1.3.5

    嵌入式文件系统,很不错的 ● Ultra low cost – Low memory cost – Fast booting ● Superb Stability – Guaranteed integrity across unexpected power losses – Bad block tolerant, ECC and ware leveling ...

    uffs_prog1

    uffs_prog1

    UFFS-开源

    UFFS:超低成本闪存文件系统,设计用于嵌入式系统中的NAND闪存。 对于1Gb(第512页)/ 4Gb(第2K页)NAND闪存,UFFS通常消耗的内存少于200K。 它支持直接闪存接口,可以在有或没有OS的情况下使用。

    1.6 深入理解嵌入式C(未学汇编,自学).ppt

    在实际的工作中,C、C++密不可分,做我们嵌入式方面的,当然更多的是C,但,有时候却少不了C++,而且是C、C++混搭(混合编程)在一起的,比如,RTP视频传输,live555多媒体播放等都是C++下的,他需要调用JRTPLIB库,...

    YAFFS 嵌入式文件系统

    YAFFS 嵌入式文件系统 YAFFS 嵌入式文件系统

    cc.uffs.edu.br:ChapecóSC联邦大学分校的官方网站

    Site do curso deCiênciadaComputação(UFFS) 爱喜repositóriocontémØ网站做CURSO德哒,disponívelEM 。 在阿鲁诺斯州的阿努诺斯州立大学网站,教授和TAE。 Sinta-se convidado(a)是melhoramento desse...

    Materias-UFFS:课程的所有内容,您可以在这里找到

    材料UFFS 欢迎使用Materias UFFS存储库,这只是一个学期的开始... :smiling_face_with_sunglasses: 成为这个平台的贡献者! 您来自UFFS的计算机科学课程吗? 大一新生? 我们分为以下几组: 面子书: : ...

    Ryze:UFFS项目的跨学科交叉计划

    里兹 跨学科项目计划书 O seguinte projeto包括不受欢迎的taarefcaçãode tarefas和pomodoro的一部分 弗朗西拉联邦大学 UFFS

    app-cc:供UFFS计算机科学课程的学生,教师和技术人员使用的移动应用程序

    CCUFFS申请项目该存储库包含移动应用程序的代码,供Chapecó/ SC UFFS计算机科学课程的学生,教师和技术人员使用。 有关应用程序的预期功能和开发计划草案,请参阅ROADMAP文件。 重要提示:在开始开发新功能之前,请...

    编译yaffs文件系统yaffs工具包

    有时yaffs工具没选对,做出来的系统镜像没法使用

    uffs-sga-scraping:系统以自动方式从协调员门户收集数据

    标题 在此处放入项目描述。 此说明的长度通常为两到三行。 它应该概述项目是什么,例如:使用的技术,存在的哲学,您要解决的问题等等。 如果您需要编写三行以上的描述,请创建小节。 重要说明:如果适用,在此处...

    dados-uffs:来自Fronteira Sul联邦大学的开放数据的存储库,网址为https

    标题 在此处放入项目描述。 此说明的长度通常为两到三行。 它应该概述项目是什么,例如:使用的技术,存在的哲学,一个人要解决的问题等等。 如果您需要编写三行以上的描述,请创建小节。 重要说明:如果适用,在...

    文件系统c++源码

    仿Linux文件系统 c++源码 支持多用户多目录 支持虚拟内存分配

    CCGIRLS.github.io:CC GIRLS UFFS研究小组的官方网站:woman_technologist::rocket:

    Create React App入门 该项目是通过引导的。 可用脚本 在项目目录中,可以运行: yarn start 在开发模式下运行应用程序。 打开在浏览器中查看它。 如果您进行编辑,则页面将重新加载。 您还将在控制台中看到任何...

    Horario:UFC,ChapecóSC的组织机构的最高荣誉

    Chapecó/ SC的UFFS商店中的最高荣誉组织机构奖。 。 Estrutura do dados 教授 正如情报局教授的说法,没有任何争议./data/members.json 。 解释和说明: { "fernando.bevilacqua" : { "name" : "Fernando ...

    论文研究 - 杂草干扰Erva-Mate的形态生理和营养特性(

    该实验以随机块设计安装在巴西弗龙特拉南联邦大学(UFFS)温室的温室中,采用随机块设计,以4×6析因方案布置,重复四次。 在A因子中,分配了杂草物种(Urochloa plantaginea-Alexandergrass,Bidens pilosa-Hairy ...

Global site tag (gtag.js) - Google Analytics