Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:



Similar documents
Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Communicating with devices

The Central Processing Unit:

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Chapter 5 Busses, Ports and Connecting Peripherals

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

The Motherboard Chapter #5

Computer Systems Structure Input/Output

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Lecture 2: Computer Hardware and Ports.

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

Discovering Computers Living in a Digital World

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Lizy Kurian John Electrical and Computer Engineering Department, The University of Texas as Austin

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Chapter 1 Computer System Overview

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre

The Bus (PCI and PCI-Express)

Basic Concepts of Information Technology (IT)

Computer Organization & Architecture Lecture #19

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

lesson 1 An Overview of the Computer System

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

1 PERSONAL COMPUTERS

Chapter 2 Logic Gates and Introduction to Computer Architecture

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

Computer Organization. and Instruction Execution. August 22

Computer Components Study Guide. The Case or System Box

Computer Basics: Chapters 1 & 2

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

Understanding Digital Components

Multimedia Systems Hardware & Software THETOPPERSWAY.COM

Primary Memory. Input Units CPU (Central Processing Unit)

Introducción. Diseño de sistemas digitales.1

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Read this before starting!

Chapter 5 Cubix XP4 Blade Server

Desktop Publishing 5N0785 Learning Outcome 2 Monaghan Institute Level 5 Module

Central Processing Unit

Module 1 Introduction to Information and Communication Technologies

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

ELECTRONIC DOCUMENT IMAGING

Central Processing Unit

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

MICROPROCESSOR AND MICROCOMPUTER BASICS

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Solutions for Increasing the Number of PC Parallel Port Control and Selecting Lines

CMS Central Monitoring System

Mother Board Component

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Chapter 11 I/O Management and Disk Scheduling

How do I Check if My Computer is Compatible with Windows 7

Introduction To Computers: Hardware and Software

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Am186ER/Am188ER AMD Continues 16-bit Innovation

CSE2102 Digital Design II - Topics CSE Digital Design II

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Assiut University, Administration Building, Room 210, Tel

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

CENTRONICS interface and Parallel Printer Port LPT

Microprocessor or Microcontroller?

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

How PCI Express Works (by Tracy V. Wilson)

RAM. Overview DRAM. What RAM means? DRAM

ELE 356 Computer Engineering II. Section 1 Foundations Class 6 Architecture

Serial Communications

1. Computer System Structure and Components

Computer Systems Structure Main Memory Organization

COURSE OUTLINE COMPUTER INFORMATION SYSTEMS 1A. PREREQUISITE: None. Concurrent enrollment in CIS-96 or CIS-97 is recommended.

DUKANE Intelligent Assembly Solutions

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

Serial Communications

Eureka Technology. Understanding SD, SDIO and MMC Interface. by Eureka Technology Inc. May 26th, Copyright (C) All Rights Reserved

Generations of the computer. processors.

An Introduction to High-Frequency Circuits and Signal Integrity

Random Access Memory (RAM) Types of RAM. RAM Random Access Memory Jamie Tees SDRAM. Micro-DIMM SO-DIMM

Choosing a Computer for Running SLX, P3D, and P5

Memory Basics. SRAM/DRAM Basics

7a. System-on-chip design and prototyping platforms

Chapter 1. Computers and You. Computers Are Your Future. Computers & You. Understanding the Computer: Basic Definitions

EUCIP IT Administrator - Module 1 PC Hardware Syllabus Version 3.0

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

PCI Express* Ethernet Networking

CHAPTER 3: HARDWARE BASICS: PERIPHERALS

Product Support Bulletin

Transcription:

55 Topic 3 Computer Performance Contents 3.1 Introduction...................................... 56 3.2 Measuring performance............................... 56 3.2.1 Clock Speed................................. 57 3.2.2 Other methods of measuring performance................. 58 3.3 Performance factors................................. 59 3.3.1 Data bus width................................ 59 3.3.2 Data exchange with peripherals....................... 60 3.3.3 Main memory................................. 64 3.3.4 Cache memory................................ 66 3.3.5 Review questions.............................. 66 3.4 Summary....................................... 67 3.5 End of topic test................................... 67 Prerequisite knowledge Before studying this topic you should be able to: Describe the uses and compare the features of embedded, palmtop, laptop, desktop and mainframe computers; Make comparisons in terms of processor speed, main memory, backing store and peripherals; Describe clock speed as an indicator of system performance. Learning Objectives By the end of this topic you will be able to: Describe and evaluate measures of computer performance including clock speed, MIPS, FLOPS, and application benchmark tests; Describe the factors affecting system performance including data bus width, cache memory and data transfer rates between peripherals; Describe the effects of increases in clock speed, memory and storage capacity; Describe the functions of a peripheral interface.

56 TOPIC 3. COMPUTER PERFORMANCE Revision The following exercise tests the prerequisites for this topic. Ensure that you are happy with your responses before progressing. Q1: What supplies regular control signals to the processor that controls the timing of the data transfers and processes? a) ALU b) clock c) control bus d) control unit Q2: A palmtop computer system is an example of a : a) Embedded computer b) Mainframe computer c) Minicomputer d) Microcomputer Q3: Which of the following gives an indication of a computer s performance? a) Modem speed b) Modem bandwidth c) Clock speed d) VDU replenishing rate 3.1 Introduction This topic considers the factors that affect the performance of a computer system. Individual factors may well have an effect, but it is important to consider all factors collectively to allow for a meaningful analysis of a system s performance. Different measurements of performance are considered along with current trends in improving computer specifications that aim for higher performance. 3.2 Measuring performance We will consider four measures of performance: 1. clock speed 2. MIPS 3. FLOPS 4. application-based test

3.2. MEASURING PERFORMANCE 57 3.2.1 Clock Speed In an earlier topic you met the clock when we introduced the functions of the control unit. You learned that it was an electronic pulse, similar to a musical metronome, generated at a constant frequency and that on each pulse, machine operations were carried out. Clock speed will clearly have an impact on performance. If more pulses can be generated per second, with machine operations carried out on each pulse, then it is safe to conclude that more machine operations are carried out as clock speed increases. This is readily observed in the slower performance of older PCs, running at clock speeds of 200 MHz, with most modern PCs, typically operating at around 2GHz or more. The effect of clock speed on performance On the web is a simulation that shows you the difference in performance of two computers operating at different clock speeds. You should now look at this simulation. Care needs to be taken when simply comparing clock speeds. For instance if we compare one processor operating at say, 200MHz with a different processor operating at 200MHz can we say that they are equivalent in performance? No, we cannot. When we talk about the performance of a computer we are usually interested in how quickly it can carry out instructions, or how many instructions it can execute per second. This is often talked about in terms of MIPS, or Millions of Instructions Per Second. The MIPS rate can be influenced by a number of factors: the clock speed of the processor; the speed of communication lines (buses); the speed of memory access; the speed of execution of instructions. A clock speed of 200 MHz does not mean that 200 million instructions are executed per second. It can take at least five clock pulses to execute an instruction. One to load the instruction, one to decode it, one to get any data that the instruction needs, one to execute the instruction and one to store the result. In this case, a 200 MHz processor would be capable of executing 40 million instructions per second, or 40 MIPS. It may therefore be the case that two processors have the same clock speed but different MIP rates. Table 3.1 shows how clock speed and MIPS have increased. increased much more rapidly than clock speed. Note how MIPS has

58 TOPIC 3. COMPUTER PERFORMANCE Table 3.1: Clock Speed Versus Performance Year Intel Processor Clock Speed MIPS 1971 4004 - first microprocessor on a chip 108kHz 0.06 1972 8008 - first 8-bit microprocessor 200 khz 0.06 1974 8080 - first general purpose processor on a chip 2MHz 0.64 1978 8086 - first 16-bit processor on a chip 5-10 MHz 0.33-0.75 1979 8088 5-8 MHz 0.33-0.75 1982 80286 (286) 6-12 MHz 0.9-2.66 1985 80386DX - first 32-bit processor 16-33 MHz 5-11.4 1989 80486DX 25-50 MHz 20-41 1993 Pentium - (pentium from Greek for five) 60 MHz 100 1995 Pentium Pro 150-200 MHz 500 1999 Pentium III 450-600 MHz 1300 2000 AMD Athlon 1.2 GHz 3,500 2005 IBM Xenon (Xbox 360) 3.2 GHz 19,200 2008 Intel Core 2 Extreme 3.2 GHz 59,455 3.2.2 Other methods of measuring performance Floating point operations per second (FLOPs) You should be aware that using MIP rate as a comparison factor also has problems. What sort of instructions are being carried out? There is no standard set and so some manufacturers could use simpler and faster instructions than others. A better measure of performance is the Flop (floating point operations per second). The procedures involved in doing a floating point multiplication are basically the same for every processor. As these kinds of operations are used in most software they provide the basis of a reasonable comparison of system performance. Benchmark tests A benchmark is a well defined standardised routine used to test the performance of computer systems. (Benchmark testing is also used to test software performance). They consist of measuring the time required to carry out standard operations. Application-based benchmarks are regularly reported in computer magazines. Benchmark test results Search websites or computing magazines to find some benchmark test results, comparing different PCs currently available.

3.3. PERFORMANCE FACTORS 59 3.3 Performance factors 3.3.1 Data bus width The effect of data bus width on performance On the web is an animation that shows you how the width of the data bus affects computer performance. You should now look at this animation. Word size A computer is described in terms of its word size. This is the basic number of bits that the processor can handle in a single operation. For example, a 32-bit processor can handle 32 bits in a single operation. An 8-bit processor can add together two 32-bit numbers but this would take quite a few operations, whereas a 32-bit processor could perform the same task in a single operation. If the word size of the computer and the data bus width are the same, this allows data transfers to and from main memory to be carried out in a single operation. However, computers are not always designed like this and often compromises are made due to chip fabrication and manufacturing costs. For instance, designers may build a 32-bit machine with a 16-bit data bus. This means that a 32 bit word must be fetched from main memory using 2 memory read operations; one to fetch the first 16 bits of the data and the second to get the remaining 16 bits. Clearly this is slower than a 32-bit machine designed to carry 32 bits on its data bus. The overall performance is not necessarily twice as slow as there are other factors to consider. However we can say that a wider bus width will produce increased performance. 3.3.1.1 Trends in data bus width increases 64-bit computers appeared around 1993, and are in common use today. Increases in data bus widths and clock speeds of the Intel processor series, from 1st generation to the current 7th generation are shown in Table 3.2 Table 3.2: Intel processor series Type/Generation Year Data Bus Width 8088 - First 1979 8 Bit 80286 - Second 1982 16 Bit 80386SX - Third 1988 16 Bit 80486SX - Fourth 1989 32 Bit Pentium - Fifth 1993 64 Bit Pentium Pro - Sixth 1995 64 Bit AMD Athlon - Seventh 1999 64 Bit

60 TOPIC 3. COMPUTER PERFORMANCE 3.3.2 Data exchange with peripherals Peripheral devices connect to the system bus, or I/O bus, via slots on the back of the computer. Such devices include printers, scanners, digital cameras, digital video recorders, mice, keyboards etc. They also include mass storage devices such as magnetic tape drives and disk drives. Each device has an operational speed, uses its own language and deals with different amounts of data at a time, for example, serial to parallel, or analogue to digital. In order for these devices to communicate with the processor they need to be interfaced. An interface is a unit that sits between the processor and a peripheral device and compensates for the differences in speed, codes etc. to ensure compatibility. 3.3.2.1 Standard functions of an interface Every interface will need to carry out the following: 1. convert data from the format understood by the processor to the format understood by the peripheral e.g. parallel to serial conversion 2. hold data in a Buffer as it is transferred from the processor to the peripheral and vice versa; this is needed when a peripheral is slower than the processor. 3. transmit/receive control signals to/from the processor;

3.3. PERFORMANCE FACTORS 61 4. maintain status information that informs the processor whether the peripheral is ready to send or to receive data. Identifying functions of an interface On the web is an activity that asks you to identify the standard functions of an interface. You should now carry out this activity. 3.3.2.2 Data exchange with peripherals Data can be transmitted in serial or parallel form. Most PCs have a combination of both with at least one parallel port. serial The keyboard and mouse connect through a serial interface, while printers, zip drives and CD-ROMs (requiring larger amounts and much faster transfer rates) connect to a parallel interface. Serial and parallel communications operate differently. zip printer 3.3.2.3 Parallel transmission With parallel transmission, each bit of an 8-bit byte is sent at the same time along a set of parallel wires. The intention being that all bits of the byte arrive at their destination at the same time. Parallel transmission is clearly faster than sending out a single bit at a time, but is recommended where the distance between the transmitting device and the receiving device is fairly short, for example, connecting a printer to a PC. Over longer distances there is a possibility of skewing, where the individual bits may arrive at their destination at different times. The data will lose its integrity. For longer

62 TOPIC 3. COMPUTER PERFORMANCE distances, where speed is not essential, serial communication is more practical. Parallel data transmission is illustrated in Figure 3.1 Parallel Data Transmission 1 0 1 0 each bit is transmitted on single line at the same time 1 0 1 0 1 0 1 0 1 0 1 0 single unit of data bit-time Figure 3.1: Parallel data communications Example : Communicating with a Printer A printer is connected to a computer using a standard, Centronics parallel interface. What follows is the sequence of events to transfer data to the printer. 1. The interface puts data on the parallel lines. 2. Signals the byte is ready to be transmitted. 3. If ready, the printer reads the byte transmitted. 4. Printer sends back an acknowledge signal to the processor. 5. Interface prepares the next byte. The interface also contains a set of status wires that can be used to signal events such as: wait because the printer is busy processing data already sent; error, such as a paper jam occurring or the printer is out of paper. Identifying the characteristics of parallel communications On the web is an activity that asks you to identify the characteristics of Parallel Communications. You should now carry out this activity.

3.3. PERFORMANCE FACTORS 63 3.3.2.4 Serial transmission With serial transmission, each bit of the byte is sent out, one at a time, over the communications line. A start bit is used to signal to the receiving device that transmission is beginning, followed by each bit of the byte. There may or may not be a parity bit sent as part of the byte. Finally the transmitter waits a period of time, marking an output level that is known as a stop bit Asynchronous serial communication of a single byte is illustrated in Figure 3.2 Example : Communicating with a mouse Figure 3.2: Serial data communications As there is no pressing need for speed, a mouse is connected to a computer using a serial DB9 or DB25 connector. A universal serial bus (USB) may also be used. A USB interface is a typical port used to connect many devices. 1. A single data bit at a time sent to the processor - typical rate of 1200 bits per second. 2. The interface converts this stream of bits to parallel to send on system bus.

64 TOPIC 3. COMPUTER PERFORMANCE 3. Once the byte ready interface asserts an interrupt request. 4. processor acknowledges request and interface places the byte on the system bus. Identifying the characteristics of serial communications On the web is an activity that asks you to correctly identify the characteristics of Serial Communications. You should now carry out this activity. Parallel to serial conversion 5 min On the web is a simulation that illustrates parallel to serial conversion. You should now look at this animation. 3.3.3 Main memory There are various aspects of main memory that can affect system performance. These include: speed of access; word size; amount of memory; cache memory. The first two aspects are dictated by the processor and motherboard. We will look in more detail at how the amount of memory and the use of cache memory affects system performance.

3.3. PERFORMANCE FACTORS 65 Amount of memory Main memory is a mixture of random access memory (RAM), read only memory (ROM) and empty space. Empty space means there is less physical memory present than can be directly addressed. Physical memory can therefore be expanded by adding more memory modules as and when required. This is known as a memory upgrade. Empty RAM slots If your computer is struggling to run some software or you cannot load all the software you want at the one time, then adding extra memory will improve your system s performance. For example, if you are using an application that needs to manipulate large graphic files, video or sound then you should be thinking of upgrading RAM to the computer s maximum capability. At the time of writing in 2010, home machines typically have around 4Gbytes of RAM but they can be expanded to have 20 Gbytes or even more. Full RAM slots When there is insufficient main memory then the hard disk can be used as an extension. This is known as virtual memory and results in slower performance since swapping data from main memory to hard disk and loading from the hard disk to main memory is much slower than directly accessing main memory.

66 TOPIC 3. COMPUTER PERFORMANCE 3.3.4 Cache memory Main memory bus speeds are not able to match the speed of the processor and cache memory is used to speed up this transfer. This is a small amount of very fast SRAM that can reside inside the processor or sit between the processor and main memory. When writingto main memory the processor uses the cache to deposit data and then resumes its operations immediately. The data is transferred to main memory by the cache controller circuitry. When reading from memory the processor first checks whether the information is already available in the cache memory. If so then it can transfer this at high speed to the processor. How cache memory is used by the processor On the web is a simulation showing how the processor makes use of cache memory. You should now look at this simulation. 3.3.5 Review questions Q4: Computer A and Computer B each operate at 200 MHz. Why can it not be said that they are equivalent in performance? Q5: Explain why an increase in the width of the data bus can improve system performance. Q6: A 24-bit address bus allows how many directly addressable locations? a) 2X24 b) 26 c) 2 24 Q7: Explain why an increase in the width of the address bus can have an affect on system performance? Q8: A memory upgrade involves: a) Redesign of the address bus b) Insertion of additional memory modules c) Replacement of the motherboard

3.4. SUMMARY 67 3.4 Summary The following summary points are related to the learning objectives in the topic introduction: Indicators of computer performance include: clock speed, MIPS, FLOPS; Performance can be evaluated using these indicators; Benchmark testing is used to measure performance; Other factors affecting performance include: data bus width, cache memory and data transfer rates; Increasing clock speed, memory and storage capacity may improve performance. The purposes of a peripheral interface include: data conversion data storage (buffering) control signals providing status information 3.5 End of topic test An online assessment is provided to help you review this topic.

68 TOPIC 3. COMPUTER PERFORMANCE