Example: quiz answers

Input/Output and Storage Objectives Systems

1 Input/Output and Storage Input/Output and Storage SystemsSystemsyyCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 71 ObjectivesObjectivesUnderstand how I/O Systems work, including I/O methods and architecturesincluding I/O methods and familiar with Storage media, and the differences in their respective how RAID improves disk performance and familiar with the concepts of data dlblfCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 72compression and applications suitable for each type of compression IntroductionData Storage and retrieval is one of the primary functions of computer Systems primary functions of computer Systems .

Input/Output and Storage Systems -- Chapter 7 1 Objectives Understand how I/O systems work, including I/O methods and architectures. ... Most mass storage devices (disk and tape) CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- Chapter 7 23 are block I/O devices.

Tags:

  Devices, Chapter, Input, Storage, Output, Storage device, Input output and storage

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Input/Output and Storage Objectives Systems

1 1 Input/Output and Storage Input/Output and Storage SystemsSystemsyyCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 71 ObjectivesObjectivesUnderstand how I/O Systems work, including I/O methods and architecturesincluding I/O methods and familiar with Storage media, and the differences in their respective how RAID improves disk performance and familiar with the concepts of data dlblfCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 72compression and applications suitable for each type of compression IntroductionData Storage and retrieval is one of the primary functions of computer Systems primary functions of computer Systems .

2 One could easily make the argument that computers are more useful to us as data Storage and retrieval devices than they are as computational computers have I/O devices connected to them, and to achieve good performance I/O should be kept to a minimum!CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 73In studying I/O, we seek to understand the different types of I/O devices as well as how they I/O and I/O and PerformanceSluggish I/O throughput can have a ripple effect dragging down overall system effect, dragging down overall system is especially true when virtual memory is fastest processor in the world is of little use if it spends most of its time waiting for 2401 Comp.

3 Org. & Assembly Input/Output and Storage Systems -- chapter we really understand what s happening in a computer system we can make the best possible use of its Amdahl s Amdahl s LawThe overall performance of a system is a result of the interaction of all of its performance is most effectively improved when the performance of the most heavily used components is improved. This idea is quantified by Amdahl s Law:where CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 75 Sis the overall speedupfis the fraction of work performed by a faster component kis the speedup of a faster Amdahl s Amdahl s LawAmdahl s Law gives us a handy way to estimate the performance improvement we can expect when we performance improvement we can expect when we upgrade a system : On a large system, suppose we can upgrade a CPU to make it 50% faster for $10,000 or upgrade its disk drives for $7,000 to make them times faster (250% faster).

4 Processes spend 70% of their time running in the CPU and 30% of their time waiting for disk 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 76An upgrade of which component would offer the greater benefit for the lesser cost? Amdahl s Amdahl s LawThe processor option offers a 130% speedup:And the disk drive option gives a 122% speedup:CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 77 Each 1% of improvement for the processor costs $333, and for the disk a 1% improvement costs $ price/performance be your only concern? Should price/performance be your only concern? Amdahl s Amdahl s LawLaw2. (page 381) Suppose the daytime processing load consists of 60% CPU activity and 40% disk activity.

5 YyYour customers are complaining that the system is slow. After doing some research, you have learned that you can upgrade your disks for $8,000 to make them times as fast as they are currently. You have also learned that you can upgrade your CPU to make it as fast for $5, would you choose to yield the best performance improvement for the least amount of money? option would you choose if you don't care about the py ymoney, but want a faster system? is the break-even point for the upgrades? That is, what price would we need to charge for the CPU (or the disk change only one) so the result was the same cost per 1% increase for both?CS 2401 Comp. Org.

6 & Assembly Input/Output and Storage Systems -- chapter I/O I/O ArchitecturesWe define Input/Output as a subsystem of components that moves coded data between external components that moves coded data between external devices and a host system (CPU, main memory).I/O subsystems include:Blocks of main memory that are devoted to I/O that move data into and out of the system. Control modules in the host and in peripheral devicesInterfaces to external components such as keyboards CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 79 Interfaces to external components such as keyboards and or communications links between the host system and its Model I/O Model I/O ConfigurationCS 2401 Comp.

7 Org. & Assembly Input/Output and Storage Systems -- chapter I/O Control I/O Control MethodsI/O can be controlled in four general Programmed I/Oreserves a register for each I/O device. Each register is continually polled to detect data Interrupt-Driven I/Oallows the CPU to do other things until I/O is Direct Memory Access(DMA) offloads I/O processing to a specialpurpose chip that takes CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 711processing to a special-purpose chip that takes care of the Channel I/Ouses dedicated I/O Programmed (Polled) Programmed (Polled) I/OReserves a register for each I/O devicePolling-- CPU continually monitors each register waiting for gyggdataIf data ready condition is true, CPU processes the dataPros:We have programmatic control over the behavior of each I/O deviceAdjustments can be made to the number and types of devices , polling priorities and :Constant register polling -- CPU is in a busy wait state CS 2401 Comp.

8 Org. & Assembly Input/Output and Storage Systems -- chapter 712gpgyHow often to pollBest suited for special-purpose systemsAutomated teller machines and systemsMonitoring or control Interrupt--Driven I/ODriven I/OThis is an idealized I/O subsystem that uses device connects its interrupt line to the interrupt controller signals the CPU when any of theCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 713when any of the interrupt lines are Interrupt--Driven I/ODriven I/ORecall from chapter 4 that in a system that uses interrupts the status of the interrupt uses interrupts, the status of the interrupt signal is checked at the top of the fetch-decode-execute particular code that is executed whenever an interrupt occurs is determined by a set of addresses called interrupt vectors that are stored in low memoryCS 2401 Comp.

9 Org. & Assembly Input/Output and Storage Systems -- chapter 714vectors that are stored in low system state is saved before the interrupt service routine is executed and is restored Interrupt--Driven I/ODriven I/OI/O device send a request (interrupt) to CPU for servicingInterrupt flag a bit in the flag register to signal to CPUI nterrupt vectors service routinesService routines can be modifiedCS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 715 Service routines can be 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 716 The Fetch-Decode-Interrupt Cycle with Interrupt CheckingProcessing an Direct Memory Access (DMA) Direct Memory Access (DMA)Notice that the DMA and the CPU share and the CPU share the bus.

10 CPU provides DMA with location of the bytes, # bytes to be transferred, destination device or memory address CS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter 717yThe DMA runs at a higher priority and steals memory cycles from the Direct Memory Access (DMA) Direct Memory Access (DMA)WHILEMore input AND NOT ErrorADD 1 TO Byte-countADD 1 TO BytecountIFByte-count > Total-bytes-to-be-transferred THENEXITENDIFP lace byte in destination bufferRaise Byte-ready signalInitialize timerREPEATWAITUNTILByte-acknowledged, Timeout, OR ErrorENDWHILECS 2401 Comp. Org. & Assembly Input/Output and Storage Systems -- chapter Direct Memory Access (DMA) Direct Memory Access (DMA)CS 2401 Comp.


Related search queries