Web信息抽取系統(tǒng)的設計與實現(xiàn) - TAMU Computer Science Faculty_第1頁
Web信息抽取系統(tǒng)的設計與實現(xiàn) - TAMU Computer Science Faculty_第2頁
Web信息抽取系統(tǒng)的設計與實現(xiàn) - TAMU Computer Science Faculty_第3頁
Web信息抽取系統(tǒng)的設計與實現(xiàn) - TAMU Computer Science Faculty_第4頁
Web信息抽取系統(tǒng)的設計與實現(xiàn) - TAMU Computer Science Faculty_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費閱讀

付費下載

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、ELF: An Efficient Log-Structured Flash File System For Micro Sensor NodesBy Hui Dai, Michael Neufeld, Richard HanTalk given by Mingqu YueOutlineBackgroundsDesign OverviewImplementationData structuresFile operationsGarbage collectionCrash recoveryPerformance EvaluationDesign OverviewDesign Objectives

2、Characteristics of data that are expected to handlePersistent storage attributes on sensor nodesLog-Structured File System Techniques in ELFELF Architecture OverviewObjectivesTo provide a practical, efficient and reliable file system for micro sensor nodes that employ flash memory for persistent sto

3、rage.Characteristics of data that are expected to handleSensor dataThe majority of the dataWritten sequentially (append)Configuration dataWill experience modification and updates Demands higher level of reliabilityBinary program imageRequires the highest level of reliabilityPersistent Storage attrib

4、utes on Sensor Nodes Two kinds of persistent storage mediums are used in sensor nodesFlash memory - storing sensor data, metadata and etc.EEPROM storing the directory structure and crash recovery dataLog-Structured File System Techniques in ELFTraditional LFS:creates a new sequential log entry for e

5、ach write operationVery good wear leveling many small appends will rapidly make memory representation grow to unwieldy size.LFS Techniques in ELFWrite-Append operations: utilize an existing log entry on a flash page if one is availableFor reliability considerations, ELF keeps each log entry on a sep

6、arate flash pageWrite-Modify operations: modifications will be written to a new page and a log entry is created.Other standard file operations, not sophisticatedELF Architecture OverviewResource Abstraction: in-memory representations of open files, cleaning policy and other configuration dataGeneral

7、 File Operations: logical abstraction of all file/directory operations.ELF Maintenance Tasks: maintaining a snapshot of directory structure and file metadata in EEPROM, garbage collection task. ImplementationOn-Flash Data StructuresIn-Memory Data StructuresIn-EEPROM Data Structures and Related Opera

8、tionsFile Operations in ELFResource Management and Garbage CollectionCrash RecoveryOn-Flash Data StructuresPhysical NodesThe log in ELF consists of a sequence of physical nodes.ELF_DIR: a directory entryELF_FILE: metadata, file content.ELF_COMMON: a write modification, a deletion operation, or a ren

9、aming operation Each flash page contains at most one physical node PerMetadataIn-Memory Data StructuresFile AbstractionStores the metadata of the fileSuch as the length of the file, number of opened handles, and a pointer to the list of physical node abstractions.Node AbstractionEach physical node o

10、f the file on flash has a corresponding abstraction in RAM.Only contains the necessary summary information of the physical nodeIn-EEPROM Data StructuresELF caches its directory in EEPROM for access to filesAlso stores a snapshot of the system in EEPROMFast startup and crash recoveryFile Operations i

11、n ELFOpen file “foo”Examine whether “foo”s file abstraction is in RAMCreate fileAllocate a free flash pageCreate a physical nodeCreate file abstraction and physical node abstraction in RAMAssigning a file descriptor to the applicationFile Operations in ELFAppendPolicy: delaying updates to a files ph

12、ysical node on the flash given a sequence of appendsFile Operations in ELFWrite(modify)Allocates a new flash page and created a new physical nodeCreates the corres- ponding new node abstraction in RAM and appends it to the node abstraction listFile Operations in ELFRead/SeekUses two pointers to read

13、If the log is long, then the performance of the read operation will degrade.File Operations in ELFRenameRenaming a fileCreating a new physical node and corresponding node abstractionRenaming a directoryA new directory node is allocatedAll data structures within the old directory node are copied to t

14、he new nodeFile Operations in ELFDeletionAdding a physical node to indicate the delete statusThe allocated space will be reclaimed during garbage collectionResource Management and Garbage CollectionResource ManagementTraditional approach: block listELF approach: bitmapImproved approach: the newly al

15、located blocks are combined with existing blocks if possible Resource Management and Garbage CollectionGarbage CollectionThe number of free pages is trackedThe cleaner reclaims the pages occupied by deleted, renamed or obsolete files.If the space is still not enough, de-fragmenting file to reclaim m

16、ore pagesRAM consumption is fairly low: 10bytes without defragmentation and fewer than 40 bytes with it.Crash RecoveryCheckpoints only store the status of a file. It is not enough, so we need tracking the current operation and a list of past operations (snapshot) When the system crashes, ELF compare

17、s the last finished action and the current action, if they match and CRC checksum is correct, then the file will be confirmed. Otherwise, roll back.Performance Evaluation (compared with Matchbox)Sequential Read PerformanceSequential Write PerformanceRandom Read PerformanceRandom Write PerformanceWea

18、r Levelling PerformanceEnergy ConsumptionSequential Read PerformanceFirst filled the entire memory with a 500 KB log file and the performed sequential readsSequential Write Performance Appending 16 bytes of sensor data to the file in each write until the whole flash is consumedSequential Write Memory ConsumptionSequential Write ThroughputRandom Read

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論