From last time. What is the maximum size of a file in bytes? What is the maximum total size of directories and files in a single disk partition?

Similar documents
Windows 7 Overview. Windows 7. Objectives. The History of Windows. CS140M Fall Lake 1

Windows History 2009 Windows 7 2

Module 23: Windows NT. Windows NT

Module 23: Windows NT

Module 21: Windows 2000

Module 21: Windows 2000

Module 22: Windows XP. Chapter 22: Windows XP. Objectives. Windows XP. History. Design Principles

Chapter 22: Windows XP

BASIC OPERATIONS. Managing System Resources

Unit OS2: Operating System Principles. Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze

CSE 4/521 Introduction to Operating Systems. Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018

Appendix C: Windows Operating System Concepts Essentials 8 th Edition

Windows File System. File allocation table (FAT) NTFS - New Technology File System. used in Windows 95, and MS-DOS

File System Concepts File Allocation Table (FAT) New Technology File System (NTFS) Extended File System (EXT) Master File Table (MFT)

COMP091 Operating Systems 1. File Systems

windows maurizio pizzonia roma tre university

Operating Systems (2INC0) 2018/19. Introduction (01) Dr. Tanir Ozcelebi. Courtesy of Prof. Dr. Johan Lukkien. System Architecture and Networking Group

CIS 21 Final Study Guide. Final covers ch. 1-20, except for 17. Need to know:

Ausgewählte Betriebssysteme - Mark Russinovich & David Solomon (used with permission of authors)

Input/Output Systems

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Embedded Linux Architecture

IT ESSENTIALS V. 4.1 Module 5 Fundamental Operating Systems

ECE 598 Advanced Operating Systems Lecture 14

2 nd Half. Memory management Disk management Network and Security Virtual machine

Advanced Operating Systems

Table 12.2 Information Elements of a File Directory

Operating Systems Overview. Chapter 2

For 100% Result Oriented IGNOU Coaching and Project Training Call CPD: ,

Case Study. Windows XP. Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze

Lecture 15: I/O Devices & Drivers

A+ Guide to Managing and Maintaining Your PC. How Hardware and Software Work Together

Outline. Threads. Single and Multithreaded Processes. Benefits of Threads. Eike Ritter 1. Modified: October 16, 2012

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Machine Language and System Programming

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

Operating Systems 2010/2011

T : Malware Analysis and Antivirus Technologies Windows Operating System

CS370 Operating Systems

Chapter Two File Systems. CIS 4000 Intro. to Forensic Computing David McDonald, Ph.D.

15: OS Scheduling and Buffering

Commercial Real-time Operating Systems An Introduction. Swaminathan Sivasubramanian Dependable Computing & Networking Laboratory

Device-Functionality Progression

Chapter 12: I/O Systems. I/O Hardware

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

Introduction. CS3026 Operating Systems Lecture 01

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Files. File Structure. File Systems. Structure Terms. File Management System. Chapter 12 File Management 12/6/2018

Operating System. Operating System Overview. Structure of a Computer System. Structure of a Computer System. Structure of a Computer System

File System Internals. Jo, Heeseung

A+ Guide to Managing and Maintaining your PC, 6e. Chapter 2 Introducing Operating Systems

Operating Systems. Week 9 Recitation: Exam 2 Preview Review of Exam 2, Spring Paul Krzyzanowski. Rutgers University.

COMPARATIVE STUDY OF TWO MODERN FILE SYSTEMS: NTFS AND HFS+

Chapter 13: I/O Systems

Module 12: I/O Systems

Boot Process in details for (X86) Computers

NTFS Recoverability. CS 537 Lecture 17 NTFS internals. NTFS On-Disk Structure

Explain briefly how starvation may occur in process scheduling. (2 marks)

Guide to Computer Forensics and Investigations Fourth Edition. Chapter 6 Working with Windows and DOS Systems

Agenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2

CS3600 SYSTEMS AND NETWORKS

CS2506 Quick Revision

Operating Systems. Lecture File system implementation. Master of Computer Science PUF - Hồ Chí Minh 2016/2017

Operating Systems. Operating Systems Professor Sina Meraji U of T

Chapter 4: Threads. Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples Windows XP Threads Linux Threads

Operating system security models

Chapter 13: I/O Systems

CS370 Operating Systems

This slide show uses materials from the Windows Operating System Internals Curriculum Development Kit

Chapter 1 Computer System Overview

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure

Lecture 19: File System Implementation. Mythili Vutukuru IIT Bombay

Backup, File Backup copies of individual files made in order to replace the original file(s) in case it is damaged or lost.

File Services. Chapter 5. Topics in this Chapter: Understanding Windows File Systems. Understanding Linux File Systems

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

Scheduling. CS 161: Lecture 4 2/9/17

ECE 598 Advanced Operating Systems Lecture 22

Main Points. File layout Directory layout

Operating Systems: Lecture 12. File-System Interface and Implementation

Operating Systems: Internals and Design Principles. Chapter 2 Operating System Overview Seventh Edition By William Stallings

Operating Systems 2010/2011


Course Description: This course includes the basic concepts of operating system

Chapter 13: I/O Systems

Windows Kernel Internals II Overview University of Tokyo July 2004*

Operating System Services

CHAPTER 3 - PROCESS CONCEPT

I/O Systems. 04/16/2007 CSCI 315 Operating Systems Design 1

Chapter 11: Implementing File Systems. Operating System Concepts 8 th Edition,

OS - Introduction Ezio Bartocci Institute for Computer Engineering

Computer Fundamentals : Pradeep K. Sinha& Priti Sinha

EECS 3221 Operating System Fundamentals

Preview. The Thread Model Motivation of Threads Benefits of Threads Implementation of Thread

EECS 3221 Operating System Fundamentals

Chapter 14 Operating Systems

Chapter 14 Operating Systems

Chapter 13: I/O Systems

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

FILE SYSTEMS, PART 2. CS124 Operating Systems Fall , Lecture 24

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023

Transcription:

OMP25111 Lecture 17 1/27 From last time A file system uses inodes which contain 8 block-numbers. These are for the first 7 blocks of the file and an indirect block, which just contains block-numbers for the remaining blocks in the file. A block-number occupies 2 bytes. Each block is 4k bytes. What is the maximum size of a file in bytes? What is the maximum total size of directories and files in a single disk partition?

OMP25111 Lecture 17 2/27 COMP25111: Operating Systems Lecture 17: Windows XP Case Study John Gurd School of Computer Science, University of Manchester Autumn 2015

OMP25111 Lecture 17 3/27 Overview & Learning Outcomes Background Components: layers & managers Scheduling Virtual Memory Input/Output File system

OMP25111 Lecture 17 Background 5/27 History & Motivation Early Windows systems (3.1, 95, 98) demonstrated the usefulness of a GUI-based OS designed for home use (not secure or multiprocessing) initially 16-bit Windows NT: designed as a commercial strength 32-bit system led to Windows 2000, XP, Vista, 7,...

OMP25111 Lecture 17 Background 6/27 Goals Portability: written in C and C++ (>29M lines Linux <2M + 1.5M for X windows) HAL (Hardware Abstraction Layer) = processor-dependent Extensibility: layered architecture; executive in kernel mode. Compatibility (Win16, Win32, POSIX, OS/2) DOS emulation in Virtual DOS machine Performance, Scalability, Multiprocessor support Reliability International support (Unicode etc.)

OMP25111 Lecture 17 Background 7/27 Unifying Themes For non-programmers Users (& programmers) see Windows as a single entity GUI built into OS Win32 API hides library/system split Object-Oriented Handles methods Registry

Structure (MOS fig 11.7) OMP25111 Lecture 17 Components: layers & managers 9/27

OMP25111 Lecture 17 Components: layers & managers 10/27 Architecture layered system of modules Protected mode: HAL: e.g. read/write device registers, interrupt handling so independent of bus; timers/clock kernel : thread scheduling, interrupt handling, low-level processor synchronisation, recovery after power failure, etc. executive: managers; system services distribute system calls to managers User mode: service processes environment subsystems (Win32, Posix, OS/2)

OMP25111 Lecture 17 Components: layers & managers 11/27 System services System call interface not publicly available Well defined Win32 API very large library of functions which hide system calls includes GUI (Unix: minimal set of system calls, all public)

OMP25111 Lecture 17 Components: layers & managers 12/27 Object manager object-oriented uses objects ( handles ) for all services & entities Objects: process, thread, section of memory, open file, comms port, semaphore, timer, registry key, device, driver,... Searchable directory Named objects can be shared, Unnamed objects are private to creating process Each object can have Access Control List (ACL)

COMP25111 Lecture 17 Components: layers & managers 14/27 Configuration manager Registry Hive = name of a registry database e.g. HKEY CURRENT USER (HKCU) Subkey/Key = sub/directory e.g. HKEY_CURRENT_USER\Control Panel\desktop entry = (name, type, data) i.e. value e.g. ScreenSaveTimeOut = 60 ScreenSaveUsePassword =dword:00000000 + replaces many scattered configuration files hard to copy, share, edit, back-up heavily used, single point of failure Integrity

OMP25111 Lecture 17 Components: layers & managers 16/27 Kernel scheduling Job Process Thread Fiber process owns resources threads scheduled by OS (system calls) fibers scheduled by library (outside OS) Also deals with pipes, sockets, rpc... semaphores... multi-core CPUs

OMP25111 Lecture 17 Components: layers & managers 17/27 Scheduling Pre-emptive Priorities (0:zero-pages, 1-15:user, 16-31:system) Selectable time quantum (e.g. 20ms) Dynamically change user priorities (initial-15 only): time quantum expired: 1 boost priority of threads released from I/O (e.g.+6 keyboard) extend quantum of foreground application starvation prevention (temporarily boost priority) find threads that haven t run in a while Cannot guarantee real-time deadlines

OMP25111 Lecture 17 Components: layers & managers 19/27 Memory Management assumes H/W support; based on Intel PC memory architecture 2 32 = 4GB address space; top half=os, bottom=user pages (e.g. 4kB); no segments, but 64kB boundaries top & bottom 64kB unused processes can share pages copy on write position independent code version of LRU keeps some pages free, so can always load new page dynamically calculated max working set size per process lots of heuristics and kludges can memory-map files

OMP25111 Lecture 17 Components: layers & managers 21/27 Input/Output Manager interrogates each slot of each bus at boot time (mostly) at any time (e.g. USB) Plug&Play device info where to find driver Drivers: I/O Request Packet (IRP) Object-based (list of methods): init, add device, interrupt, fast I/O, DMA, abandon... unplug configurable multi-processor safe Monolithic or stacked

OMP25111 Lecture 17 Components: layers & managers 23/27 NTFS clusters (blocks) e.g. 4KB File = set of attributes (byte streams max 2 64 B) Master File Table (MFT) = set of 1kb records 0-26: metadata (MFT, log, boot, rootdir, bitmap, ACL,...) MFT record = attributes, name, list of (block start & count) (if needed: list of overflow records) directory: data = list of (file-name, MFT record,...) (large directories use B+ trees) Integrity: updates within transactions, logging Compression & Encryption

OMP25111 Lecture 17 Components: layers & managers 24/27 Summary of key points Background Components: layers & managers Scheduling Virtual Memory Input/Output File system

Your Questions OMP25111 Lecture 17 Components: layers & managers 25/27

OMP25111 Lecture 17 Components: layers & managers 26/27 Glossary Hardware Abstraction Layer (HAL) DLL Win32 API Handle Registry Hive, Key Fiber NTFS Master File Table (MFT)

OMP25111 Lecture 17 Components: layers & managers 27/27 Reading newer OSC/J: Ch 22 older OSC/J: Ch 21 MOS: Ch 11