The document provides information about different generations of computers. It discusses Babbage's Analytical Engine as an early predecessor to modern computers. The first generation used vacuum tubes and were large, expensive machines. The second generation used transistors, making computers smaller, cheaper, and more reliable. The third generation used integrated circuits, making computers even smaller and faster. Later generations incorporated microprocessors, leading to the development of personal computers. The document also discusses some examples of specific early computers like the IAS and IBM 360.
This document discusses IT infrastructure, including hardware, software, networks, and data management technology. It covers the types and sizes of computers from personal computers to supercomputers. It also discusses operating systems, application software, groupware, and contemporary trends like edge computing, virtual machines, and cloud computing. The document examines different types of networks including client-server, web servers, and storage area networks. It provides an overview of strategic decision making around managing infrastructure technology.
This document provides an overview of computer architecture. It begins with definitions of computer architecture and its components. It then discusses the history of computers from the ENIAC in 1944 to modern personal computers. It describes different types of computers and how they are structured. The document outlines technology trends such as Moore's Law and how they have impacted performance. It discusses measuring and comparing performance between systems.
The document provides information about a computer architecture course taught by Mohamed ELARBI including:
- Contact information for the instructor
- Recommended textbooks and other resources
- A list of topics to be covered each week throughout the course including parallel processing, CPU design, pipelining, and memory hierarchy
- Definitions of key terms related to computer architecture and organization such as the difference between architecture and organization
- An overview of the von Neumann model and system bus model of computer system organization
This document contains a chapter summary for a computer organization course. It discusses the following:
- The course textbook, instructor, and topics covered including computer abstractions and technology, instructions, arithmetic, processors, and memory hierarchies.
- Grading breakdown including quizzes, a midterm exam, and final exam.
- An overview of the computer revolution driven by Moore's Law and the widespread applications of computers.
- Classes of computers like desktops, servers, and embedded systems and their characteristics.
- What students will learn including how programs are executed by hardware, performance improvements, and parallel processing.
- The layers between programs and hardware including languages, operating systems, and components
The document discusses various aspects of computer systems including:
1. It defines input devices, processors, storage devices, and output devices as the main components of computer hardware.
2. It explains that computer software includes system software like operating systems and utility programs, as well as application software for tasks like word processing.
3. It provides examples of different data storage units like kilobytes, megabytes, and gigabytes that are used to measure data and storage capacities.
The document provides an overview of computer architecture and organization by:
1) Describing the basic structure of a computer system including the central processing unit, main memory, and input/output systems.
2) Explaining the four main functions of a computer as data processing, data storage, data movement, and control.
3) Discussing the different levels of abstraction in transforming a problem into a working computer system from the problem statement to electronics.
An introduction to digital signal processors 1Hossam Hassan
油
This document provides an introduction to digital signal processors (DSPs). It discusses the history and evolution of computers and microprocessors. DSPs were introduced in 1983 and were specifically designed for digital signal processing applications like telecommunications. The document outlines the system architecture of DSPs and discusses Von Neumann and Harvard architectures. It also covers criteria for choosing a microprocessor, including instruction set functionality, architecture, speed, and power consumption. Building blocks of embedded systems like the microprocessor, memory, peripherals, and bus system are described.
1.1. SOC AND MULTICORE ARCHITECTURES FOR EMBEDDED SYSTEMS (2).pdfenriquealbabaena6868
油
The document discusses system-on-chip (SoC) architectures for embedded systems. It begins by defining embedded systems and noting that they typically have specific purposes and interface with the real world. SoCs integrate processor cores, memory, and other components onto a single chip to serve application-specific functions. The document then provides examples of small to complex embedded systems that use SoCs. It notes the huge and growing market for embedded systems and discusses challenges like the design productivity gap. Finally, it argues that heterogeneous SoCs using standardized interfaces and pre-designed intellectual property cores can help address challenges and provide optimized solutions for application domains.
The document provides an introduction to fundamentals of computer design. It discusses the evolution of computers from large room-sized machines to handheld devices. It outlines three main classes of computing - desktops, servers, and embedded systems - and highlights their key design considerations and performance metrics. The quantitative principles of computer design involve measuring execution time and its components, such as instruction count and clock cycles per instruction, to evaluate and compare performance.
The document provides an overview of operating systems and some of their key concepts. It discusses why operating systems are needed, defining them as programs that act as intermediaries between users and computer hardware. It describes the four main components of a computer system - hardware, operating system, application programs, and users. Finally, it outlines some of the main functions and goals of operating systems, such as executing user programs efficiently and making the computer system convenient to use.
An operating system acts as an interface between hardware and users, providing abstractions to simplify application design. It performs core functions like process and resource management, protection between processes, and communication between processes. Operating systems have evolved over several phases as hardware has become cheaper and more powerful, moving from single-user batch processing systems to time-sharing systems to personal computing systems and now distributed and cloud-based systems.
This is introduction to micro processor and assembly language course. In this chapter you are going to be introduced to basic idea of microprocessor. Language hierarchy and virtual machine concept.
This document provides an introduction to the key components of a computer system, including hardware, software, files, programming languages, and networking. It describes the basic functions of an information processing system and defines key terms like data, information, and bytes. The major hardware components of a computer are outlined including the central processing unit, memory, input/output devices, and storage. Common software types like operating systems, applications, and programming languages are also introduced. Basic concepts around computer files, directories, and networking are defined.
This document provides an introduction to information technology and operating systems. It defines data and information, describes the basic components of a computer system including hardware, software and people. It classifies computers by size and discusses the evolution of computers through five generations from vacuum tubes to today's microprocessors. The architecture of a computer including main parts like input, processing, output is outlined. Finally, it describes system software and application software, and operating systems like Windows that enable communication between users and computers.
This document provides an overview of embedded systems. It begins with an introduction that defines embedded systems as special-purpose computer systems designed to perform dedicated functions often with real-time constraints. The document then covers the history, characteristics, architecture and design, applications, and provides a summary of embedded systems. It discusses how embedded systems have become widespread in devices like phones, appliances, vehicles and more.
The document provides an overview of basic computer architecture concepts, including:
- The main components of a computer are the central processing unit (CPU), memory, and input/output components.
- Programs are stored in memory and executed by the CPU, which contains an arithmetic logic unit (ALU) and control unit.
- Common computer types include desktops, laptops, servers, and supercomputers. Instruction set architectures like RISC and CISC differ in instruction complexity.
Unit 1 one part introduction to computersNeha Kurale
油
This document provides an introduction to computers, including:
- The definition and features of computers such as speed, accuracy, memory.
- An overview of computer generations from vacuum tubes to modern computers.
- The basic components of a computer system including the CPU, memory, storage, and input/output devices.
- A brief history of early computers and pioneers like Babbage and their contributions to the development of modern computers.
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptMozammelHaque53
油
This is a lecture PowerPoint slide for the students of universities worldwide who desire to learn and advance his or her knowledge and expertise on Computer systems architecture.
Unit - 1 provides an overview of the basic components that comprise a computer system including input devices, output devices, the system unit, and storage devices. It also summarizes the different generations of computers from first to fifth generation based on the underlying technology used from vacuum tubes to microchips. Finally, it briefly describes different types of computers such as personal computers, workstations, minicomputers, and supercomputers based on their size and capabilities.
This lecture introduces computer systems architecture and components. It discusses the Von Neumann architecture and its basic components: CPU, memory, input/output. It outlines the development of computing technology from mechanical to vacuum tube to transistor-based computers. It describes different types of computers from personal computers to mainframes and supercomputers. It explains the basic components of a computer system including the processor, memory, storage, and input/output devices.
100 questions on Data Science to Master interviewyashikanigam1
油
# **Crack Your Data Science Interview with Confidence: A Comprehensive Guide by Tutort Academy**
## **Introduction**
Data Science has emerged as one of the most sought-after fields in the tech industry. With its blend of statistics, programming, machine learning, and business acumen, the role of a data scientist is both challenging and rewarding. However, cracking a data science interview can be intimidating due to its multidisciplinary nature.
In this comprehensive guide by **Tutort Academy**, we break down everything you need to know to ace your next data science interviewfrom core concepts and technical rounds to behavioral questions and interview tips.
---
## **1. Understanding the Data Science Interview Process**
Most data science interviews typically consist of the following stages:
### **1.1 Resume Shortlisting**
Ensure your resume highlights relevant skills such as Python, SQL, Machine Learning, and project experience. Certifications and courses (like those offered by Tutort Academy) can add extra credibility.
### **1.2 Initial Screening**
Usually conducted by a recruiter or HR. It focuses on your background, motivation, and basic fit for the role.
### **1.3 Technical Assessment**
This can include:
- Online coding tests (HackerRank, Codility)
- SQL queries
- Statistics and Probability questions
- Machine Learning concepts
### **1.4 Case Studies or Business Problems**
You may be asked to solve real-world problems such as churn prediction, customer segmentation, or A/B testing.
### **1.5 Technical Interview Rounds**
Youll interact with data scientists or engineers and answer questions on algorithms, data preprocessing, model evaluation, etc.
### **1.6 Behavioral and HR Round**
Test your cultural fit, communication skills, and team collaboration.
---
## **2. Core Skills Required**
### **2.1 Programming (Python/R)**
- Data structures and algorithms
- Libraries like Pandas, NumPy, Matplotlib, Seaborn
- Web scraping, APIs
### **2.2 SQL and Databases**
- Joins, subqueries, window functions
- Data extraction and transformation
- Writing efficient queries
### **2.3 Statistics and Probability**
- Descriptive and inferential statistics
- Hypothesis testing
- Probability distributions
### **2.4 Machine Learning**
- Supervised vs Unsupervised Learning
- Algorithms: Linear Regression, Decision Trees, SVM, Random Forest, XGBoost
- Model evaluation metrics: Accuracy, Precision, Recall, F1-Score, ROC-AUC
### **2.5 Data Visualization**
- Storytelling with data
- Tools: Tableau, Power BI, or Python libraries
### **2.6 Communication and Business Acumen**
- Explaining complex results to non-technical stakeholders
- Understanding KPIs and business objectives
---
## **3. Important Interview Questions**
### **3.1 Python/Programming**
- What are Python generators?
- How do you handle missing values in a dataset?
- Write a function to detect duplicate entries.
### **3.2 SQL**
- Find the second highest salary from an employee table.
- Use w
More Related Content
Similar to CS465Lec1.ppt computer architecture in the fall term (20)
The document provides an overview of computer architecture and organization by:
1) Describing the basic structure of a computer system including the central processing unit, main memory, and input/output systems.
2) Explaining the four main functions of a computer as data processing, data storage, data movement, and control.
3) Discussing the different levels of abstraction in transforming a problem into a working computer system from the problem statement to electronics.
An introduction to digital signal processors 1Hossam Hassan
油
This document provides an introduction to digital signal processors (DSPs). It discusses the history and evolution of computers and microprocessors. DSPs were introduced in 1983 and were specifically designed for digital signal processing applications like telecommunications. The document outlines the system architecture of DSPs and discusses Von Neumann and Harvard architectures. It also covers criteria for choosing a microprocessor, including instruction set functionality, architecture, speed, and power consumption. Building blocks of embedded systems like the microprocessor, memory, peripherals, and bus system are described.
1.1. SOC AND MULTICORE ARCHITECTURES FOR EMBEDDED SYSTEMS (2).pdfenriquealbabaena6868
油
The document discusses system-on-chip (SoC) architectures for embedded systems. It begins by defining embedded systems and noting that they typically have specific purposes and interface with the real world. SoCs integrate processor cores, memory, and other components onto a single chip to serve application-specific functions. The document then provides examples of small to complex embedded systems that use SoCs. It notes the huge and growing market for embedded systems and discusses challenges like the design productivity gap. Finally, it argues that heterogeneous SoCs using standardized interfaces and pre-designed intellectual property cores can help address challenges and provide optimized solutions for application domains.
The document provides an introduction to fundamentals of computer design. It discusses the evolution of computers from large room-sized machines to handheld devices. It outlines three main classes of computing - desktops, servers, and embedded systems - and highlights their key design considerations and performance metrics. The quantitative principles of computer design involve measuring execution time and its components, such as instruction count and clock cycles per instruction, to evaluate and compare performance.
The document provides an overview of operating systems and some of their key concepts. It discusses why operating systems are needed, defining them as programs that act as intermediaries between users and computer hardware. It describes the four main components of a computer system - hardware, operating system, application programs, and users. Finally, it outlines some of the main functions and goals of operating systems, such as executing user programs efficiently and making the computer system convenient to use.
An operating system acts as an interface between hardware and users, providing abstractions to simplify application design. It performs core functions like process and resource management, protection between processes, and communication between processes. Operating systems have evolved over several phases as hardware has become cheaper and more powerful, moving from single-user batch processing systems to time-sharing systems to personal computing systems and now distributed and cloud-based systems.
This is introduction to micro processor and assembly language course. In this chapter you are going to be introduced to basic idea of microprocessor. Language hierarchy and virtual machine concept.
This document provides an introduction to the key components of a computer system, including hardware, software, files, programming languages, and networking. It describes the basic functions of an information processing system and defines key terms like data, information, and bytes. The major hardware components of a computer are outlined including the central processing unit, memory, input/output devices, and storage. Common software types like operating systems, applications, and programming languages are also introduced. Basic concepts around computer files, directories, and networking are defined.
This document provides an introduction to information technology and operating systems. It defines data and information, describes the basic components of a computer system including hardware, software and people. It classifies computers by size and discusses the evolution of computers through five generations from vacuum tubes to today's microprocessors. The architecture of a computer including main parts like input, processing, output is outlined. Finally, it describes system software and application software, and operating systems like Windows that enable communication between users and computers.
This document provides an overview of embedded systems. It begins with an introduction that defines embedded systems as special-purpose computer systems designed to perform dedicated functions often with real-time constraints. The document then covers the history, characteristics, architecture and design, applications, and provides a summary of embedded systems. It discusses how embedded systems have become widespread in devices like phones, appliances, vehicles and more.
The document provides an overview of basic computer architecture concepts, including:
- The main components of a computer are the central processing unit (CPU), memory, and input/output components.
- Programs are stored in memory and executed by the CPU, which contains an arithmetic logic unit (ALU) and control unit.
- Common computer types include desktops, laptops, servers, and supercomputers. Instruction set architectures like RISC and CISC differ in instruction complexity.
Unit 1 one part introduction to computersNeha Kurale
油
This document provides an introduction to computers, including:
- The definition and features of computers such as speed, accuracy, memory.
- An overview of computer generations from vacuum tubes to modern computers.
- The basic components of a computer system including the CPU, memory, storage, and input/output devices.
- A brief history of early computers and pioneers like Babbage and their contributions to the development of modern computers.
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptMozammelHaque53
油
This is a lecture PowerPoint slide for the students of universities worldwide who desire to learn and advance his or her knowledge and expertise on Computer systems architecture.
Unit - 1 provides an overview of the basic components that comprise a computer system including input devices, output devices, the system unit, and storage devices. It also summarizes the different generations of computers from first to fifth generation based on the underlying technology used from vacuum tubes to microchips. Finally, it briefly describes different types of computers such as personal computers, workstations, minicomputers, and supercomputers based on their size and capabilities.
This lecture introduces computer systems architecture and components. It discusses the Von Neumann architecture and its basic components: CPU, memory, input/output. It outlines the development of computing technology from mechanical to vacuum tube to transistor-based computers. It describes different types of computers from personal computers to mainframes and supercomputers. It explains the basic components of a computer system including the processor, memory, storage, and input/output devices.
100 questions on Data Science to Master interviewyashikanigam1
油
# **Crack Your Data Science Interview with Confidence: A Comprehensive Guide by Tutort Academy**
## **Introduction**
Data Science has emerged as one of the most sought-after fields in the tech industry. With its blend of statistics, programming, machine learning, and business acumen, the role of a data scientist is both challenging and rewarding. However, cracking a data science interview can be intimidating due to its multidisciplinary nature.
In this comprehensive guide by **Tutort Academy**, we break down everything you need to know to ace your next data science interviewfrom core concepts and technical rounds to behavioral questions and interview tips.
---
## **1. Understanding the Data Science Interview Process**
Most data science interviews typically consist of the following stages:
### **1.1 Resume Shortlisting**
Ensure your resume highlights relevant skills such as Python, SQL, Machine Learning, and project experience. Certifications and courses (like those offered by Tutort Academy) can add extra credibility.
### **1.2 Initial Screening**
Usually conducted by a recruiter or HR. It focuses on your background, motivation, and basic fit for the role.
### **1.3 Technical Assessment**
This can include:
- Online coding tests (HackerRank, Codility)
- SQL queries
- Statistics and Probability questions
- Machine Learning concepts
### **1.4 Case Studies or Business Problems**
You may be asked to solve real-world problems such as churn prediction, customer segmentation, or A/B testing.
### **1.5 Technical Interview Rounds**
Youll interact with data scientists or engineers and answer questions on algorithms, data preprocessing, model evaluation, etc.
### **1.6 Behavioral and HR Round**
Test your cultural fit, communication skills, and team collaboration.
---
## **2. Core Skills Required**
### **2.1 Programming (Python/R)**
- Data structures and algorithms
- Libraries like Pandas, NumPy, Matplotlib, Seaborn
- Web scraping, APIs
### **2.2 SQL and Databases**
- Joins, subqueries, window functions
- Data extraction and transformation
- Writing efficient queries
### **2.3 Statistics and Probability**
- Descriptive and inferential statistics
- Hypothesis testing
- Probability distributions
### **2.4 Machine Learning**
- Supervised vs Unsupervised Learning
- Algorithms: Linear Regression, Decision Trees, SVM, Random Forest, XGBoost
- Model evaluation metrics: Accuracy, Precision, Recall, F1-Score, ROC-AUC
### **2.5 Data Visualization**
- Storytelling with data
- Tools: Tableau, Power BI, or Python libraries
### **2.6 Communication and Business Acumen**
- Explaining complex results to non-technical stakeholders
- Understanding KPIs and business objectives
---
## **3. Important Interview Questions**
### **3.1 Python/Programming**
- What are Python generators?
- How do you handle missing values in a dataset?
- Write a function to detect duplicate entries.
### **3.2 SQL**
- Find the second highest salary from an employee table.
- Use w
Many confuse artificial intelligence with data sciencebut they serve distinct purposes. In this engaging slide deck, you'll discover how AI, machine learning, and data science overlap, where they differ, and how businesses use them together to unlock smart solutions. Ideal for beginners and tech-curious professionals.
SQL (Structured Query Language) is the foundation of data analytics. If you're an aspiring analyst, data scientist, or business intelligence professional, mastering SQL is non-negotiable. In this presentation, youll discover the top 10 most essential SQL queries used by professionals in real-world scenarios. From SELECT and WHERE statements to powerful JOINs, aggregations (GROUP BY, SUM, COUNT), and subqueries, this crash course will teach you how to extract actionable insights from large datasets. Learn to solve practical data problems and make data-driven decisions with confidencewithout needing a CS degree. Whether you're working with MySQL, PostgreSQL, or SQL Server, these query patterns will give you a strong, job-ready foundation in analytics.
Microsoft Power BI is a business analytics service that allows users to visualize data and share insights across an organization, or embed them in apps or websites, offering a consolidated view of data from both on-premises and cloud sources
Python's versatility makes it an ideal language for automating repetitive tasks, enhancing productivity, and reducing human error. This presentation explores practical examples of task automation using Python, such as file management, data extraction from websites (web scraping), sending automated emails, and interacting with APIs. Attendees will learn about essential libraries like os, requests, BeautifulSoup, and smtplib, and how to implement them to streamline workflows effectively.
Information Security Management-Planning 1.pptxFrancisFayiah
油
nformation Security Management Planning refers to the process of designing and implementing a structured approach to protect an organizations information assets against threats, vulnerabilities, and risks. It is an essential part of overall corporate governance and risk management. Here's a comprehensive overview:
Visionaize for Visionaize AI Powered Solution For Thermal Power Plant.pptxSumantaBasu12
油
CS465Lec1.ppt computer architecture in the fall term
1. CS 465
Computer Architecture
Fall 2009
Lecture 01: Introduction
Daniel Barbar叩 ( cs.gmu.edu/~dbarbara)
[Adapted from Computer Organization and Design,
Patterson & Hennessy, 息 2005, UCB]
2. Course Administration
Instructor: Daniel Barbar叩
dbarbara@gmu.edu
4420 Eng. Bldg.
Text: Required: Computer Organization & Design
The Hardware Software Interface, Patterson &
Hennessy, the 4th Edition
3. Grading Information
Grade determinates
Midterm Exam ~25%
Final Exam 1 ~35%
Homeworks ~40%
- Due at the beginning of class (or, if its code to be submitted
electronically, by 17:00 on the due date). No late assignments
will be accepted.
Course prerequisites
grade of C or better in CS 367
4. Acknowledgements
際際滷s adopted from Dr. Zhong
Contributions from Dr. Setia
際際滷s also adopt materials from many other universities
IMPORTANT:
- 際際滷s are not intended as replacement for the text
- You spent the money on the book, please read it!
5. Course Topics (Tentative)
Instruction set architecture (Chapter 2)
MIPS
Arithmetic operations & data (Chapter 3)
System performance (Chapter 4)
Processor (Chapter 5)
Datapath and control
Pipelining to improve performance (Chapter 6)
Memory hierarchy (Chapter 7)
I/O (Chapter 8)
6. Focus of the Course
How computers work
MIPS instruction set architecture
The implementation of MIPS instruction set architecture MIPS
processor design
Issues affecting modern processors
Pipelining processor performance improvement
Cache memory system, I/O systems
7. Why Learn Computer Architecture?
You want to call yourself a computer scientist
Computer architecture impacts every other aspect of computer science
You need to make a purchasing decision or offer expert advice
You want to build software people use sell many, many copies-
(need performance)
Both hardware and software affect performance
- Algorithm determines number of source-level statements
- Language/compiler/architecture determine machine instructions (Chapter 2
and 3)
- Processor/memory determine how fast instructions are executed (Chapter 5,
6, and 7)
- Assessing and understanding performance(Chapter 4)
9. Computer Systems
Software
Application software Word Processors, Email, Internet
Browsers, Games
Systems software Compilers, Operating Systems
Hardware
CPU
Memory
I/O devices (mouse, keyboard, display, disks, networks,..)
11. D.Barbar叩
instruction set
software
hardware
Instruction Set Architecture
One of the most important abstractions is ISA
A critical interface between HW and SW
Example: MIPS
Desired properties
Convenience (from software side)
Efficiency (from hardware side)
12. D.Barbar叩
What is Computer Architecture
Programmers view: a pleasant environment
Operating systems view: a set of resources (hw
& sw)
System architecture view: a set of components
Compilers view: an instruction set architecture
with OS help
Microprocessor architecture view: a set of
functional units
VLSI designers view: a set of transistors
implementing logic
Mechanical engineers view: a heater!
13. D.Barbar叩
What is Computer Architecture
Patterson & Hennessy: Computer
architecture = Instruction set architecture
+ Machine organization + Hardware
For this course, computer architecture
mainly refers to ISA (Instruction Set
Architecture)
Programmer-visible, serves as the boundary
between the software and hardware
Modern ISA examples: MIPS, SPARC,
PowerPC, DEC Alpha
14. D.Barbar叩
Organization and Hardware
Organization: high-level aspects of a computers
design
Principal components: memory, CPU, I/O,
How components are interconnected
How information flows between components
E.g. AMD Opteron 64 and Intel Pentium 4: same ISA
but different organizations
Hardware: detailed logic design and the
packaging technology of a computer
E.g. Pentium 4 and Mobile Pentium 4: nearly identical
organizations but different hardware details
15. Types of computers and their applications
Desktop
Run third-party software
Office to home applications
30 years old
Servers
Modern version of what used to be called mainframes,
minicomputers and supercomputers
Large workloads
Built using the same technology in desktops but higher capacity
- Expandable
- Scalable
- Reliable
Large spectrum: from low-end (file storage, small businesses) to
supercomputers (high end scientific and engineering
applications)
- Gigabytes to Terabytes to Petabytes of storage
Examples: file servers, web servers, database servers
16. Types of computers
Embedded
Microprocessors everywhere! (washing machines, cell phones,
automobiles, video games)
Run one or a few applications
Specialized hardware integrated with the application (not your
common processor)
Usually stringent limitations (battery power)
High tolerance for failure (dont want your airplane avionics to
fail!)
Becoming ubiquitous
Engineered using processor cores
- The core allows the engineer to integrate other functions into the
processor for fabrication on the same chip
- Using hardware description languages: Verilog, VHDL
17. Where is the Market?
290
93
3
488
114
3
892
135
4
862
129
4
1122
131
5
0
200
400
600
800
1000
1200
1998 1999 2000 2001 2002
Embedded
Desktop
Servers
Millions
of
Computers
18. In this class you will learn
How programs written in a high-level language (e.g.,
Java) translate into the language of the hardware and
how the hardware executes them.
The interface between software and hardware and how
software instructs hardware to perform the needed
functions.
The factors that determine the performance of a program
The techniques that hardware designers employ to
improve performance.
As a consequence, you will understand what features may
make one computer design better than another for a
particular application
19. High-level to Machine Language
High-level language program
(in C)
Assembly language program
(for MIPS)
Binary machine language program
(for MIPS)
Compiler
Assembler
20. Evolution
In the beginning there were only bits and people spent
countless hours trying to program in machine language
01100011001 011001110100
Finally before everybody went insane, the assembler
was invented: write in mnemonics called assembly
language and let the assembler translate (a one to one
translation)
Add A,B
This wasnt for everybody, obviously (imagine how
modern applications would have been possible in
assembly), so high-level language were born (and with
them compilers to translate to assembly, a many-to-one
translation)
C= A*(SQRT(B)+3.0)
21. THE BIG IDEA
Levels of abstraction: each layer provides its own
(simplified) view and hides the details of the next.
22. Instruction Set Architecture (ISA)
ISA: An abstract interface between the hardware and the
lowest level software of a machine that encompasses all
the information necessary to write a machine language
program that will run correctly, including instructions,
registers, memory access, I/O, and so on.
... the attributes of a [computing] system as seen by the
programmer, i.e., the conceptual structure and functional
behavior, as distinct from the organization of the data flows and
controls, the logic design, and the physical implementation.
Amdahl, Blaauw, and Brooks, 1964
Enables implementations of varying cost and performance to run
identical software
ABI (application binary interface): The user portion of the
instruction set plus the operating system interfaces used
by application programmers. Defines a standard for
binary portability across computers.
23. ISA Type Sales
0
200
400
600
800
1000
1200
1400
1998 1999 2000 2001 2002
Other
SPARC
Hitachi SH
PowerPC
Motorola 68K
MIPS
IA-32
ARM
PowerPoint comic bar chart with approximate values (see
text for correct values)
Millions
of
Processor
25. Anatomy of Computer
Personal Computer
Processor
Computer
Control
(brain)
Datapath
(brawn)
Memory
(where
programs,
data
live when
running)
Devices
Input
Output
Keyboard,
Mouse
Display,
Printer
Disk
(where
programs,
data
live when
not running)
5 classic components
Datapath: performs arithmetic operation
Control: guides the operation of other components based on the user
instructions
28. Moores Law
In 1965, Gordon Moore predicted that the number of
transistors that can be integrated on a die would double
every 18 to 24 months (i.e., grow exponentially with
time).
Amazingly visionary million transistor/chip barrier was
crossed in the 1980s.
2300 transistors, 1 MHz clock (Intel 4004) - 1971
16 Million transistors (Ultra Sparc III)
42 Million transistors, 2 GHz clock (Intel Xeon) 2001
55 Million transistors, 3 GHz, 130nm technology, 250mm2 die
(Intel Pentium 4) - 2004
140 Million transistor (HP PA-8500)
29. Processor Performance Increase
1
10
100
1000
10000
1987 1989 1991 1993 1995 1997 1999 2001 2003
Year
Performance
(SPEC
Int)
SUN-4/260 MIPS M/120
MIPS M2000
IBM RS6000
HP 9000/750
DEC AXP/500 IBM POWER 100
DEC Alpha 4/266
DEC Alpha 5/500
DEC Alpha 21264/600
DEC Alpha 5/300
DEC Alpha 21264A/667
Intel Xeon/2000
Intel Pentium 4/3000
30. Year
Transistors
1000
10000
100000
1000000
10000000
100000000
1970 1975 1980 1985 1990 1995 2000
i80386
i4004
i8080
Pentium
i80486
i80286
i8086
CMOS improvements:
Die size: 2X every 3 yrs
Line width: halve / 7 yrs
Itanium II: 241 million
Pentium 4: 55 million
Alpha 21264: 15 million
Pentium Pro: 5.5 million
PowerPC 620: 6.9 million
Alpha 21164: 9.3 million
Sparc Ultra: 5.2 million
Moores Law
Trend: Microprocessor Capacity
31. Moores Law
Cramming More Components onto Integrated Circuits
Gordon Moore, Electronics, 1965
# of transistors per cost-effective integrated circuit doubles every 18 months
Transistor capacity doubles every 18-24 months
Speed 2x / 1.5 years (since 85);
100X performance in last decade
33. Memory
Dynamic Random Access Memory (DRAM)
The choice for main memory
Volatile (contents go away when power is lost)
Fast
Relatively small
DRAM capacity: 2x / 2 years (since 96);
64x size improvement in last decade
Static Random Access Memory (SRAM)
The choice for cache
Much faster than DRAM, but less dense and more costly
Magnetic disks
The choice for secondary memory
Non-volatile
Slower
Relatively large
Capacity: 2x / 1 year (since 97)
250X size in last decade
Solid state (Flash) memory
The choice for embedded computers
Non-volatile
34. Memory
Optical disks
Removable, therefore very large
Slower than disks
Magnetic tape
Even slower
Sequential (non-random) access
The choice for archival
37. (Kilo, Mega, Giga, Tera, Peta, Exa, Zetta, Yotta = 1024)
Come up with a clever mnemonic, fame!
Dramatic Technology Change
State-of-the-art PC when you graduate:
(at least)
Processor clock speed: 5000 MegaHertz
(5.0 GigaHertz)
Memory capacity: 4000 MegaBytes
(4.0 GigaBytes)
Disk capacity: 2000 GigaBytes
(2.0 TeraBytes)
New units! Mega => Giga, Giga => Tera
38. Example Machine Organization
Workstation design target
25% of cost on processor
25% of cost on memory (minimum memory size)
Rest on I/O devices, power supplies, box
CPU
Computer
Control
Datapath
Memory Devices
Input
Output
39. MIPS R3000 Instruction Set Architecture
Instruction Categories
Load/Store
Computational
Jump and Branch
Floating Point
- coprocessor
Memory Management
Special
R0 - R31
PC
HI
LO
OP
OP
OP
rs rt rd sa funct
rs rt immediate
jump target
3 Instruction Formats: all 32 bits wide
Registers
40. Defining Performance
Which airplane has the best performance?
0 100 200 300 400 500
Douglas
DC-8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Passenger Capacity
0 2000 4000 6000 8000 10000
Douglas DC-
8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Cruising Range (miles)
0 500 1000 1500
Douglas
DC-8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Cruising Speed (mph)
0 100000 200000 300000 400000
Douglas DC-
8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Passengers x mph
則1.4
Performance
41. Response Time and Throughput
Response time
How long it takes to do a task
Throughput
Total work done per unit time
- e.g., tasks/transactions/ per hour
How are response time and throughput affected by
Replacing the processor with a faster version?
Adding more processors?
Well focus on response time for now
42. Relative Performance
Define Performance = 1/Execution Time
X is n time faster than Y
n
X
Y
Y
X
time
Execution
time
Execution
e
Performanc
e
Performanc
Example: time taken to run a program
10s on A, 15s on B
Execution TimeB / Execution TimeA
= 15s / 10s = 1.5
So A is 1.5 times faster than B
43. Measuring Execution Time
Elapsed time
Total response time, including all aspects
- Processing, I/O, OS overhead, idle time
Determines system performance
CPU time
Time spent processing a given job
- Discounts I/O time, other jobs shares
Comprises user CPU time and system CPU time
Different programs are affected differently by CPU and system
performance
44. CPU Clocking
Operation of digital hardware governed by a constant-rate clock
Clock (cycles)
Data transfer
and computation
Update state
Clock period
Clock period: duration of a clock cycle
e.g., 250ps = 0.25ns = 2501012s
Clock frequency (rate): cycles per second
e.g., 4.0GHz = 4000MHz = 4.0109Hz
45. CPU Time
Performance improved by
Reducing number of clock cycles
Increasing clock rate
Hardware designer must often trade off clock rate against cycle
count
Rate
Clock
Cycles
Clock
CPU
Time
Cycle
Clock
Cycles
Clock
CPU
Time
CPU
46. CPU Time Example
Computer A: 2GHz clock, 10s CPU time
Designing Computer B
Aim for 6s CPU time
Can do faster clock, but causes 1.2 clock cycles
How fast must Computer B clock be?
4GHz
6s
10
24
6s
10
20
1.2
Rate
Clock
10
20
2GHz
10s
Rate
Clock
Time
CPU
Cycles
Clock
6s
Cycles
Clock
1.2
Time
CPU
Cycles
Clock
Rate
Clock
9
9
B
9
A
A
A
A
B
B
B
47. Instruction Count and CPI
Instruction Count for a program
Determined by program, ISA and compiler
Average cycles per instruction
Determined by CPU hardware
If different instructions have different CPI
- Average CPI affected by instruction mix
Rate
Clock
CPI
Count
n
Instructio
Time
Cycle
Clock
CPI
Count
n
Instructio
Time
CPU
n
Instructio
per
Cycles
Count
n
Instructio
Cycles
Clock
48. CPI Example
Computer A: Cycle Time = 250ps, CPI = 2.0
Computer B: Cycle Time = 500ps, CPI = 1.2
Same ISA
Which is faster, and by how much?
1.2
500ps
I
600ps
I
A
Time
CPU
B
Time
CPU
600ps
I
500ps
1.2
I
B
Time
Cycle
B
CPI
Count
n
Instructio
B
Time
CPU
500ps
I
250ps
2.0
I
A
Time
Cycle
A
CPI
Count
n
Instructio
A
Time
CPU
A is faster
by this much
49. CPI in More Detail
If different instruction classes take different numbers of
cycles
n
1
i
i
i )
Count
n
Instructio
(CPI
Cycles
Clock
Weighted average CPI
n
1
i
i
i
Count
n
Instructio
Count
n
Instructio
CPI
Count
n
Instructio
Cycles
Clock
CPI
Relative frequency
50. CPI Example
Alternative compiled code sequences using instructions in classes A,
B, C
Class A B C
CPI for class 1 2 3
IC in sequence 1 2 1 2
IC in sequence 2 4 1 1
Sequence 1: IC = 5
Clock Cycles
= 21 + 12 + 23
= 10
Avg. CPI = 10/5 = 2.0
Sequence 2: IC = 6
Clock Cycles
= 41 + 12 + 13
= 9
Avg. CPI = 9/6 = 1.5
51. Performance Summary
Performance depends on
Algorithm: affects IC, possibly CPI
Programming language: affects IC, CPI
Compiler: affects IC, CPI
Instruction set architecture: affects IC, CPI, Tc
The BIG Picture
cycle
Clock
Seconds
n
Instructio
cycles
Clock
Program
ns
Instructio
Time
CPU
52. Power Trends
In CMOS IC technology
則1.5
The
Power
Wall
Frequency
Voltage
load
Capacitive
Power 2
1000
30 5V 1V
53. Reducing Power
Suppose a new CPU has
85% of capacitive load of old CPU
15% voltage and 15% frequency reduction
0.52
0.85
F
V
C
0.85
F
0.85)
(V
0.85
C
P
P 4
old
2
old
old
old
2
old
old
old
new
The power wall
We cant reduce voltage further
We cant remove more heat
How else can we improve performance?
55. Multiprocessors
Multicore microprocessors
More than one processor per chip
Requires explicitly parallel programming
Compare with instruction level parallelism
- Hardware executes multiple instructions at once
- Hidden from the programmer
Hard to do
- Programming for performance
- Load balancing
- Optimizing communication and synchronization
56. SPEC CPU Benchmark
Programs used to measure performance
Supposedly typical of actual workload
Standard Performance Evaluation Corp (SPEC)
Develops benchmarks for CPU, I/O, Web,
SPEC CPU2006
Elapsed time to execute a selection of programs
- Negligible I/O, so focuses on CPU performance
Normalize relative to reference machine
Summarize as geometric mean of performance ratios
- CINT2006 (integer) and CFP2006 (floating-point)
n
n
1
i
i
ratio
time
Execution
57. CINT2006 for Opteron X4 2356
Name Description IC109 CPI Tc (ns) Exec time Ref time SPECratio
perl Interpreted string processing 2,118 0.75 0.40 637 9,777 15.3
bzip2 Block-sorting compression 2,389 0.85 0.40 817 9,650 11.8
gcc GNU C Compiler 1,050 1.72 0.47 24 8,050 11.1
mcf Combinatorial optimization 336 10.00 0.40 1,345 9,120 6.8
go Go game (AI) 1,658 1.09 0.40 721 10,490 14.6
hmmer Search gene sequence 2,783 0.80 0.40 890 9,330 10.5
sjeng Chess game (AI) 2,176 0.96 0.48 37 12,100 14.5
libquantum Quantum computer simulation 1,623 1.61 0.40 1,047 20,720 19.8
h264avc Video compression 3,102 0.80 0.40 993 22,130 22.3
omnetpp Discrete event simulation 587 2.94 0.40 690 6,250 9.1
astar Games/path finding 1,082 1.79 0.40 773 7,020 9.1
xalancbmk XML parsing 1,058 2.70 0.40 1,143 6,900 6.0
Geometric mean 11.7
High cache miss rates
58. SPEC Power Benchmark
Power consumption of server at different workload levels
Performance: ssj_ops/sec
Power: Watts (Joules/sec)
10
0
i
i
10
0
i
i power
ssj_ops
Watt
per
ssj_ops
Overall
60. Pitfall: Amdahls Law
Improving an aspect of a computer and expecting a proportional
improvement in overall performance
則1.8
Fallacies
and
Pitfalls
20
80
20
n
Cant be done!
unaffected
affected
improved T
factor
t
improvemen
T
T
Example: multiply accounts for 80s/100s
How much improvement in multiply performance to get 5 overall?
Corollary: make the common case fast
61. Fallacy: Low Power at Idle
Look back at X4 power benchmark
At 100% load: 295W
At 50% load: 246W (83%)
At 10% load: 180W (61%)
Google data center
Mostly operates at 10% 50% load
At 100% load less than 1% of the time
Consider designing processors to make power
proportional to load
62. Pitfall: MIPS as a Performance Metric
MIPS: Millions of Instructions Per Second
Doesnt account for
- Differences in ISAs between computers
- Differences in complexity between instructions
6
6
6
10
CPI
rate
Clock
10
rate
Clock
CPI
count
n
Instructio
count
n
Instructio
10
time
Execution
count
n
Instructio
MIPS
CPI varies between programs on a given CPU
63. Concluding Remarks
Cost/performance is improving
Due to underlying technology development
Hierarchical layers of abstraction
In both hardware and software
Instruction set architecture
The hardware/software interface
Execution time: the best performance measure
Power is a limiting factor
Use parallelism to improve performance
則1.9
Concluding
Remarks