Seminar on Linux-based embedded systems

Slides:



Advertisements
Similar presentations
Higher Computing Computer Systems S. McCrossan Higher Grade Computing Studies 7. Systems Software 1 System Software This software is used to provide the.
Advertisements

04/21/2004CSCI 315 Operating Systems Design1 Disk Management.
Allocation Methods - Contiguous
File Systems Examples.
Memory CS423 Dick Steflik. DRAM Dynamic Random Access Memory  each data bit is stored in a separate capacitive element in the Integrated Circuit  Because.
1 Web Server Administration Chapter 3 Installing the Server.
Embedded Real-Time Systems Design Selecting memory.
Computer Forensics Principles and Practices by Volonino, Anzaldua, and Godwin Chapter 6: Operating Systems and Data Transmission Basics for Digital Investigations.
File System Variations and Software Caching May 19, 2000 Instructor: Gary Kimura.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC as a Linux Computer January.
File System. NET+OS 6 File System Architecture Design Goals File System Layer Design Storage Services Layer Design RAM Services Layer Design Flash Services.
11:15:01 Storage device. Computer memory Primary storage 11:15:01.
Chapter 3 Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
1 The Google File System Reporter: You-Wei Zhang.
Objectives Learn what a file system does
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Dr Damitha Karunaratna University of Colombo school of computing
BU01. Main tasks of Operating System  To hide HW specifics (abstract layer for programs)  Processes maintenance  Memory maintenance  Files maintenance.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Linux Operations and Administration Chapter Fourteen Planning for a Linux Installation.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
Advanced XIP Filing System
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
File Systems in Real-Time Embedded Applications March 4th Eric Julien Introduction to File Systems 1.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Processes and OS basics. RHS – SOC 2 OS Basics An Operating System (OS) is essentially an abstraction of a computer As a user or programmer, I do not.
Windows NTFS Introduction to Operating Systems: Module 15.
OSes: 11. FS Impl. 1 Operating Systems v Objectives –discuss file storage and access on secondary storage (a hard disk) Certificate Program in Software.
Chapter 5 File Management File System Implementation.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
Computer Systems Week 14: Memory Management Amanda Oddie.
IT320 OPERATING SYSTEM CONCEPTS Unit 7: File Management May 2012 Kaplan University 1.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
IT320 OPERATING SYSTEM CONCEPTS Unit 7: File Management July 2011 Kaplan University 1.
Linux file systems Name: Peijun Li Student ID: Prof. Morteza Anvari.
Introduction to Computer Special Thanks S.W.A.ShahNIST.
Chapter 2 Introduction to OS Chien-Chung Shen CIS/UD
Virtual Machines Mr. Monil Adhikari. Agenda Introduction Classes of Virtual Machines System Virtual Machines Process Virtual Machines.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
FILE SYSTEM IMPLEMENTATION 1. 2 File-System Structure File structure Logical storage unit Collection of related information File system resides on secondary.
MTD overview MTD subsystem (stands for Memory Technology Devices)
XIP – eXecute In Place Jiyong Park. 2 Contents Flash Memory How to Use Flash Memory Flash Translation Layers (Traditional) JFFS JFFS2 eXecute.
W4118 Operating Systems Instructor: Junfeng Yang.
Application-Managed Flash
1 Lesson 1 Computers and Computer Systems Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
OPERATING SYSTEMS DO YOU REQUIRE AN OPERATING SYSTEM IN YOUR SYSTEM?
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Linux Filesystem Administration
IMAGE COMPRESSION AND DECOMPRESSION USING ARM9 SYSTEM Under the guidance of Mrs. B. SATYA SRI DEVI,M.Tech, Assistant Professor By V. KUSUMA KUMARI Roll.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Block filesystems Michael.
Welcome to Intro to Operating Systems Course Website:
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Block filesystems Michael.
Introduction to Operating Systems Concepts
Computer Organisation
Internal Parallelism of Flash Memory-Based Solid-State Drives
Installing OS.
Chapter 12: File System Implementation
I/O Resource Management: Software
Unit OS8: File System 8.6. Quiz
Introduction to Computers
OS Virtualization.
Virtualization Techniques
Lecture 11: Flash Memory and File System Abstraction
Introduction to Operating Systems
Presentation transcript:

Seminar on Linux-based embedded systems Root File system for Raspberry Pi Aalto University 13th Dec 2013 Presenter: Bastian Arjun Shajit (338303)

Agenda Introduction Types of File system Selecting a Root file system Performance Comparison Summary

What is a File system ? Gargantuan amount of data stored as 1s and 0s on storage media (conceivable by machine) Impossible to understand files/folders from the sea of binary data. File system was designed as a novel way to organize such data easily understandable by all users.

Definition It can refer to The abstract structure in which files are named and logically stored in a storage media (RFS) eg. In any *NIX distribution, (or) The software which provides the core support for implementing the abstraction defined above in the operating system/kernel. Root/Top level Directory / bin dev home etc lib . . . . . . . . . . . . . .

Agenda Introduction Types of File system Selecting a Root file system Performance Comparison Summary

Block-device File Systems Considers storage device as a simple linear collection of blocks or sectors. Size of blocks vary (512, 1024 …) Have two main operation : Read & Write Type of Devices: LBA devices (HDDs) FTL devices (USB flash drive, SD, SSDs etc). In case of bad blocks, the FTL or hardware (for LBA devices) takes care of hiding from user. File system drivers : ext2, ext3, ext4, FAT, NTFS, ReiserFS etc.

Flash File Systems Mainly used on Raw Flash Devices Linux provides MTD as a primitive translation Layer. How are they Different? They are not block devices Mostly raw NAND / NOR storage media. They consist of ERASEBLOCKS Have 3 main operation : Read, Write & Erase Eraseblock Each block has limited lifespan (1000s of write cycles) Needs write to be spread.

Flash File Systems II FTL devices Vs Raw Flash device FTL devices has a micro-controller which runs FTL firmware. Helps to emulate a block device. Why FFS is unique? Needs to spread write Perform Garbage collection Bad blocks handling Better reliability compared to FTL (Since FTL is vendor specific) E.g. UBIFS, JFFS2 etc.

In-Memory File system Uses primary memory e.g. RAM Features: Has higher I/O performance Volatile Memory E.g, ramfs, tmpfs, ramdisk. Why not ramdisk? It emulates block device in RAM. Block device store recently accessed files in caches. Hence using ramdisk creates a large memory foot print Hard limit on max size of ram disk.

User Space File system Mainly intended for block devices. Resides in the user space. Overhead of communicating to and from kernel and User space. Distinct Advantage: A bad user space file-system can never cause a system crash. E.g. ntfs-3g

Compressed Read-only File systems Data Stored in compressed format. Especially useful in low memory systems E.g. Cramfs: Metadata not stored (No time stamps or user permissions) Possible security issues. Max file system size = 256 MB Squashfs stores metadata information. Max filesystem size = 2^64.

Linux Virtual File system Role of VFS: Register/de-register Associate devices and file system drivers. Generic File operations Caching Look ups Forward File-system specific operation: Read Write etc

Agenda Introduction Types of File system Selecting a Root file system Performance Comparison Summary

Selecting a root file-system Based on the type of device Is it Raw flash, RAM or block device Based on available system resource. Based on the type of I/O on the device If Read-only, then handle partitions required by kernel for write. Based on the data volatility To persist data or not. Based on data usage and demand.

Bare minimal Root Filesystem Created a bare minimal root filesystem using buildroot for RPi. Refer buildroot manual for instructions, http://buildroot.uclibc.org/downloads/manual/manual.html Includes basic utilities. Saves disc space. Following figure represents the size of rootfs obtained from buildroot. Type Raw Root Filesystem (MB) With Kernel Libraries (MB) Bare Minimal 4.97 5.32 With Essential Utils 20.65 32.33 Raspbian 1624.89 1641.1

Agenda Introduction Types of File system Selecting a Root file system Performance Comparison Summary

Experiment Aims at providing a new perspective on how to choose file system based on performance. Comparison between ramfs vs ntfs-3g vs ext2 Moved root file-system across different storage media to analyze performance. Performance aspects considered: I/O speed CPU usage.

Performance Benchmark I

Performance Benchmark II

Agenda Introduction Types of File system Selecting a Root file system Performance Comparison Summary

Summary Successfully created a bare minimal and fully loaded root file system. There isn’t “One file system to rule them all”. Varying requirement give rise to numerous possibilities and a mix & match of different file systems can perhaps solve the need of the hour. Many file systems were not analyzed Raw flash device unavailability to test flash file systems. Failed experiments with squashfs. Out of scope file-systems like msdos, nfs, smbfs, cifs.

Thank you !!!