CSE 3320 Operating Systems Computer and Operating Systems Overview Jia Rao

Similar documents
CS4500/5500 Operating Systems Computer and Operating Systems Overview

Operating systems. Module 15 kernel I/O subsystem. Tami Sorgente 1

Memory Hierarchy. Goal of a memory hierarchy. Typical numbers. Processor-Memory Performance Gap. Principle of locality. Caches

ARM Programmer s Model

It has hardware. It has application software.

CSE 3320 Operating Systems Synchronization Jia Rao

CSE3320 Operating Systems Processes Jia Rao

Xilinx Answer Xilinx PCI Express DMA Drivers and Software Guide

NVIDIA S KEPLER ARCHITECTURE. Tony Chen 2015

Tekmos. TK68020 Microprocessor. Features. General Description. 9/03/14 1

Greg Dias, Alex Wilson. Fermi

Performance of VSA in VMware vsphere 5

Operating systems. Module 7 IPC (Interprocess communication) PART I. Tami Sorgente 1

Linking network nodes

CS4500/5500 Operating Systems Processes

ALU Design. ENG2410 Digital Design Datapath Design. Parts of CPU. Memory and I/O. Resources. Week #9 Topics. School of Engineering 1

Contents: Module. Objectives. Lesson 1: Lesson 2: appropriately. As benefit of good. with almost any planning. it places on the.

CSE 3320 Operating Systems Page Replacement Algorithms and Segmentation Jia Rao

CS4500/5500 Operating Systems Synchronization

NVIDIA Tesla K20X GPU Accelerator. Breton Minnehan, Beau Sattora

Implementation of Authentication Mechanism for a Virtual File System

B Tech Project First Stage Report on

UNIT-II INTRODUCTION TO EMBEDDED SYSTEMS

CS510 Concurrent Systems Class 1a. Linux Kernel Locking Techniques

Computer Organization and Architecture

CS4500/5500 Operating Systems Introduction

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Troubleshooting of network problems is find and solve with the help of hardware and software is called troubleshooting tools.

These tasks can now be performed by a special program called FTP clients.

CS4500/5500 Operating Systems Page Replacement Algorithms and Segmentation

3 AXIS STAGE CONTROLLER

Admin Report Kit for Exchange Server

Chapter 10: Information System Controls for System Reliability Part 3: Processing Integrity and Availability

Part II: 8086/8088 Hardware Specifications and Interfacing Dr. Mohammed Morsy

INVENTION DISCLOSURE

Table of Contents. WipeDrive Enterprise Logging, March Logging Settings... 3 Log Format Types Audit Log Destination Options...

IT103T Operating Systems [Onsite]

European Component Oriented Architecture (ECOA ) Collaboration Programme: Architecture Specification Part 3: Mechanisms

CS510 Concurrent Systems Class 2. A Lock-Free Multiprocessor OS Kernel

Ascii Art Capstone project in C

Quick Start Guide. Basic Concepts. DemoPad Designer - Quick Start Guide

MID-II Examinations April 2018 Course: B. Tech Branch:CSE Year: II. Date of Exam: AN Max.Marks 30 TIME :02:00PM TO 03:00 PM

CCNA 1 Chapter v5.1 Answers 100%

GPA: Plugin for OS Command With Solution Manager 7.1

SAP Business One Hardware Requirements Guide

McGill University School of Computer Science COMP-206. Software Systems. Due: September 29, 2008 on WEB CT at 23:55.

CIM System Virtualization Model

IMPORTING INFOSPHERE DATA ARCHITECT MODELS INFORMATION SERVER V8.7

Intro. to Computer Repair & Advanced Computer Repair

Course Name: VMware vsphere: Install, Configure, Manage [V6.5] Duration: 5 Days

DNS (Domain Name Service)

RTX includes new functionality, see the product Release Notes for a full list of new features.

History of Java. VM (Java Virtual Machine) What is JVM. What it does. 1. Brief history of Java 2. Java Version History

HP Server Virtualization Solution Planning & Design

Assignment #5: Rootkit. ECE 650 Fall 2018

NiceLabel LMS. Installation Guide for Single Server Deployment. Rev-1702 NiceLabel

VEE CompSC: Live Migration with Pass-through Devices ZHENHAO PAN &, YAOZU DONG *, YU CHEN &, LEI ZHANG &, ZHIJIAO ZHANG &,

Project 3 Specification FAT32 File System Utility

CSC IT practix Recommendations

Oracle Database 11g Replay: The In-built Recorder for Real Application Testing

Chapter 1. Microprocessor, Microcontroller and Programming Basics

Distributed Data Structures xfs: Serverless Network File System

European Component Oriented Architecture (ECOA ) Collaboration Programme: Architecture Specification Part 3: Mechanisms

Summary. Server environment: Subversion 1.4.6

CIS 118 Intro to LINUX Class Exercise Week 3. UNIX/LINUX filesystem (see Filesystem Hierarchy Standard): /

Type: System Enhancements ID Number: SE 93. Subject: Changes to Employee Address Screens. Date: June 29, 2012

The screenshots/advice are based on upgrading Controller 10.1 RTM to 10.1 IF6 on Win2003

IT Essentials (ITE v6.0) Chapter 5 Exam Answers 100% 2016

VIBRATION MONITORING NEAR FIELD VIBRATION MONITOR

The programming for this lab is done in Java and requires the use of Java datagrams.

Product Release Notes

Introduction. ENG2410 Digital Design Memory Systems. Resources. A Digital Computer System. Week #11 Topics. School of Engineering 1.

Understanding Active Directory Domain Services (AD DS) Functional Levels

Courseware Setup. Hardware Requirements. Software Requirements. Prerequisite Skills

RTXC Quadros Real-time Operating System Technical Summary Quadros Systems, Inc.

- Replacement of a single statement with a sequence of statements(promotes regularity)

Product Release Notes

OPERATING SYSTEMS B.TECH CSE III YEAR I SEMESTER (JNTUA-R13) Mrs. N.HEMALATHA ASST.PROFESSOR

Smart Arm Installation and Setup Guide

SafeDispatch SDR Gateway for MOTOROLA TETRA

softpanel generic installation and operation instructions for nanobox products

SW-G using new DryadLINQ(Argentia)

1 Getting and Extracting the Upgrader

Using SPLAY Tree s for state-full packet classification

Forcepoint UEBA Management of Personal Data

Customized RTU for Local and Remote Supervision

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Computer Organization and Architecture

Chapter 4 Threads. Process A. Thread2 Thread ID (TID) PC Register Set Stack. Code Section Data Section Open Files

USER MANUAL. RoomWizard Administrative Console

Operating Systems Notes

FIREWALL RULE SET OPTIMIZATION

CAMPBELL COUNTY GILLETTE, WYOMING

Infrastructure Series

Customer Information. Agilent 2100 Bioanalyzer System Startup Service G2949CA - Checklist

SMARTCAP FIRMWARE RELEASE NOTES

Computer Organization and Architecture

PAY EQUITY HEARINGS TRIBUNAL. Filing Guide. A Guide to Preparing and Filing Forms and Submissions with the Pay Equity Hearings Tribunal

70-413: Designing and Implementing a Server Infrastructure Course 01 - Server Infrastructure - Upgrade and Migration

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Transcription:

CSE 3320 Operating Systems Cmputer and Operating Systems Overview Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra

Overview Recap f last class What is an perating system? Functinalities f perating systems Types f perating systems Cmputer hardware review Operating system rganizatin

Cmputer Hardware Review Basic cmpnents f a simple persnal cmputer CPU: data prcessing Memry: vlatile data strage Disk: persistent data strage NIC: inter-machine cmmunicatin Bus: intra-machine cmmunicatin

Central Prcessing Unit (CPU) Cmpnents Arithmetic Lgic Unit (ALU) Cntrl Unit (CU) Clck rate The speed at which a CPU is running Data strage General-purpse registers: EAX, EBX Special-purpse registers: PC (EIP), SP, IR Parallelism Instructin-level parallelism Thread-level parallelism } Hyper-threading: duplicate units that stre architectural states } Replicated: registers. Partitined: ROB, lad buffer Shared: reservatin statin, caches

Multi-Cre Prcessrs Multiple CPUs n a single chip Scket C Cache FSB DRAM Cntrller Memry Nn-unifrm perfrmance A schematic view f Intel Cre 2

Multi-Cre Prcessrs: NUMA Lcal memry Intel Cre i7 Cre Memry Subsystem UnCre Memry Subsystem Shared LLC

Memry A typical memry hierarchy

Why Cache is imprtant? A larger size than registers A much faster speed than memry Cncurrent accesses t memry when cache misses ccur

Mre n CPU Cache Cache management When t put a new item int the cache. Which cache line t put the new item in. Which item t remve frm the cache when a slt is needed. Where t put a newly evicted item in the larger memry. When t write dirty item back t memry

Hard Disks Track Disk heads mve tgether Sectr A stack f platters, a surface with a magnetic cating Typical numbers (depending n the disk size): 500 t 2,000 tracks per surface 32 t 128 sectrs per track } A sectr is the smallest unit that can be read r written Originally, all tracks have the same number f sectrs: Cnstant bit density: recrd mre sectrs n the uter tracks

Magnetic Disk Characteristics Disk head: each side f a platter has separate disk head Read/write data is a three-stage prcess: Seek time: psitin the arm ver the prper track Rtatinal latency: wait fr the desired sectr t rtate under the read/write head Transfer time: transfer a blck f bits (sectr) under the read-write head Average seek time as reprted by the industry: Typically in the range f 8 ms t 15 ms (Sum f the time fr all pssible seek) / (ttal # f pssible seeks) Due t lcality f disk reference Lng seek time Only ne request at a time Thrughput is dependent n data size Actual average seek time may nly be 25% t 33% f the advertised number

CPU v.s. Hard Disks Similarity Time-sharing Differences (executin vehicle v.s. strage device) CPU } Cache reuse -> tempral lcality } Easy t switch between sharing parties -> fine grain, verhead sensitive } Usually multiple CPUs-> lad balancing } Multiple executin mdes -> energy saving Hard disks } Almst n data reuse, but faster t read adjacent data -> spatial lcality } Expensive t switch between sharing parties -> carse grain } Striping r replicatin required if using multiple disks -> crdinatin

Memry Management Multiprgramming Hw t prtect the prgrams frm ne anther and the kernel frm them all? Hw t handle relcatin? Virtual memry space/address à Physical memry space/address

I/O Devices Device cntrller T prvide a simple interface f device cntrl t OS Device driver The sftware that talks t a cntrller, giving it cmmands and accepting respnses OS Device driver registers Device cntrller

Interactins between OS and I/O Devices The OS gives cmmands t the I/O devices The I/O device ntifies the OS when the I/O device has cmpleted an peratin r has encuntered an errr Data is transferred between memry and an I/O device

Hw I/O Devices Ntify the OS? Plling The I/O device put infrmatin in a status register The OS peridically check the status register Interrupt Whenever an I/O device needs attentin frm the prcessr, it interrupts the prcessr frm what it is currently ding DMA Delegate I/O respnsibility frm CPU

Interrupts Interrupts An interruptin f the nrmal sequence f executin Imprves prcessing efficiency Allws the prcessr t execute ther instructins while an I/O peratin is in prgress A suspensin f a prcess caused by an event external t that prcess and perfrmed in such a way that the prcess can be resumed Types f interrupts I/O Prgram (exceptin) } arithmetic verflw } divisin by zer } reference utside user s memry space Timer, Hardware failure

I/O Interrupt (a) 1. CPU writes cmds in t device registers 2. The device signals interrupt cntrller 3. Interrupt cntrller infrms a CPU 4. The CPU accepts the interrupt and triggers the service rutine (b)

System Calls What is the key difference between interrupts and traps (system calls)? prgram-triggered vs. event-triggered synchrnus vs. asynchrnus There are 11 steps in making the system call read (fd, buffer, nbytes)

Operating System Cmpnents Prcess management Memry management File and strage Netwrking

Prcess Management Prcess: a fundamental OS cncept Memry address space Sme set f registers Prtectin dmain Resurce allcatin unit OS respnsibilities fr prcess management Prcess creatin and deletin Prcess scheduling, suspensin, and resumptin Inter-prcess cmmunicatin and synchrnizatin

Memry Management Memry A large array f addressable wrds and bytes OS respnsibilities fr memry management Allcate and de-allcate memry space Keep memry space efficiently utilized Keep track f which part f memry are used and by whm Design gals: transparency and efficiency

File and Strage Management A file is a cllectin f data (usually) stred n disk with a unique name Prgrams Data Devices (UNIX & Linux) OS respnsibilities fr file management Organize directries and files Map files nt disk OS respnsibilities fr disk management Disk space management Disk scheduling

Summary Cmputer hardware Time-sharing: CPU, disk Space-sharing: memry, disk OS cmpnents Prcess management Memry management File and strage management Additinal readings and practice Sectin 1.6 and try the fllwing Linux cmmands } Wh, uname, ls, cat, cp, rm, mv, cd, mkdir, tuch, chmd } Use man t see the manual f abve cmmends Write an C prgram with an utput t the screen } Strace trace.txt./your_prog } See the system calls triggered (execve, write, ) } http://unix.stackexchange.cm/questins/797/understanding-the-linux-kernel-surce Check the VMware tutrial n curse website