Relatorio
Relatorio
Computer Performance?
Ulysse Eric Marrocos Cancela
November 2024
Abstract
In this practical work, we’ll try to explain how a computer performs essential tasks
and manages data using its fundamental components and memory systems.
1.Introduction:
In this practical work, we explore how computers represent, process, and store information across various
types of memory and components. By examining elements such as cache memory, CPU cores, and logic
gates, we aim to understand the mechanisms that enable efficient data handling and fast processing.
1.1 Goals:
To explain and analyze the fundamental components and memory systems that allow a computer to perform
essential tasks and manage data efficiently.
• Understand how cache memory works and its role in speeding up processing.
• Examine the impact of multiple CPU cores on processing performance.
• Explain why binary data representation is used in computers.
• Explore the basic logic gates (AND, OR, NOT) and their functions in computer electronics.
• Analyze truth tables and their role in representing logic gate functions.
• Describe the purpose of RAM in a computer system.
• Investigate how RAM affects system performance and the fetch-execute cycle.
• Discuss the need for virtual memory and how it extends memory through a page file.
• Examine how different levels of cache in CPUs improve performance.
• Understand flash memory and recent advancements in memory technology.
Computers achieve efficient processing and data management through various components. Cache memory
speeds up tasks by storing frequently accessed data close to the CPU, reducing the need to fetch it from
slower RAM. Multiple CPU cores enhance performance by allowing simultaneous task processing, especially
useful for multitasking. Binary data representation aligns with electronic circuitry, making it reliable and
efficient. Logic gates (AND, OR, NOT) and truth tables are foundational for performing calculations and
controlling operations. RAM provides temporary, fast-access storage essential for active tasks, with more
RAM improving multitasking. When RAM is limited, virtual memory extends it by using storage as temporary
memory. Cache levels in CPUs optimize data access, and flash memory advances have increased data
retention and speed, making modern computers more efficient and capable.
1
2.1. What is cache memory, and how does it speed up processing?
Cache memory is a small, high-speed memory located close to or within the CPU that temporarily stores
copies of frequently accessed data from main memory (RAM). By keeping this data nearby, the CPU can
access it much faster than if it had to retrieve it from RAM each time. This reduces latency, speeds up the
execution of tasks, and improves overall system performance, especially for repetitive operations.
2.4. What are the basic logic gates (AND, OR, NOT), and how do they enable computer electronics?
Logic gates are the fundamental building blocks of digital electronics. Each logic gate performs a basic logical
operation:
• AND gate outputs true only if all its inputs are true.
• OR gate outputs true if at least one of its inputs is true.
• NOT gate inverts its input, outputting the opposite value.
These gates are combined in complex ways to create circuits that perform calculations, store data, and
control computer functions. By manipulating binary data through these gates, computers can execute
programs and perform complex tasks.
2.5. What are truth tables, and how do they represent the functions of logic gates?
Truth tables are tables that display all possible input combinations for a logic gate and their corresponding
outputs. They help in understanding how each gate behaves under different conditions. For example, the
truth table for an AND gate with two inputs shows that it outputs true only when both inputs are true. Truth
tables are essential tools for designing and analyzing logic circuits.
2.7. How does the amount of RAM affect system performance and the fetch-execute cycle?
The amount of RAM impacts how much data and how many applications a system can handle at once. With
more RAM, a computer can store more active data and instructions, reducing the need to swap data to and
from slower storage (like a hard drive). This optimizes the fetch-execute cycle, where the CPU retrieves and
processes instructions, by ensuring data is readily available in fast-access memory. More RAM generally
means faster and smoother performance, particularly in multitasking and running complex applications.
2
2.8. Why is virtual memory needed, and how is storage memory used to extend memory through a
page file?
Virtual memory is needed when a computer’s RAM is insufficient to handle all active applications and data.
It extends available memory by using a section of the hard drive or SSD as if it were RAM, known as a page
file. When RAM fills up, the operating system moves less frequently used data to this page file, freeing up
RAM for more critical tasks. Although virtual memory is slower than RAM, it prevents the system from crashing
or slowing down significantly by ensuring it has enough memory to manage large or multiple applications.
2.9. How do different levels of cache in modern CPUs improve performance by storing frequently
accessed data?
Modern CPUs typically have multiple levels of cache (L1, L2, and sometimes L3), each with varying sizes
and speeds.
• L1 cache is the fastest but smallest and is located directly on the CPU core for extremely quick access.
• L2 cache is larger but slightly slower, often shared between cores.
• L3 cache is the largest and slower than L1 and L2 but still faster than RAM, often shared by all CPU
cores.
These levels of cache store copies of frequently accessed data so the CPU can avoid the slower process of
accessing RAM, thereby reducing data retrieval time and improving performance.
2.10. What is flash memory, and what are the recent changes in memory technologies?
Flash memory is a type of non-volatile memory, meaning it retains data even when the power is turned off.
It’s widely used in SSDs, USB drives, and memory cards because it’s fast, reliable, and compact. Recent
advancements in memory technology include 3D NAND flash, where memory cells are stacked vertically to
increase density and storage capacity, and Optane memory, which provides even faster speeds and improved
durability, bridging the performance gap between traditional storage and RAM. These technologies continue
to enhance storage capacity and speed, making systems faster and more efficient.
3
Exercises about “Cache memory – speeding up execution”:
4
5
Exercises about “CPU cores”:
6
7
8
Exercises about “Binary data”:
9
10
Exercises about “Logic Gates AND, OR, NOT”:
11
12
Exercises about “Truth Tables”:
13
14
Exercises about “The need for RAM”:
15
16
17
18
Exercises about “How RAM affects performance”:
19
20
21
22
23
24
Exercises about “The need for virtual memory”:
25
Exercises about “Cache memory”:
26
27
Exercises about “Flash memory and changes in memory technologies”:
28
29
30
31
32
33
3.Conclusions:
Through this practical exploration, we achieved a deeper understanding of the foundational components and
memory systems that enable computers to operate efficiently and reliably. Each component we studied, from
cache memory to logic gates, plays a crucial role in the processing power and versatility of modern computing
systems.
The study of cache memory illustrated how localized, high-speed data storage close to the CPU can
drastically reduce processing delays, particularly for frequently accessed data. This feature alone is
instrumental in boosting overall system performance. Additionally, by examining CPU cores, we learned how
multicore processing supports parallelism, enabling a computer to perform multiple tasks simultaneously,
which is especially useful in today’s multitasking and multithreading environments.
Our investigation into binary data representation reaffirmed its suitability for electronic circuitry, as the binary
system’s simplicity aligns seamlessly with the digital nature of transistors. Further, by exploring logic gates
(AND, OR, NOT) and their truth tables, we recognized their importance as the building blocks of digital logic.
These gates allow computers to perform complex operations by manipulating binary data, making them
essential to all computing processes.
The study of RAM highlighted its role as a fast-access memory necessary for running applications, while the
exploration of virtual memory provided insights into how systems handle memory limitations, ensuring stable
performance even when physical RAM is insufficient. The layered design of cache levels in modern CPUs
demonstrated how various cache types and locations allow for even faster data access, enhancing
performance by minimizing the CPU’s dependency on slower main memory.
Finally, our examination of flash memory and recent advancements in memory technologies revealed how
modern storage solutions, such as 3D NAND and Optane, bridge the performance gap between traditional
storage and RAM. These technologies have enhanced both the speed and durability of data storage, ensuring
that computers are faster, more efficient, and more capable of handling intensive tasks.
In conclusion, this practical work successfully met its objectives, providing a comprehensive look at the
essential components and memory systems in a computer. Each element plays a distinct yet interdependent
role in the performance, reliability, and versatility of modern computers, and together, they represent the
sophisticated design that drives all digital technology.
4.References:
5.Appendices:
34
35
36
Worksheets about “CPU cores”:
37
Worksheets about “Binary data”:
38
39
Worksheets about “Logic Gates AND, OR, NOT”:
40
41
Worksheets about “Truth Tables”:
42
43
44
45
Worksheets about “The need for RAM”:
46
47
48
Worksheets about “How RAM affects performance”:
49
50
51
Worksheets about “The need for virtual memory”:
52
53
54