Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Sebastian Schildt, Wolf-Bastian Pöttner, Felix Büsching, Lars Wolf PWSN, Boston - May 23, 2013
RATFAT: ReAl-Time FAT for Cooperative Multitasking Environments in WSNs
RATFAT: ReAl-Time FAT for Cooperative Multitasking Environments in - - PowerPoint PPT Presentation
Platzhalter fr Bild, Bild auf Titelfolie hinter das Logo einsetzen RATFAT: ReAl-Time FAT for Cooperative Multitasking Environments in WSNs Sebastian Schildt, Wolf-Bastian Pttner, Felix Bsching, Lars Wolf PWSN, Boston - May 23, 2013 RAT +
Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Sebastian Schildt, Wolf-Bastian Pöttner, Felix Büsching, Lars Wolf PWSN, Boston - May 23, 2013
RATFAT: ReAl-Time FAT for Cooperative Multitasking Environments in WSNs
Wolf-Bastian Pöttner | RATFAT | Page 2 / 19
RAT + FAT?
http://crunchall.com/wp-content/ uploads/2013/03/podgana.jpg http://5plus2.info/images/article/ article_small_33.jpg
Wolf-Bastian Pöttner | RATFAT | Page 3 / 19
Motivation
We need a file system for WSN nodes that is “PC-compatible” and real-time capable!
SD Cards
Wolf-Bastian Pöttner | RATFAT | Page 4 / 19
State of the Art in WSN file systems
COFFEE in Contiki
FatFs + tinyFAT
Wolf-Bastian Pöttner | RATFAT | Page 5 / 19
State of the Art in WSN Operating Systems
TinyOS 2
Contiki
Wolf-Bastian Pöttner | RATFAT | Page 6 / 19
Organization of a FAT Volume
#1 #2
Master Boot Record File Allocation Tables Root Directory Cluster Clusters SD Card
Wolf-Bastian Pöttner | RATFAT | Page 7 / 19
RATFAT Features
Highlights
Limitations
Wolf-Bastian Pöttner | RATFAT | Page 8 / 19
RATFAT Architecture SPI Flash Driver SD Card driver Block IO Layer MBR Mgmt FAT16/32 Implementation Contiki CFS API FAT Extended API Application RT Management
Wolf-Bastian Pöttner | RATFAT | Page 9 / 19
RATFAT RT Overview
API
File System Process (FSP)
Wolf-Bastian Pöttner | RATFAT | Page 10 / 19
RATFAT RT Concept
RT Process
Sampling interval T Write request Write request
RATFAT non-RT RATFAT RT
reschedule FSP reschedule FSP Deadline Miss
Write request
Deadline Miss
Wolf-Bastian Pöttner | RATFAT | Page 11 / 19
Behavior of the file system process (FSP)
Wolf-Bastian Pöttner | RATFAT | Page 12 / 19
Evaluation Setup
INGA Sensor Node
2GB Transcend Micro SD Card
Micro SD Card Slot
Wolf-Bastian Pöttner | RATFAT | Page 13 / 19
Baseline: Writing n times 8 byte with COFFEE
2000 4000 6000 8000 10000 12000 14000 1000 2000 3000 4000 5000 6000 20000 40000 60000 80000 100000 120000 140000 time per write [ms] time cumulative [ms] n'th write Average write time Median write time Maximum write time : 21.5 ms : 19.1 ms : 5573.3 ms Writing time for 8 byte Cumulative writing time
Wolf-Bastian Pöttner | RATFAT | Page 14 / 19
Writing n times 8 byte with RATFAT (non-RT)
10 20 30 40 50 60 70 80 90 1000 2000 3000 4000 5000 6000 500 1000 1500 2000 2500 3000 3500 4000 4500 time per write [ms] time cumulative [ms] n'th write Average write time Median write time Maximum write time : 0.72 ms : 0.38 ms : 71.3ms Writing time for 8 byte Cumulative writing time
Wolf-Bastian Pöttner | RATFAT | Page 15 / 19
RATFAT RT Measurement Setup
RT Process
Sampling interval T Write request Write request
RATFAT non-RT RATFAT RT
reschedule FSP reschedule FSP Deadline Miss
Write request
Deadline Miss
Wolf-Bastian Pöttner | RATFAT | Page 16 / 19
Maximum Sampling rate with RATFAT RT and non-RT
1 2 3 4 5 10 20 30 40 50 60 70 80 missed deadlines sampling rate [Hz] RATFAT-no-rt RATFAT-rt
Wolf-Bastian Pöttner | RATFAT | Page 17 / 19
Comparison of COFFEE, RATFAT non-RT and RATFAT RT
2000 4000 6000 8000 10000 1000 2000 3000 4000 5000 6000 time cummulative [ms] n'th write COFFEE RATFAT-no-rt RATFAT-rt total RATFAT-rt queueing
Wolf-Bastian Pöttner | RATFAT | Page 18 / 19
Memory Footprint Comparision
2000 4000 6000 8000 10000 12000 14000 16000 18000 20000 COFFEE RATFAT non-RT RATFAT RT Bytes ROM (.text) RAM (.data & .bss)
INGA: 128kb ROM, 16kb RAM
Wolf-Bastian Pöttner | RATFAT | Page 19 / 19
Conclusion
Motivation
RATFAT
Results
Sebastian Schildt schildt@ibr.cs.tu-bs.de Wolf-Bastian Pöttner poettner@ibr.cs.tu-bs.de
Code: http://goo.gl/Ky1Ns
Wolf-Bastian Pöttner | RATFAT | Page 20 / 19
Maximum Sampling rate with RATFAT RT and non-RT
20 40 60 80 100 120 140 160 180 20 40 60 80 100 120 140 missed deadlines sampling rate [Hz] RATFAT-no-rt RATFAT-rt
Wolf-Bastian Pöttner | RATFAT | Page 21 / 19
RATFAT Memory Footprint
ROM (.text) RAM (.data & .bss) COFFEE 10,748 Bytes 233 Bytes RATFAT non-RT 14,772 Bytes 907 Bytes RATFAT RT 19,786 Bytes 1,556 Bytes INGA (Atmega 1284p) 128,000 Bytes 16,000 Bytes