SlideShare a Scribd company logo
DESIGN A I/ODESIGN A I/O
SYSTEMSYSTEM
INTRODUCTION
 Major components of computer
 I/O devices can be characterized by
 Behavior: input, output, storage
 Partner: human or machine
 Data rate: bytes/sec, transfers/sec
 I/O bus connections
I/O SYSTEM CHARACTERISTICS
AND ISSUES
 Dependability is important
 Particularly for storage devices
 Performance measures
 Latency (response time)
 Throughput (bandwidth)
 Desktops & embedded systems
 Mainly interested in response time & diversity of devices
 Servers
 Mainly interested in throughput & expandability of devices
 I/O System Design Issues
 Performance
 Expandability
 Resilience in the face of failure
DISK STORAGE
 Nonvolatile, rotating magnetic storage
 Shift in focus from computation to communication and storage of information
 E.g., Cray Research/Thinking Machines vs. Google/Yahoo
 Disk I/O performance
• Disk Access Time = Seek time + Rotational Latency + Transfer time + Controller
Time + Queuing Delay
DISK ACCESS AND SECTOR
 Each sector records
 Sector ID
 Data (512 bytes, 4096 bytes proposed)
 Error correcting code (ECC)
 Used to hide defects and recording errors
 Synchronization fields and gaps
 Access to a sector involves
 Queuing delay if other accesses are pending
 Seek: move the heads
 Rotational latency
 Data transfer
 Controller overhead
DISK PERFORMANCE ISSUES
 Manufacturers quote average seek time
 Based on all possible seeks
 Locality and OS scheduling lead to smaller actual average seek times
 Smart disk controller allocate physical sectors on disk
 Present logical sector interface to host
 SCSI, ATA, SATA
 Disk drives include caches
 Prefetching sectors in anticipation of access
 Avoid seek and rotational delay
INTERCONNECTING
COMPONENTS
 Need interconnections between
 CPU, memory, I/O controllers
 Bus: shared communication channel
 Parallel set of wires for data and synchronization of data transfer
 Can become a bottleneck
 Performance limited by physical factors
 Wire length, number of connections
 More recent alternative: high-speed serial connections with switches
 Like networks
BUS TYPES
 A bus is a shared communication link (a single set of wires used to connect
multiple subsystems) that needs to support a range of devices with widely varying
latencies and data transfer rates
 Processor-Memory buses
 Short, high speed
 Design is matched to memory organization
 I/O buses
 Longer, allowing multiple connections
 Specified by standards for interoperability
 Connect to processor-memory bus through a bridge
BUS SIGNALS AND
SYNCHRONIZATION
 Data lines
 Carry address and data
 Multiplexed or separate
 Control lines
 Indicate data type, synchronize transactions
 Synchronous
 Uses a bus clock
 Asynchronous
 Uses request/acknowledge control lines for handshaking
I/O MANAGEMENT
 I/O is mediated by the OS
 Multiple programs share I/O resources
 Need protection and scheduling
 I/O causes asynchronous interrupts
 Same mechanism as exceptions
 I/O programming is fiddly
 OS provides abstractions to programs
I/O COMMANDS
 I/O devices are managed by I/O controller hardware
 Transfers data to/from device
 Synchronizes operations with software
 Command registers
 Cause device to do something
 Status registers
 Indicate what the device is doing and occurrence of errors
 Data registers
 Write: transfer data to a device
 Read: transfer data from a device
I/O REGISTER MAPPING
 Memory mapped I/O
 Registers are addressed in same space as memory
 Address decoder distinguishes between them
 OS uses address translation mechanism to make them only accessible to kernel
 I/O instructions
 Separate instructions to access I/O registers
 Can only be executed in kernel mode
 Example: x86
POLLING
 Periodically check I/O status register
 If device ready, do operation
 If error, take action
 Common in small or low-performance real-time embedded systems
 Predictable timing
 Low hardware cost
 In other systems, wastes CPU time
INTERRUPTS
 When a device is ready or error occurs
 Controller interrupts CPU
 Interrupt is like an exception
 But not synchronized to instruction execution
 Can invoke handler between instructions
 Cause information often identifies the interrupting device
 Priority interrupts
 Devices needing more urgent attention get higher priority
 Can interrupt handler for a lower priority interrupt
I/O DATA TRANSFER
 Polling and interrupt-driven I/O
 CPU transfers data between memory and I/O data registers
 Time consuming for high-speed devices
 Direct memory access (DMA)
 OS provides starting address in memory
 I/O controller transfers to/from memory autonomously
 Controller interrupts on completion or error
DMA AND CACHE INTERACTION
 If DMA writes to a memory block that is cached
 Cached copy becomes stale
 If write-back cache has dirty block, and DMA reads memory block
 Reads stale data
 Need to ensure cache coherence
 Flush blocks from cache if they will be used for DMA
 Or use non-cacheable memory locations for I/O
TRANSACTION PROCESSING
BENCHMARKS
 Transactions
 Small data accesses to a DBMS
 Interested in I/O rate, not data rate
 Measure throughput
 Subject to response time limits and failure handling
 ACID (Atomicity, Consistency, Isolation, Durability)
 Overall cost per transaction
 Transaction Processing Council (TPC) benchmarks (www.tcp.org)
 TPC-APP: B2B application server and web services
 TCP-C: on-line order entry environment
 TCP-E: on-line transaction processing for brokerage firm
 TPC-H: decision support — business oriented ad-hoc queries
FILE SYSTEM & WEB
BENCHMARKS
 SPEC System File System (SFS)
 Synthetic workload for NFS server, based on monitoring real systems
 Results
 Throughput (operations/sec)
 Response time (average ms/operation)
 SPEC Web Server benchmark
 Measures simultaneous user sessions, subject to required throughput/session
 Three workloads: Banking, Ecommerce, and Support
I/O SYSTEM DESIGN
 Satisfying latency requirements
 For time-critical operations
 If system is unloaded
 Add up latency of components
 Maximizing throughput
 Find “weakest link” (lowest-bandwidth component)
 Configure to operate at its maximum bandwidth
 Balance remaining components in the system
 If system is loaded, simple analysis is insufficient
 Need to use queuing models or simulation
Rack-Mounted Servers
Sun Fire x4150 1U server
I/O System Design Example
 Given a Sun Fire x4150 system with
 Workload: 64KB disk reads
 Each I/O op requires 200,000 user-code instructions and 100,000 OS instructions
 Each CPU: 109 instructions/sec
 FSB: 10.6 GB/sec peak
 DRAM DDR2 667MHz: 5.336 GB/sec
 PCI-E 8× bus: 8 × 250MB/sec = 2GB/sec
 Disks: 15,000 rpm, 2.9ms avg. seek time, 112MB/sec transfer rate
 What I/O rate can be sustained?
 For random reads, and for sequential read
Design Example (cont.)
Design Example (cont.)
Pitfall: Offloading to I/O Processors
 Overhead of managing I/O processor request may dominate
 Quicker to do small operation on the CPU
 But I/O architecture may prevent that
 I/O processor may be slower
 Since it’s supposed to be simpler
 Making it faster makes it into a major system component
 Might need its own coprocessors!
CONCLUSION
 BASICS OF I/O SYSTEM
 I/O CHARACTERISTICS
 DISK
 I/O MANAGEMENT
 I/O DATATYPES
 I/O REGISTERS
 I/O DESIGN
 PITFALL: OFFLOADING TO I/O PROCESSOR

More Related Content

What's hot

Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
Ankush Srivastava
 
Dma
DmaDma
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
Arpan Baishya
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
Gaditek
 
File system implementation
File system implementationFile system implementation
File system implementation
Rotract CLUB of BSAU
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
Rajapriya82
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
Hetauda City College
 
Multiprocessor structures
Multiprocessor structuresMultiprocessor structures
Multiprocessor structures
Shareb Ismaeel
 
Major Function of i/o module
Major Function of i/o moduleMajor Function of i/o module
Major Function of i/o module
Delowar Hossain
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
DeepikaT13
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
Slideshare
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
Kumar Pritam
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
Er Sangita Vishwakarma
 
Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
 
Dma transfer
Dma transferDma transfer
Dma transfer
gmnithya
 
GPU Architecture NVIDIA (GTX GeForce 480)
GPU Architecture NVIDIA (GTX GeForce 480)GPU Architecture NVIDIA (GTX GeForce 480)
GPU Architecture NVIDIA (GTX GeForce 480)
Fatima Qayyum
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
Digvijay Singh Karakoti
 

What's hot (20)

Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
 
Dma
DmaDma
Dma
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
File system implementation
File system implementationFile system implementation
File system implementation
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Multiprocessor structures
Multiprocessor structuresMultiprocessor structures
Multiprocessor structures
 
Major Function of i/o module
Major Function of i/o moduleMajor Function of i/o module
Major Function of i/o module
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Interrupts
InterruptsInterrupts
Interrupts
 
Dma transfer
Dma transferDma transfer
Dma transfer
 
GPU Architecture NVIDIA (GTX GeForce 480)
GPU Architecture NVIDIA (GTX GeForce 480)GPU Architecture NVIDIA (GTX GeForce 480)
GPU Architecture NVIDIA (GTX GeForce 480)
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 

Viewers also liked

Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
chidabdu
 
Sun fire x4140, x4240, x4440 server customer presentation
Sun fire x4140, x4240, x4440 server customer presentationSun fire x4140, x4240, x4440 server customer presentation
Sun fire x4140, x4240, x4440 server customer presentation
xKinAnx
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
Datamining Tools
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
DataminingTools Inc
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
Mukesh Tekwani
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
Mahesh Kumar Attri
 

Viewers also liked (6)

Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
Sun fire x4140, x4240, x4440 server customer presentation
Sun fire x4140, x4240, x4440 server customer presentationSun fire x4140, x4240, x4440 server customer presentation
Sun fire x4140, x4240, x4440 server customer presentation
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 

Similar to Design an I/O system

Io system
Io systemIo system
Io system
Hero Prabhu
 
Io system
Io systemIo system
Io system
malarselvi mms
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 
Os
OsOs
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
Jeanie Delos Arcos
 
ch1.ppt
ch1.pptch1.ppt
OSCh13
OSCh13OSCh13
Ch13 OS
Ch13 OSCh13 OS
Ch13 OS
C.U
 
OS_Ch13
OS_Ch13OS_Ch13
Chapter 6
Chapter 6Chapter 6
Chapter 6
Qiyo Jung
 
Chapter1
Chapter1Chapter1
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
Mujaheed Sulantingan
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
Mujaheed Sulantingan
 
Chapter01 new
Chapter01 newChapter01 new
Chapter01 new
vmummaneni
 
Chapter01 new
Chapter01 newChapter01 new
Chapter01 new
vmummaneni
 
OS Intro.ppt
OS Intro.pptOS Intro.ppt
OS Intro.ppt
ssuserd97416
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
JyoReddy9
 
Ch13
Ch13Ch13
17. Computer System Configuration And Methods
17. Computer System   Configuration And Methods17. Computer System   Configuration And Methods
17. Computer System Configuration And Methods
New Era University
 
Ch 3 95
Ch 3 95Ch 3 95
Ch 3 95
Jecka Cortez
 

Similar to Design an I/O system (20)

Io system
Io systemIo system
Io system
 
Io system
Io systemIo system
Io system
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
 
Os
OsOs
Os
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
OSCh13
OSCh13OSCh13
OSCh13
 
Ch13 OS
Ch13 OSCh13 OS
Ch13 OS
 
OS_Ch13
OS_Ch13OS_Ch13
OS_Ch13
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
Chapter1
Chapter1Chapter1
Chapter1
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Chapter01 new
Chapter01 newChapter01 new
Chapter01 new
 
Chapter01 new
Chapter01 newChapter01 new
Chapter01 new
 
OS Intro.ppt
OS Intro.pptOS Intro.ppt
OS Intro.ppt
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
 
Ch13
Ch13Ch13
Ch13
 
17. Computer System Configuration And Methods
17. Computer System   Configuration And Methods17. Computer System   Configuration And Methods
17. Computer System Configuration And Methods
 
Ch 3 95
Ch 3 95Ch 3 95
Ch 3 95
 

Recently uploaded

Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 

Design an I/O system

  • 1. DESIGN A I/ODESIGN A I/O SYSTEMSYSTEM
  • 2. INTRODUCTION  Major components of computer  I/O devices can be characterized by  Behavior: input, output, storage  Partner: human or machine  Data rate: bytes/sec, transfers/sec  I/O bus connections
  • 3. I/O SYSTEM CHARACTERISTICS AND ISSUES  Dependability is important  Particularly for storage devices  Performance measures  Latency (response time)  Throughput (bandwidth)  Desktops & embedded systems  Mainly interested in response time & diversity of devices  Servers  Mainly interested in throughput & expandability of devices  I/O System Design Issues  Performance  Expandability  Resilience in the face of failure
  • 4. DISK STORAGE  Nonvolatile, rotating magnetic storage  Shift in focus from computation to communication and storage of information  E.g., Cray Research/Thinking Machines vs. Google/Yahoo  Disk I/O performance • Disk Access Time = Seek time + Rotational Latency + Transfer time + Controller Time + Queuing Delay
  • 5. DISK ACCESS AND SECTOR  Each sector records  Sector ID  Data (512 bytes, 4096 bytes proposed)  Error correcting code (ECC)  Used to hide defects and recording errors  Synchronization fields and gaps  Access to a sector involves  Queuing delay if other accesses are pending  Seek: move the heads  Rotational latency  Data transfer  Controller overhead
  • 6. DISK PERFORMANCE ISSUES  Manufacturers quote average seek time  Based on all possible seeks  Locality and OS scheduling lead to smaller actual average seek times  Smart disk controller allocate physical sectors on disk  Present logical sector interface to host  SCSI, ATA, SATA  Disk drives include caches  Prefetching sectors in anticipation of access  Avoid seek and rotational delay
  • 7. INTERCONNECTING COMPONENTS  Need interconnections between  CPU, memory, I/O controllers  Bus: shared communication channel  Parallel set of wires for data and synchronization of data transfer  Can become a bottleneck  Performance limited by physical factors  Wire length, number of connections  More recent alternative: high-speed serial connections with switches  Like networks
  • 8. BUS TYPES  A bus is a shared communication link (a single set of wires used to connect multiple subsystems) that needs to support a range of devices with widely varying latencies and data transfer rates  Processor-Memory buses  Short, high speed  Design is matched to memory organization  I/O buses  Longer, allowing multiple connections  Specified by standards for interoperability  Connect to processor-memory bus through a bridge
  • 9. BUS SIGNALS AND SYNCHRONIZATION  Data lines  Carry address and data  Multiplexed or separate  Control lines  Indicate data type, synchronize transactions  Synchronous  Uses a bus clock  Asynchronous  Uses request/acknowledge control lines for handshaking
  • 10. I/O MANAGEMENT  I/O is mediated by the OS  Multiple programs share I/O resources  Need protection and scheduling  I/O causes asynchronous interrupts  Same mechanism as exceptions  I/O programming is fiddly  OS provides abstractions to programs
  • 11. I/O COMMANDS  I/O devices are managed by I/O controller hardware  Transfers data to/from device  Synchronizes operations with software  Command registers  Cause device to do something  Status registers  Indicate what the device is doing and occurrence of errors  Data registers  Write: transfer data to a device  Read: transfer data from a device
  • 12. I/O REGISTER MAPPING  Memory mapped I/O  Registers are addressed in same space as memory  Address decoder distinguishes between them  OS uses address translation mechanism to make them only accessible to kernel  I/O instructions  Separate instructions to access I/O registers  Can only be executed in kernel mode  Example: x86
  • 13. POLLING  Periodically check I/O status register  If device ready, do operation  If error, take action  Common in small or low-performance real-time embedded systems  Predictable timing  Low hardware cost  In other systems, wastes CPU time
  • 14. INTERRUPTS  When a device is ready or error occurs  Controller interrupts CPU  Interrupt is like an exception  But not synchronized to instruction execution  Can invoke handler between instructions  Cause information often identifies the interrupting device  Priority interrupts  Devices needing more urgent attention get higher priority  Can interrupt handler for a lower priority interrupt
  • 15. I/O DATA TRANSFER  Polling and interrupt-driven I/O  CPU transfers data between memory and I/O data registers  Time consuming for high-speed devices  Direct memory access (DMA)  OS provides starting address in memory  I/O controller transfers to/from memory autonomously  Controller interrupts on completion or error
  • 16. DMA AND CACHE INTERACTION  If DMA writes to a memory block that is cached  Cached copy becomes stale  If write-back cache has dirty block, and DMA reads memory block  Reads stale data  Need to ensure cache coherence  Flush blocks from cache if they will be used for DMA  Or use non-cacheable memory locations for I/O
  • 17. TRANSACTION PROCESSING BENCHMARKS  Transactions  Small data accesses to a DBMS  Interested in I/O rate, not data rate  Measure throughput  Subject to response time limits and failure handling  ACID (Atomicity, Consistency, Isolation, Durability)  Overall cost per transaction  Transaction Processing Council (TPC) benchmarks (www.tcp.org)  TPC-APP: B2B application server and web services  TCP-C: on-line order entry environment  TCP-E: on-line transaction processing for brokerage firm  TPC-H: decision support — business oriented ad-hoc queries
  • 18. FILE SYSTEM & WEB BENCHMARKS  SPEC System File System (SFS)  Synthetic workload for NFS server, based on monitoring real systems  Results  Throughput (operations/sec)  Response time (average ms/operation)  SPEC Web Server benchmark  Measures simultaneous user sessions, subject to required throughput/session  Three workloads: Banking, Ecommerce, and Support
  • 19. I/O SYSTEM DESIGN  Satisfying latency requirements  For time-critical operations  If system is unloaded  Add up latency of components  Maximizing throughput  Find “weakest link” (lowest-bandwidth component)  Configure to operate at its maximum bandwidth  Balance remaining components in the system  If system is loaded, simple analysis is insufficient  Need to use queuing models or simulation
  • 21. Sun Fire x4150 1U server
  • 22. I/O System Design Example  Given a Sun Fire x4150 system with  Workload: 64KB disk reads  Each I/O op requires 200,000 user-code instructions and 100,000 OS instructions  Each CPU: 109 instructions/sec  FSB: 10.6 GB/sec peak  DRAM DDR2 667MHz: 5.336 GB/sec  PCI-E 8× bus: 8 × 250MB/sec = 2GB/sec  Disks: 15,000 rpm, 2.9ms avg. seek time, 112MB/sec transfer rate  What I/O rate can be sustained?  For random reads, and for sequential read
  • 24.
  • 26. Pitfall: Offloading to I/O Processors  Overhead of managing I/O processor request may dominate  Quicker to do small operation on the CPU  But I/O architecture may prevent that  I/O processor may be slower  Since it’s supposed to be simpler  Making it faster makes it into a major system component  Might need its own coprocessors!
  • 27. CONCLUSION  BASICS OF I/O SYSTEM  I/O CHARACTERISTICS  DISK  I/O MANAGEMENT  I/O DATATYPES  I/O REGISTERS  I/O DESIGN  PITFALL: OFFLOADING TO I/O PROCESSOR