MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

More on File Management
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
Chap 2 System Structures.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
File Management Systems
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 13.
Introduction to Kernel
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 3 I/O Software CS 342 – Operating Systems Ibrahim Korpeoglu.
1 Input/Output Chapter 3 TOPICS Principles of I/O hardware Principles of I/O software I/O software layers Disks Clocks Reference: Operating Systems Design.
1 I/O Management in Representative Operating Systems.
MINIX Operating System Presented by: Pravendra Lohiya.
Operating System Organization
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
1 I/O and Filesystems. 2 How to provide interfaces Rough reading guide (no exam guarantee): Tanenbaum Ch. 5.1 – 5.5 & Silberschatz Ch. 13 & ,
Minix Jeff Ward, Robert Burghart, Jeb Collins, Joe Creech.
CS 6560 Operating System Design Lecture 13 Finish File Systems Block I/O Layer.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 8-1: I/O Management Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Sistem Operasi IKH311 Masukan Luaran (Input/Output)
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Chapter 5 File Management File System Implementation.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Files & File system. A Possible File System Layout Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
UNIX Unit 1- Architecture of Unix - By Pratima.
Linux File system Implementations
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
THE FILE SYSTEM Files long-term storage RAM short-term storage Programs, data, and text are all stored in files, which is stored on.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
1 UNIX – The Kernel. 2 UNIX Internals: Motivations Knowledge of UNIX Internals helps in: –understanding similar systems (for example, NT, LINUX) –designing.
Copyright © Curt Hill Operating Systems An Introductory Overview.
Bootable Programs Building an O/S. Basic Requirements of any O/S Respond to interrupts (all kinds) Preserve user environment Protect users and self from.
MINIX 3 – Introduction Béat Hirsbrunner Lecture 1, 18 September 2012 Main reference Andrew S. Tanenbaum, Albert S. Woodhull Operating Systems : Design.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
WORKING OF SCHEDULER IN OS
Introduction to Operating Systems Concepts
File-System Management
Introduction to Kernel
Chapter 11: File System Implementation
Avani R.Vasant V.V.P. Engineering College
Chapter 2: System Structures
KERNEL ARCHITECTURE.
CPSC 457 Operating Systems
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Operating Systems Chapter 5: Input/Output Management
CS703 - Advanced Operating Systems
Chapter 8: Memory management
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Chapter 2: Operating-System Structures
Modern PC operating systems
Chapter 2: Operating-System Structures
Mr. M. D. Jamadar Assistant Professor
Presentation transcript:

MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk

MINIX Presentation Summary Overview MINIX Trivia Processes Input/Output Memory Management File Systems

MINIX Overview “MINIX is a free UNIX clone that is available with all the source code. Due to its small size, microkernel-based design, and ample documentation, it is well suited to people who want to run a UNIX-like system on their personal computer and learn about how such systems work inside. It is quite feasible for a person unfamiliar with operating system internals to understand nearly the entire system with a few months of use and study. “

MINIX Overview (cont.) “MINIX has been written from scratch, and therefore does not contain any AT&T code- -not in the kernel, the compiler, the utilities, or the libraries. For this reason the complete source can be made available (by FTP or via the WWW).“

MINIX Trivia Written by Andrew S. Tanenbaum in 1987 Modeled after UNIX version 7 12,649 lines of code, with over 3,000 comments Written in C

Processes Overview –Processes fall into four different “layers” Process management I/O tasks Server Processes User Processes

Processes (cont.) Internal Structure of a process Process Control Block: –No data structure specifically called the “process control block” –The process control block is an entry in the process table

Processes (cont.) Process Management –Occurs in layer 1. –All processes are stored in a tree with the init process at the root

Processes (cont.) Inter-process Communication –Is handled by the kernel –A process sends a destination and a message to the kernel, which then copies the message to destination process –A process must be waiting for the message in order to recieve

Processes (cont.) Process Scheduling –Hybrid round-robin/priority scheduler –The system sets a time quantum for every process –There are three priority settings for every process

Input/Output Overview: Interrupt Handlers Device Drivers Device-Independent Software User-Level Software Deadlock Handling

I/O ReplyI/O Request User Processes Device-independent software Device drivers Interrupt handlers Hardware

Input/Output (cont.) Interrupt Handlers: –Eventually handled by coding stored in mpx88.s –Saves contents in the registers of the current process –Creates a message and calls the interrupt process –After checking for the ability to send the message, the message is sent to the accepting device

Input/Output (cont.) Device Drivers: Device Driver File SystemUser Process Processes

Input/Output (cont.) Device-Independent Software: –Uniform interfacing for the device drivers –Device naming –Device protection –Providing a device-independent block size –Buffering –Storage allocation on block devices –Error Reporting

Input/Output (cont.) User-Level Software: –Library procedures present –Ability to make system calls –Ability for conversions/formatting of text –No spooling/daemons present in the system

Input/Output (cont.) Deadlock Handling: –No dedicated I/O devices –Deadlocks occur only with implicitly shared resources –Deadlock is ignored

Memory Management Structure –Records holes –First Fit Reasoning –Structured for a personal computer –Able to port with other systems Memory Layout –Not located in Kernel Message Handling –Messaging system used to communicate between memory manager and kernel

File System Responsible for mapping logical file onto physical drive –Allocates space –Manages free space –Provides file protection Self contained C program Can be stored on any block device (floppy, hard drive, etc.) Can be used as a network file server

File System (Cont.) Accepts 29 different messages How it works –Loops, waiting for a message –Uses message type to index procedure in a table –Runs procedure –Returns a value indicating failure or success

File System (Cont.) The components (always present) –Boot block –Super-block –I-node bit map –Zone bit map –I-node –Block

File System (Cont.) … Boot block Super block I-node bit map Zone bit map I-nodes Data Block

File System (Cont.) Block –Manageable pieces of a file that may or may not be contiguous –Standard size is 1K –Synonymous with zone when both are the same size (standard is 1K for block and zone)

File System (Cont.) I-node –Each I-node is associated with a single file –Contains information about the file, such as owner, file size, and date modified –Stores the first 7 disk block numbers –Stores pointers to other blocks if there are more than 7 –With 1K blocks and 16-bit addresses, can store up to 64M

File System (Cont.) I-node (cont.) –Read into I-node table when a file is opened Only one I-node in the table, no matter how many instances of the file are open A counter in the table is used to keep track of how many instances of the file are opened Modifications are written to disk when the counter reaches 0

File System (Cont.) Boot block –Very first thing in file system –Read into memory when the computer is first booted –Present even if the device is not bootable

File System (Cont.) Super-block –Describes the layout and structure of the file system (number of I-nodes, max. file size, etc.) –On boot or mount, read into the super-block table Stores information not in the super-block, such as originating device

File System (Cont.) I-node / zone bit map –Read into memory on boot or mount –When a file is deleted, pointer array is used to find I-node in bit map, and bit is set to 1 –When a file is created, searches through bit map to find a free I-node –If no free I-nodes, a value of 0 is returned (I- node 0 is never used)

File System (Cont.) Directory structure –Root directory –Paths are looked up one directory at a time Protection – Read, write, and execute bits –Owner, owner’s group, and others

MINIX: Conclusion Multi-user, multi-tasking, single threaded Ignores deadlock 3 levels of I/O: interrupt handling, device drivers, device-independent software Memory managed in a sorted list of holes 6 parts of file system: boot block, super- block, I-node bit map, zone bit map, I- nodes, blocks