SlideShare ist ein Scribd-Unternehmen logo
1 von 29
AUXILIARY MEMORY
An Auxiliary memory is known as the lowest-cost, highest-capacity and slowest-access
storage in a computer system.
It is where programs and data are kept for long-term storage or when not in
immediate use.
The most common examples of auxiliary memories are magnetic tapes and magnetic
disks.
They are two types
Magnetic Disks
Magnetic Tapes
• Magnetic Disks
• A magnetic disk is a type of memory constructed using a circular plate of
metal or plastic coated with magnetized materials.
• Usually, both sides of the disks are used to carry out read/write operations.
• However, several disks may be stacked on one spindle with read/write head
available on each surface.
• The following image shows the structural representation for a magnetic disk.
RULES
• A magnetic disk is a circular plate constructed of metal or plastic coated with
magnetized material.
• Often both sides of the disk are used and several disks may be stacked on one spindle
with read/write heads available on each surface.
• All disks rotate together at high speed and are not stopped or started from access
purposes.
• Bits are stored in the magnetized surface in spots along concentric circles called tracks.
• The tracks are commonly divided into sections called sectors.
• In most systems, the minimum quantity of information which can be transferred is a
sector
• A disk system is addressed by address bits that specify the disk number, the disk
surface, the sector number and the track within the sector.
• After the read/write heads are positioned in the specified track, the system has to
wait until the rotating disk reaches the specified sector under the read/write head.
• Information transfer is very fast once the beginning of a sector has been reached.
• Disks may have multiple heads and simultaneous transfer of bits from several tracks
at the same time.
• Disks that are permanently attached to the unit assembly and cannot be removed
by the occasional user are called hard disks.
• A disk drive with removable disks is called a floppy disk.
• Magnetic Tape
• The Magnetic tape itself is a strip of plastic coated with a magnetic recording
medium.
• Bits are recorded as magnetic spots on the tape along several tracks.
• Usually, seven or nine bits are recorded simultaneously to form a character together
with a parity bit.
• Read/write heads are mounted one in each track so that data can be recorded and
read as a sequence of characters.
• Magnetic tape units can be stopped, started to move forward or in reverse, or can
be rewound.
• Gaps of unrecorded tape are inserted between records where the tape can be
stopped
• Magnetic Disk Advantages
• Non-volatile,
• high storage capacity
• cost-effective, durable
• widely compatible.
• Disadvantages of magnetic storage
• Slower access speeds
• sensitivity to physical damage
• size and weight
• power consumption
• noise.
Probably the cheapest form of
storage per megabyte of storage
Serial access so can be quite
slow to access data
Can store large amounts of data -
up to 1 Terabyte per tape
cartridge
Need a special piece of
equipment to record and read the
data on the tape
Can be set up to do the back up
overnight or over the weekend
The data may be corrupted if the
tape is placed near a strong
magnetic field e.g. a large
speaker or magnet
CACHE MEMORY
• Cache Memory is a special very high-speed memory.
• The cache is a smaller and faster memory that stores copies of the data from
frequently used main memory locations.
• There are various different independent caches in a CPU, which store
instructions and data.
• The most important use of cache memory is that it is used to reduce the average
time to access data from the main memory.
• Characteristics of Cache Memory
• Cache memory is an extremely fast memory type that acts as a buffer between RAM
and the CPU.
• Cache Memory holds frequently requested data and instructions so that they are
immediately available to the CPU when needed.
• Cache memory is costlier than main memory or disk memory but more economical
than CPU registers.
• Cache Memory is used to speed up and synchronize with a high-speed CPU.
• When the CPU needs to access memory, the cache is examined. If the word is found in
the
• cache, it is read from the fast memory. If the word addressed by the CPU is not found in
the
• cache, the main memory is accessed to read the word. A block of words containing the
one just
• accessed is then transferred from main memory to cache memory
The performance of cache memory is frequently measured in terms of a
quantity called hit ratio.
When the CPU refers to memory and finds the word in cache, it is said to
produce a hit.
If the word is not found in cache, it is in main memory and it counts as a
miss.
 Hit Ratio(H) = hit / (hit + miss) = no. of hits/total accesses
 Miss Ratio = miss / (hit + miss) = no. of miss/total accesses = 1 - hit
ratio(H)
• The transformation of data from main memory to cache memory is referred to as a
mapping process.
Three types of mapping procedures are :
1. Associative mapping
2. Direct mapping
3. Set-associative mapping.
• ASSOCIATIVE MAPPING
• The faster and most flexible cache organization use an associative memory.
• The associative memory stores both the address and content (data) of the
memory word.
• This permits any location in cache to store any word from main memory.
• A CPU address of 15 bits is placed in the argument register and the associative
memory is searched for a matching address.
• If the address is found, the corresponding 12-bit data is read and sent to the CPU.
• If no match occurs, the main memory is accessed for the word.
• The address-data pair is then transferred to the associative cache memory.
• If the cache is full, an address− data pair must be displaced to make room for a
pair that is needed and not presently in the cache
• Direct Mapping
• The simplest technique, known as direct mapping, maps each block of main memory
into only one possible cache line.
• or In Direct mapping, assign each memory block to a specific line in the cache.
• If a line is previously taken up by a memory block when a new block needs to be
loaded, the old block is trashed.
• An address space is split into two parts index field and a tag field.
• The cache is used to store the tag field whereas the rest is stored in the main memory.
• Direct mapping`s performance is directly proportional to the Hit ratio.
• SET-ASSOCIATIVE MAPPING
• Set-associative mapping is an improvement over the direct-mapping organization in
that each word of cache can store two or more words of memory under the same index
address.
• Each data word is stored together with its tag and the number of tag-data items in one
word of cache is said to form a set.
• Each index address refers to two data words and their associated tags.
• Each tag requires six bits and each data word has 12 bits, so the word length is 2(6 +
12) = 36 bits.
• An index address of nine bits can accommodate 512 words.
• Thus the size of cache memory is 512 × 36.
• It can accommodate 1024 The words stored at addresses 01000 and 02000
The words stored at addresses 01000 and 02000 of main memory are stored in cache memory at index address
000.
Similarly, the words at addresses 02777 and 00777 are stored in cache at index address 777.
When the CPU generates a memory request, the index value of the address is used to access the
cache.
The tag field of the CPU address is then compared with both tags in the cache to
determine if a match occurs.
The hit ratio will improve as the set size increases because more words with the same index but
different tags can reside in cache.
• Advantages of Cache Memory
Cache Memory is faster in comparison to main memory and secondary memory.
Programs stored by Cache Memory can be executed in less time.
The data access time of Cache Memory is less than that of the main memory.
Cache Memory stored data and instructions that are regularly used by the CPU,
therefore it increases the performance of the CPU.
• Disadvantages of Cache Memory
Cache Memory is costlier than primary memory and secondary memory.
Data is stored on a temporary basis in Cache Memory.
Whenever the system is turned off, data and instructions stored in cache memory get
destroyed.
The high cost of cache memory increases the price of the Computer System
VIRTUAL MEMORY
• In a memory hierarchy system, programs and data are brought into main memory as
they are needed by the CPU.
• Virtual memory is a concept used in some large computer systems that permit the user
to construct programs as though a large memory space were available, equal to the
totality of auxiliary memory.
• A virtual memory system provides a mechanism for translating program-generated
addresses into correct main memory locations.
• This is done dynamically, while programs are being executed in the CPU.
• The translation or mapping is handled automatically by the hardware by means of a
mapping table.
• ADDRESS SPACE AND MEMORY SPACE
• An address used by a programmer will be called a virtual address, and the set of such
addresses the address space.
• An address in main memory is called a location or physical address. The set of such
locations is called the memory space.
• In most computers the address and memory spaces are identical. The address space
is allowed to be larger than the memory space in computers with virtual memory.
• As an illustration, consider a computer with a main-memory capacity of 32K words (K
=1024).
• Fifteen bits are needed to specify a physical address in memory since 32K = 215.
Suppose that the computer has available auxiliary memory for storing 220 = 1024K
words.
• Denoting the address space by N and the memory space by M, we then have for this
example N = 1024K and M = 32K.
• In a multiprogram computer system, programs and data are transferred to and from
auxiliary memory and main memory based on demands imposed by the CPU. Suppose
that program 1 is currently being executed in the CPU.
• Program 1 and a portion of its associated data is moved from auxiliary memory into
main memory as
• Portions of programs and data need not be in contiguous locations in memory since
information is being moved in and out, and empty spaces may be available in scattered
locations in memory.
• The address field of an instruction code will consist of 20 bits but physical memory
addresses must be specified with only 15 bits.
• A table is then needed, to map a virtual address of 20 bits to a physical address of 15 bits.
The mapping is a dynamic operation, which means that every address is translated
immediately as a word is referenced by CPU.
• ADDRESS MAPPING USING PAGES
• The table implementation of the address mapping is simplified if the information in
the address space and the memory space are each divided into groups of fixed size.
• The physical memory is broken down into groups of equal size called blocks, which
may range from 64 to 4096 words each.
• The term page refers to groups of address space of the same size.
• A page refers to the organization of address space, while a block refers to the
organization of memory space.
• The programs are also considered to be split into pages.
• Portions of programs are moved from auxiliary memory to main memory in records
equal to the size of a page.
• The term “page frame” is sometimes used to denote a block.
• Consider a computer with an address space of 8K and a memory space of 4K.
• If we split each into groups of 1K words we obtain eight pages and four
• blocks as shown in Fig.
• At any given time, up to four pages of address space may reside in main memory in any
one of the four blocks.
• The mapping from address space to memory space is facilitated if each virtual address is
considered to be represented by two numbers: a page number address and a line within
the page.
PAGE REPLACEMENT
• When a page fault occurs in a virtual memory system, it signifies that the page referenced
by the CPU is not in main memory.
• A new page is then transferred from auxiliary memory to main memory.
• If main memory is full, it would be necessary to remove a page from a memory block to
make room for the new page.
• Two of the most common replacement algorithms used are the first-in first-out (FIFO) and
the least recently used (LRU).
• The FIFO algorithm selects for replacement the page that has been in memory the
longest time.
• Each time a page is loaded into memory, its identification number is pushed into a FIFO
stack.
• FIFO will be full whenever memory has no more empty blocks.
• When a new page must be loaded, the page least recently brought in is removed

Weitere ähnliche Inhalte

Ähnlich wie Auxiliary, Cache and Virtual memory.pptx

Advanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeAdvanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeLalfakawmaKh
 
coa-Unit5-ppt1 (1).pptx
coa-Unit5-ppt1 (1).pptxcoa-Unit5-ppt1 (1).pptx
coa-Unit5-ppt1 (1).pptxRuhul Amin
 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisationRamjiChaurasiya
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...Asst.prof M.Gokilavani
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Unit-4 swapping.pptx
Unit-4 swapping.pptxUnit-4 swapping.pptx
Unit-4 swapping.pptxItechAnand1
 
Computer organization memory hierarchy
Computer organization memory hierarchyComputer organization memory hierarchy
Computer organization memory hierarchyAJAL A J
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxAmanuelmergia
 
19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdfJESUNPK
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
cache memory introduction, level, function
cache memory introduction, level, functioncache memory introduction, level, function
cache memory introduction, level, functionTeddyIswahyudi1
 
Project Presentation Final
Project Presentation FinalProject Presentation Final
Project Presentation FinalDhritiman Halder
 
Chapter 8 computer memory system overview
Chapter 8 computer memory system overviewChapter 8 computer memory system overview
Chapter 8 computer memory system overviewAhlamAli20
 
Elements of cache design
Elements of cache designElements of cache design
Elements of cache designRohail Butt
 

Ähnlich wie Auxiliary, Cache and Virtual memory.pptx (20)

Advanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeAdvanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and Type
 
coa-Unit5-ppt1 (1).pptx
coa-Unit5-ppt1 (1).pptxcoa-Unit5-ppt1 (1).pptx
coa-Unit5-ppt1 (1).pptx
 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisation
 
Os unit 3
Os unit 3Os unit 3
Os unit 3
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Unit-4 swapping.pptx
Unit-4 swapping.pptxUnit-4 swapping.pptx
Unit-4 swapping.pptx
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory Management.pdf
Memory Management.pdfMemory Management.pdf
Memory Management.pdf
 
Computer organization memory hierarchy
Computer organization memory hierarchyComputer organization memory hierarchy
Computer organization memory hierarchy
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
 
Cache simulator
Cache simulatorCache simulator
Cache simulator
 
19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
cache memory management
cache memory managementcache memory management
cache memory management
 
cache memory introduction, level, function
cache memory introduction, level, functioncache memory introduction, level, function
cache memory introduction, level, function
 
Project Presentation Final
Project Presentation FinalProject Presentation Final
Project Presentation Final
 
Chapter 8 computer memory system overview
Chapter 8 computer memory system overviewChapter 8 computer memory system overview
Chapter 8 computer memory system overview
 
Elements of cache design
Elements of cache designElements of cache design
Elements of cache design
 

Mehr von Ramakrishna Reddy Bijjam

Arrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptxArrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptxRamakrishna Reddy Bijjam
 
Python With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptxPython With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptxRamakrishna Reddy Bijjam
 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxRamakrishna Reddy Bijjam
 
Certinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptxCertinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptxRamakrishna Reddy Bijjam
 
Auxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptxAuxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptxRamakrishna Reddy Bijjam
 

Mehr von Ramakrishna Reddy Bijjam (20)

Arrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptxArrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptx
 
Python With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptxPython With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptx
 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptx
 
Certinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptxCertinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptx
 
Auxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptxAuxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptx
 
Random Forest Decision Tree.pptx
Random Forest Decision Tree.pptxRandom Forest Decision Tree.pptx
Random Forest Decision Tree.pptx
 
K Means Clustering in ML.pptx
K Means Clustering in ML.pptxK Means Clustering in ML.pptx
K Means Clustering in ML.pptx
 
Pandas.pptx
Pandas.pptxPandas.pptx
Pandas.pptx
 
Python With MongoDB.pptx
Python With MongoDB.pptxPython With MongoDB.pptx
Python With MongoDB.pptx
 
Python with MySql.pptx
Python with MySql.pptxPython with MySql.pptx
Python with MySql.pptx
 
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdfPYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdf
 
BInary file Operations.pptx
BInary file Operations.pptxBInary file Operations.pptx
BInary file Operations.pptx
 
Data Science in Python.pptx
Data Science in Python.pptxData Science in Python.pptx
Data Science in Python.pptx
 
CSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptxCSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptx
 
HTML files in python.pptx
HTML files in python.pptxHTML files in python.pptx
HTML files in python.pptx
 
Regular Expressions in Python.pptx
Regular Expressions in Python.pptxRegular Expressions in Python.pptx
Regular Expressions in Python.pptx
 
datareprersentation 1.pptx
datareprersentation 1.pptxdatareprersentation 1.pptx
datareprersentation 1.pptx
 
Apriori.pptx
Apriori.pptxApriori.pptx
Apriori.pptx
 
Eclat.pptx
Eclat.pptxEclat.pptx
Eclat.pptx
 
Time Series.pptx
Time Series.pptxTime Series.pptx
Time Series.pptx
 

Kürzlich hochgeladen

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 

Kürzlich hochgeladen (20)

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 

Auxiliary, Cache and Virtual memory.pptx

  • 1. AUXILIARY MEMORY An Auxiliary memory is known as the lowest-cost, highest-capacity and slowest-access storage in a computer system. It is where programs and data are kept for long-term storage or when not in immediate use. The most common examples of auxiliary memories are magnetic tapes and magnetic disks. They are two types Magnetic Disks Magnetic Tapes
  • 2. • Magnetic Disks • A magnetic disk is a type of memory constructed using a circular plate of metal or plastic coated with magnetized materials. • Usually, both sides of the disks are used to carry out read/write operations. • However, several disks may be stacked on one spindle with read/write head available on each surface. • The following image shows the structural representation for a magnetic disk.
  • 3.
  • 5. • A magnetic disk is a circular plate constructed of metal or plastic coated with magnetized material. • Often both sides of the disk are used and several disks may be stacked on one spindle with read/write heads available on each surface. • All disks rotate together at high speed and are not stopped or started from access purposes. • Bits are stored in the magnetized surface in spots along concentric circles called tracks. • The tracks are commonly divided into sections called sectors. • In most systems, the minimum quantity of information which can be transferred is a sector
  • 6. • A disk system is addressed by address bits that specify the disk number, the disk surface, the sector number and the track within the sector. • After the read/write heads are positioned in the specified track, the system has to wait until the rotating disk reaches the specified sector under the read/write head. • Information transfer is very fast once the beginning of a sector has been reached. • Disks may have multiple heads and simultaneous transfer of bits from several tracks at the same time. • Disks that are permanently attached to the unit assembly and cannot be removed by the occasional user are called hard disks. • A disk drive with removable disks is called a floppy disk.
  • 7. • Magnetic Tape • The Magnetic tape itself is a strip of plastic coated with a magnetic recording medium. • Bits are recorded as magnetic spots on the tape along several tracks. • Usually, seven or nine bits are recorded simultaneously to form a character together with a parity bit. • Read/write heads are mounted one in each track so that data can be recorded and read as a sequence of characters. • Magnetic tape units can be stopped, started to move forward or in reverse, or can be rewound. • Gaps of unrecorded tape are inserted between records where the tape can be stopped
  • 8.
  • 9. • Magnetic Disk Advantages • Non-volatile, • high storage capacity • cost-effective, durable • widely compatible. • Disadvantages of magnetic storage • Slower access speeds • sensitivity to physical damage • size and weight • power consumption • noise.
  • 10. Probably the cheapest form of storage per megabyte of storage Serial access so can be quite slow to access data Can store large amounts of data - up to 1 Terabyte per tape cartridge Need a special piece of equipment to record and read the data on the tape Can be set up to do the back up overnight or over the weekend The data may be corrupted if the tape is placed near a strong magnetic field e.g. a large speaker or magnet
  • 11. CACHE MEMORY • Cache Memory is a special very high-speed memory. • The cache is a smaller and faster memory that stores copies of the data from frequently used main memory locations. • There are various different independent caches in a CPU, which store instructions and data. • The most important use of cache memory is that it is used to reduce the average time to access data from the main memory.
  • 12. • Characteristics of Cache Memory • Cache memory is an extremely fast memory type that acts as a buffer between RAM and the CPU. • Cache Memory holds frequently requested data and instructions so that they are immediately available to the CPU when needed. • Cache memory is costlier than main memory or disk memory but more economical than CPU registers. • Cache Memory is used to speed up and synchronize with a high-speed CPU. • When the CPU needs to access memory, the cache is examined. If the word is found in the • cache, it is read from the fast memory. If the word addressed by the CPU is not found in the • cache, the main memory is accessed to read the word. A block of words containing the one just • accessed is then transferred from main memory to cache memory
  • 13. The performance of cache memory is frequently measured in terms of a quantity called hit ratio. When the CPU refers to memory and finds the word in cache, it is said to produce a hit. If the word is not found in cache, it is in main memory and it counts as a miss.  Hit Ratio(H) = hit / (hit + miss) = no. of hits/total accesses  Miss Ratio = miss / (hit + miss) = no. of miss/total accesses = 1 - hit ratio(H)
  • 14. • The transformation of data from main memory to cache memory is referred to as a mapping process. Three types of mapping procedures are : 1. Associative mapping 2. Direct mapping 3. Set-associative mapping.
  • 15. • ASSOCIATIVE MAPPING • The faster and most flexible cache organization use an associative memory. • The associative memory stores both the address and content (data) of the memory word. • This permits any location in cache to store any word from main memory. • A CPU address of 15 bits is placed in the argument register and the associative memory is searched for a matching address. • If the address is found, the corresponding 12-bit data is read and sent to the CPU. • If no match occurs, the main memory is accessed for the word. • The address-data pair is then transferred to the associative cache memory. • If the cache is full, an address− data pair must be displaced to make room for a pair that is needed and not presently in the cache
  • 16.
  • 17. • Direct Mapping • The simplest technique, known as direct mapping, maps each block of main memory into only one possible cache line. • or In Direct mapping, assign each memory block to a specific line in the cache. • If a line is previously taken up by a memory block when a new block needs to be loaded, the old block is trashed. • An address space is split into two parts index field and a tag field. • The cache is used to store the tag field whereas the rest is stored in the main memory. • Direct mapping`s performance is directly proportional to the Hit ratio.
  • 18.
  • 19. • SET-ASSOCIATIVE MAPPING • Set-associative mapping is an improvement over the direct-mapping organization in that each word of cache can store two or more words of memory under the same index address. • Each data word is stored together with its tag and the number of tag-data items in one word of cache is said to form a set. • Each index address refers to two data words and their associated tags. • Each tag requires six bits and each data word has 12 bits, so the word length is 2(6 + 12) = 36 bits. • An index address of nine bits can accommodate 512 words. • Thus the size of cache memory is 512 × 36. • It can accommodate 1024 The words stored at addresses 01000 and 02000
  • 20. The words stored at addresses 01000 and 02000 of main memory are stored in cache memory at index address 000. Similarly, the words at addresses 02777 and 00777 are stored in cache at index address 777. When the CPU generates a memory request, the index value of the address is used to access the cache. The tag field of the CPU address is then compared with both tags in the cache to determine if a match occurs. The hit ratio will improve as the set size increases because more words with the same index but different tags can reside in cache.
  • 21. • Advantages of Cache Memory Cache Memory is faster in comparison to main memory and secondary memory. Programs stored by Cache Memory can be executed in less time. The data access time of Cache Memory is less than that of the main memory. Cache Memory stored data and instructions that are regularly used by the CPU, therefore it increases the performance of the CPU. • Disadvantages of Cache Memory Cache Memory is costlier than primary memory and secondary memory. Data is stored on a temporary basis in Cache Memory. Whenever the system is turned off, data and instructions stored in cache memory get destroyed. The high cost of cache memory increases the price of the Computer System
  • 22. VIRTUAL MEMORY • In a memory hierarchy system, programs and data are brought into main memory as they are needed by the CPU. • Virtual memory is a concept used in some large computer systems that permit the user to construct programs as though a large memory space were available, equal to the totality of auxiliary memory. • A virtual memory system provides a mechanism for translating program-generated addresses into correct main memory locations. • This is done dynamically, while programs are being executed in the CPU. • The translation or mapping is handled automatically by the hardware by means of a mapping table.
  • 23. • ADDRESS SPACE AND MEMORY SPACE • An address used by a programmer will be called a virtual address, and the set of such addresses the address space. • An address in main memory is called a location or physical address. The set of such locations is called the memory space. • In most computers the address and memory spaces are identical. The address space is allowed to be larger than the memory space in computers with virtual memory. • As an illustration, consider a computer with a main-memory capacity of 32K words (K =1024). • Fifteen bits are needed to specify a physical address in memory since 32K = 215. Suppose that the computer has available auxiliary memory for storing 220 = 1024K words.
  • 24. • Denoting the address space by N and the memory space by M, we then have for this example N = 1024K and M = 32K. • In a multiprogram computer system, programs and data are transferred to and from auxiliary memory and main memory based on demands imposed by the CPU. Suppose that program 1 is currently being executed in the CPU. • Program 1 and a portion of its associated data is moved from auxiliary memory into main memory as
  • 25. • Portions of programs and data need not be in contiguous locations in memory since information is being moved in and out, and empty spaces may be available in scattered locations in memory. • The address field of an instruction code will consist of 20 bits but physical memory addresses must be specified with only 15 bits. • A table is then needed, to map a virtual address of 20 bits to a physical address of 15 bits. The mapping is a dynamic operation, which means that every address is translated immediately as a word is referenced by CPU.
  • 26. • ADDRESS MAPPING USING PAGES • The table implementation of the address mapping is simplified if the information in the address space and the memory space are each divided into groups of fixed size. • The physical memory is broken down into groups of equal size called blocks, which may range from 64 to 4096 words each. • The term page refers to groups of address space of the same size. • A page refers to the organization of address space, while a block refers to the organization of memory space. • The programs are also considered to be split into pages. • Portions of programs are moved from auxiliary memory to main memory in records equal to the size of a page. • The term “page frame” is sometimes used to denote a block.
  • 27. • Consider a computer with an address space of 8K and a memory space of 4K. • If we split each into groups of 1K words we obtain eight pages and four • blocks as shown in Fig. • At any given time, up to four pages of address space may reside in main memory in any one of the four blocks. • The mapping from address space to memory space is facilitated if each virtual address is considered to be represented by two numbers: a page number address and a line within the page.
  • 28.
  • 29. PAGE REPLACEMENT • When a page fault occurs in a virtual memory system, it signifies that the page referenced by the CPU is not in main memory. • A new page is then transferred from auxiliary memory to main memory. • If main memory is full, it would be necessary to remove a page from a memory block to make room for the new page. • Two of the most common replacement algorithms used are the first-in first-out (FIFO) and the least recently used (LRU). • The FIFO algorithm selects for replacement the page that has been in memory the longest time. • Each time a page is loaded into memory, its identification number is pushed into a FIFO stack. • FIFO will be full whenever memory has no more empty blocks. • When a new page must be loaded, the page least recently brought in is removed