SlideShare a Scribd company logo
1 of 12
Main Memory
Main memory (primary memory) is held on chips
Backing storage is not main memory
Backing storage is sometimes called
secondary memory
Main Memory
Main Memory
11110011 11110011
Address
00000000
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
00001001
Main memory consists of storage locations which are
identified by unique addresses
Each storage location holds one word
(the number of bits the CPU can process in a single
operation)
8 bit computer holds 8 bits in a storage location
16 bit computer holds 16 bits in a storage location
There are two types of main memory:
Random Access Memory (RAM)
Read Only Memory (ROM)
Random Access Memory
• holds data/application programs from input devices/backing storage
• can hold the operating system
• all data is lost when the computer is switched off
Static RAM (SRAM)
Contents of memory will be retained as long as power is applied to the chips
Dynamic RAM (DRAM)
A continuous signal is needed to refresh (re-write) its contents
Static RAM has faster access speeds than DRAM
RAM is mainly made up of DRAM because it needs less power and its circuitry is simpler
Read Only Memory
• has contents which are fixed when the chip is manufactured
• holds the bootstrap loader part of the operating system
• retains its data when the computer is switched off
Programmable ROM (PROM)-
Empty of data when the chip is manufactured, can
be programmed by the user. Once programmed the
data cannot be erased.
Erasable PROM (EPROM)-
Like PROM only the chip can be removed from the
computer and the program erased and another
stored in its place using ultraviolet light.
Electrically EPROM (EEPROM) -
Like EPROM but electricity is used to erase and
reprogram selected contents.
Temporary storage outside RAM
Why?
Reading / writing data to and from memory can slow down the system
performance
To combat this problem, the processor can store data in cache memory
or its internal registers instead of the RAM
Solution
Temporary storage outside RAM
Main Memory Address
00000000
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
0000100111100011
00110011
00001110
11110000
11110011
11001010
11001100
00000011
00010001
01000000
Cache Memory
10000000
10000001
10000010
10000011
Address
Cache
• small amount of memory built into the processor
• physically closer to the processor than RAM
• stores the next instructions to be read
Processor
Temporary storage outside RAM
Main Memory Address
00000000
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
0000100111100011
00110011
00001110
11110000
11110011
11001010
11001100
00000011
00010001
01000000
Cache Memory
10000000
10000001
10000010
10000011
Address
Processor
Cache
• write through cache - contents of the RAM are updated at the same time as the contents of cache
• write back cache - contents of the RAM are updated only when the contents of cache are cleared
• cache uses static memory (SRAM)
Temporary storage outside RAM
Registers
Storage locations inside the processor which hold
• Data being processed (Memory Data Register)
• Addresses of memory locations to be accessed (Memory Address Register)
• Instructions being executed (Instruction Register)
There are other many other registers
Register contents can be accessed faster than RAM or cache memory
Temporary storage outside RAM
Virtual Memory
Part of the backing storage (hard disk) is set aside for
virtual memory
This disk area is used as a temporary location for
programs and data
It is useful when the computer does not have enough
RAM to store the entire program and its data
It is slower to access data held in virtual memory than
data held in main memory
Memory Comparison
The speed at which data can be accessed depends on the distance
between it and the processor
Registers
Cache memory
RAM
Virtual memory
Faster access
Slower access
Credits
Higher Computing – Computer Structure – Computer Memory
Produced by P. Greene for the City of Edinburgh Council 2004
Adapted by M. Cunningham 2010
All images licenced under Creative Commons 3.0
• 1GB DDR3 Memory Module by William Warby (wwarby on Flickr)
• Hard disc drive assembled by Crispin Semmens (conskeptical on Flickr)
• Mac ED Logic Board by Jesus A Alvarez (maczydeco on Flickr)

More Related Content

What's hot

Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Faraz Ahmed
 
computer memory and memory module
computer memory and memory modulecomputer memory and memory module
computer memory and memory modulethensi
 
RAM(Random Access Memory)
RAM(Random Access Memory)RAM(Random Access Memory)
RAM(Random Access Memory)JaneAlamAdnan
 
Primary memory (main memory)
Primary memory (main memory)Primary memory (main memory)
Primary memory (main memory)shah baadshah
 
Computer Hardware Basics
Computer Hardware BasicsComputer Hardware Basics
Computer Hardware BasicsMark Rotondella
 
Memory in computer
Memory in computerMemory in computer
Memory in computerahmed51236
 
Computer memory presentation
Computer memory presentationComputer memory presentation
Computer memory presentationaaravSingh41
 
Main memory of computer .ppt
Main memory of computer .pptMain memory of computer .ppt
Main memory of computer .pptBasraJaswinder
 
COMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSAngel Mary George
 
what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)shire ali
 
Motherboard and its components
Motherboard and its componentsMotherboard and its components
Motherboard and its componentsJishnu Pradeep
 
Types of computer
Types of computer Types of computer
Types of computer Sajib007
 
Components of a computer system
Components of a computer systemComponents of a computer system
Components of a computer systemMark Santos
 

What's hot (20)

Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)
 
Types of RAM
Types of RAMTypes of RAM
Types of RAM
 
computer memory and memory module
computer memory and memory modulecomputer memory and memory module
computer memory and memory module
 
RAM(Random Access Memory)
RAM(Random Access Memory)RAM(Random Access Memory)
RAM(Random Access Memory)
 
Primary memory (main memory)
Primary memory (main memory)Primary memory (main memory)
Primary memory (main memory)
 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
 
Computer Hardware Basics
Computer Hardware BasicsComputer Hardware Basics
Computer Hardware Basics
 
Memory in computer
Memory in computerMemory in computer
Memory in computer
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
Primary Storage
Primary StoragePrimary Storage
Primary Storage
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Computer memory presentation
Computer memory presentationComputer memory presentation
Computer memory presentation
 
Main memory of computer .ppt
Main memory of computer .pptMain memory of computer .ppt
Main memory of computer .ppt
 
COMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONS
 
what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)
 
Computer storage
Computer storageComputer storage
Computer storage
 
Motherboard and its components
Motherboard and its componentsMotherboard and its components
Motherboard and its components
 
Types of computer
Types of computer Types of computer
Types of computer
 
Memory System
Memory SystemMemory System
Memory System
 
Components of a computer system
Components of a computer systemComponents of a computer system
Components of a computer system
 

Viewers also liked

TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER Rajat More
 
5 Foolproof Business Communication Tools Every Company Needs
5 Foolproof Business Communication Tools Every Company Needs5 Foolproof Business Communication Tools Every Company Needs
5 Foolproof Business Communication Tools Every Company NeedsAxero Solutions
 
Computer storage devices
Computer storage devicesComputer storage devices
Computer storage devicesRizwan Qamar
 

Viewers also liked (6)

Presentation on memory
Presentation on memoryPresentation on memory
Presentation on memory
 
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
 
5 Foolproof Business Communication Tools Every Company Needs
5 Foolproof Business Communication Tools Every Company Needs5 Foolproof Business Communication Tools Every Company Needs
5 Foolproof Business Communication Tools Every Company Needs
 
Storage devices
Storage devicesStorage devices
Storage devices
 
Computer storage devices
Computer storage devicesComputer storage devices
Computer storage devices
 
Presentation on storage device
Presentation on storage devicePresentation on storage device
Presentation on storage device
 

Similar to Main Memory Explained

logical memory-organisation
logical memory-organisationlogical memory-organisation
logical memory-organisationAmrita Manna
 
Random access memory
Random access memoryRandom access memory
Random access memoryBESOR ACADEMY
 
Lecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsLecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsJack Hyman
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor MemoriesRahul Bandhe
 
its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...ssuserf86fba
 
cache memory and cloud computing technology
cache memory and cloud computing technologycache memory and cloud computing technology
cache memory and cloud computing technologyssuserf86fba
 
What is Computer Memory.ppt
What is Computer Memory.pptWhat is Computer Memory.ppt
What is Computer Memory.pptMuhammad Naeem
 
5_6097975312522412493.pptx
5_6097975312522412493.pptx5_6097975312522412493.pptx
5_6097975312522412493.pptxKunalGola6
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devicesChuuHye
 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdfISHAN194169
 
Memory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxMemory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxwajihaabbas95
 

Similar to Main Memory Explained (20)

SDD Memory
SDD MemorySDD Memory
SDD Memory
 
logical memory-organisation
logical memory-organisationlogical memory-organisation
logical memory-organisation
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
Random access memory
Random access memoryRandom access memory
Random access memory
 
primary memory
primary memoryprimary memory
primary memory
 
Ram ppt
Ram pptRam ppt
Ram ppt
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Memory
MemoryMemory
Memory
 
Lecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsLecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating Systems
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
 
Memory
Memory Memory
Memory
 
Week3 v2 (1)
Week3 v2 (1)Week3 v2 (1)
Week3 v2 (1)
 
its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...
 
cache memory and cloud computing technology
cache memory and cloud computing technologycache memory and cloud computing technology
cache memory and cloud computing technology
 
What is Computer Memory.ppt
What is Computer Memory.pptWhat is Computer Memory.ppt
What is Computer Memory.ppt
 
5_6097975312522412493.pptx
5_6097975312522412493.pptx5_6097975312522412493.pptx
5_6097975312522412493.pptx
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devices
 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdf
 
Memory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxMemory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptx
 
Inside the computer
Inside the computerInside the computer
Inside the computer
 

More from Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 

Main Memory Explained

  • 1.
  • 2. Main Memory Main memory (primary memory) is held on chips Backing storage is not main memory Backing storage is sometimes called secondary memory
  • 3. Main Memory Main Memory 11110011 11110011 Address 00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000 00001001 Main memory consists of storage locations which are identified by unique addresses Each storage location holds one word (the number of bits the CPU can process in a single operation) 8 bit computer holds 8 bits in a storage location 16 bit computer holds 16 bits in a storage location There are two types of main memory: Random Access Memory (RAM) Read Only Memory (ROM)
  • 4. Random Access Memory • holds data/application programs from input devices/backing storage • can hold the operating system • all data is lost when the computer is switched off Static RAM (SRAM) Contents of memory will be retained as long as power is applied to the chips Dynamic RAM (DRAM) A continuous signal is needed to refresh (re-write) its contents Static RAM has faster access speeds than DRAM RAM is mainly made up of DRAM because it needs less power and its circuitry is simpler
  • 5. Read Only Memory • has contents which are fixed when the chip is manufactured • holds the bootstrap loader part of the operating system • retains its data when the computer is switched off Programmable ROM (PROM)- Empty of data when the chip is manufactured, can be programmed by the user. Once programmed the data cannot be erased. Erasable PROM (EPROM)- Like PROM only the chip can be removed from the computer and the program erased and another stored in its place using ultraviolet light. Electrically EPROM (EEPROM) - Like EPROM but electricity is used to erase and reprogram selected contents.
  • 6. Temporary storage outside RAM Why? Reading / writing data to and from memory can slow down the system performance To combat this problem, the processor can store data in cache memory or its internal registers instead of the RAM Solution
  • 7. Temporary storage outside RAM Main Memory Address 00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000 0000100111100011 00110011 00001110 11110000 11110011 11001010 11001100 00000011 00010001 01000000 Cache Memory 10000000 10000001 10000010 10000011 Address Cache • small amount of memory built into the processor • physically closer to the processor than RAM • stores the next instructions to be read Processor
  • 8. Temporary storage outside RAM Main Memory Address 00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000 0000100111100011 00110011 00001110 11110000 11110011 11001010 11001100 00000011 00010001 01000000 Cache Memory 10000000 10000001 10000010 10000011 Address Processor Cache • write through cache - contents of the RAM are updated at the same time as the contents of cache • write back cache - contents of the RAM are updated only when the contents of cache are cleared • cache uses static memory (SRAM)
  • 9. Temporary storage outside RAM Registers Storage locations inside the processor which hold • Data being processed (Memory Data Register) • Addresses of memory locations to be accessed (Memory Address Register) • Instructions being executed (Instruction Register) There are other many other registers Register contents can be accessed faster than RAM or cache memory
  • 10. Temporary storage outside RAM Virtual Memory Part of the backing storage (hard disk) is set aside for virtual memory This disk area is used as a temporary location for programs and data It is useful when the computer does not have enough RAM to store the entire program and its data It is slower to access data held in virtual memory than data held in main memory
  • 11. Memory Comparison The speed at which data can be accessed depends on the distance between it and the processor Registers Cache memory RAM Virtual memory Faster access Slower access
  • 12. Credits Higher Computing – Computer Structure – Computer Memory Produced by P. Greene for the City of Edinburgh Council 2004 Adapted by M. Cunningham 2010 All images licenced under Creative Commons 3.0 • 1GB DDR3 Memory Module by William Warby (wwarby on Flickr) • Hard disc drive assembled by Crispin Semmens (conskeptical on Flickr) • Mac ED Logic Board by Jesus A Alvarez (maczydeco on Flickr)