SlideShare ist ein Scribd-Unternehmen logo
1 von 14
INTRODUCTION
In computing, memory refers to the physical devices used to store programs
(sequences of instructions) or data (e.g. program state information) on a temporary
or permanent basis for use in a computer or other digital electronic device

The term "memory" applies to any electronic component capable of temporarily
storing data. There are two main categories of memories:



   Internal memory that temporarily memorises data while programs are running.
Internal memory uses microconductors, i.e. fast specialised electronic circuits.
Internal memory corresponds to what we call random access memory (RAM).

  Auxiliary memory (also called physical memory or external memory) that stores
information over the long term, including after the computer is turned off.
Auxiliary memory corresponds to magnetic storage devices such as the hard drive,
optical storage devices such as CD-ROMs and DVD-ROMs, as well as read-only
memories.




Technical Characteristics



The main characteristics of a memory are:

      Capacity, representing the global volume of information (in bits) that the
      memory can store
      Access time, corresponding to the time interval between the read/write
      request and the availability of the data
      Cycle time, representing the minimum time interval between two successive
      accesses
      Throughput, which defines the volume of information exchanged per unit of
      time, expressed in bits per second
Non-volatility, which characterises the ability of a memory to store data
      when it is not being supplied with electricity




  The term "memory" is often (but not always) associated with addressable
semiconductor memory, i.e. integrated circuits consisting of silicon-based
transistors, used for example as primary memory but also other purposes in
computers and other digital electronic devices.

There are two main types of semiconductor memory:

      Volatile
      Non-volatile

. Examples of non-volatile memory are flash memory (sometimes used as
secondary,    sometimes      primary      computer    memory)     and
ROM/PROM/EPROM/EEPROM memory (used for firmware such as boot
programs).

  Examples of volatile memory are primary memory (typically dynamic RAM,
DRAM), and fast CPU cache memory (typically static RAM, SRAM, which is fast but
energy-consuming and offer lower memory capacity per area unit than DRAM) .

The semiconductor memory is organized into memory cells or bistable flip-flops,
each storing one binary bit (0 or 1). The memory cells are grouped into words of
fix word length, for example 1, 2, 4, 8, 16, 32, 64 or 128 bit. Each word can be
accessed by a binary address of N bit, making it possible to store 2 raised by N
words in the memory. This implies that processor registers normally are not
considered as memory, since they only store one word and do not include an
addressing mechanism.

Volatile memory
Volatile memory is computer memory that requires power to maintain the stored
information. Most modern semiconductor volatile memory is either Static RAM
(see SRAM) or dynamic RAM (see DRAM). SRAM retains its contents as long as the
power is connected and is easy to interface to but uses six transistors per bit.
Dynamic RAM is more complicated to interface to and control and needs regular
refresh cycles to prevent its contents being lost. However, DRAM uses only one
transistor and a capacitor per bit, allowing it to reach much higher densities and,
with more bits on a memory chip, be much cheaper per bit. SRAM is not
worthwhile for desktop system memory, where DRAM dominates, but is used for
their cache memories. SRAM is commonplace in small embedded systems, which
might only need tens of kilobytes or less. Forthcoming volatile memory
technologies that hope to replace or compete with SRAM and DRAM include Z-
RAM, TTRAM, A-RAM and ETA RAM.

Non-volatile memory

Non-volatile memory is computer memory that can retain the stored information
even when not powered. Examples of non-volatile memory include read-only
memory (see ROM), flash memory, most types of magnetic computer storage
devices (e.g. hard disks, floppy discs and magnetic tape), optical discs, and early
computer storage methods such as paper tape and punched cards. Forthcoming
non-volatile memory technologies include FeRAM, CBRAM, PRAM, SONOS, RRAM,
Racetrack memory, NRAM and Millipede

                       HOW MEMORY WORKS?
 Although memory is technically any form of electronic storage, it is used most
often to identify fast, temporary forms of storage. If your computer's CPU had to
constantly access the hard drive to retrieve every piece of data it needs, it would
operate very slowly. When the information is kept in memory, the CPU can access
it much more quickly. Most forms of memory are intended to store data
temporarily.

As you can see in the diagram above, the CPU accesses memory according to a
distinct hierarchy. Whether it comes from permanent storage (the hard drive) or
input (the keyboard), most data goes in random access memory (RAM) first. The
CPU then stores pieces of data it will need to access, often in a cache, and
maintains certain special instructions in the register. We'll talk about cache and
registers later.

All of the components in your computer, such as the CPU, the hard drive and the
operating system, work together as a team, and memory is one of the most
essential parts of this team. From the moment you turn your computer on until
the time you shut it down, your CPU is constantly using memory. Let's take a look
at a typical scenario:

•     You turn the computer on.

•     The computer loads data from read-only memory (ROM) and performs a
power-on self-test (POST) to make sure all the major components are functioning
properly. As part of this test, the memory controller checks all of the memory
addresses with a quick read/write operation to ensure that there are no errors in
the memory chips. Read/write means that data is written to a bit and then read
from that bit.

•     The computer loads the basic input/output system (BIOS) from ROM. The
BIOS provides the most basic information about storage devices, boot sequence,
security, Plug and Play (auto device recognition) capability and a few other items.

•     The computer loads the operating system (OS) from the hard drive into the
system's RAM. Generally, the critical parts of the operating system are maintained
in RAM as long as the computer is on. This allows the CPU to have immediate
access to the operating system, which enhances the performance and
functionality of the overall system.

•     When you open an application, it is loaded into RAM. To conserve RAM
usage, many applications load only the essential parts of the program initially and
then load other pieces as needed.

•     After an application is loaded, any files that are opened for use in that
application are loaded into RAM.

•      When you save a file and close the application, the file is written to the
specified storage device, and then it and the application are purged from RAM.
¬In the list above, every time something is loaded or opened, it is placed into
RAM. This simply means that it has been put in the computer's temporary storage
area so that the CPU can access that information more easily. The CPU requests
the data it needs from RAM, processes it and writes new data back to RAM in a
continuous cycle. In most computers, this shuffling of data between the CPU and
RAM happens millions of times every second. When an application is closed, it
and any accompanying files are usually purged (deleted) from RAM to make room
for new data. If the changed files are not saved to a permanent storage device
before being purged, they are lost.In the list above, every time something is
loaded or opened, it is placed into RAM. This simply means that it has been put in
the computer's temporary storage area so that the CPU can access that
information more easily. The CPU requests the data it needs from RAM, processes
it and writes new data back to RAM in a continuous cycle. In most computers, this
shuffling of data between the CPU and RAM happens millions of times every
second. When an application is closed, it and any accompanying files are usually
purged (deleted) from RAM to make room for new data. If the changed files are
not saved to a permanent storage device before being purged, they are lost.

           RAM-RANDOM ACCESS MEMORY
As the name suggests, Random Access Memory can find and access the data
randomly. Sequential access is the opposite of Random access. In Sequential
access, to retrieve the data that is stored in the middle, all the data from the
beginning has to be read sequentially until the searched data is found. So it takes
time. Where as in RAM, the data can be directly jumped to the middle if
necessary without having to read the data sequentially. So the reading is faster. In
computers and printers RAM is used. In fact, RAM is the most important memory
in computers and printers. Every file or application opened is placed in RAM. Any
information the computer needs or uses becomes part of a continuous cycle
where the CPU requests data from RAM, processes it and then writes new data
back to RAM. This can happen millions of times a second. However, this is usually
just for temporary file storage, so unless the data is saved somewhere, it is
deleted when the files or applications are closed.

                      How RAM works???
Although memory is technically any form of electronic storage, it is used most
often to identify fast, temporary forms of storage. If your computer's CPU had to
constantly access the hard drive to retrieve every piece of data it needs, it would
operate very slowly. When the information is kept in memory, the CPU can access
it much more quickly. Most forms of memory are intended to store data
temporarily.

As you can see in the diagram above, the CPU accesses memory according to a
distinct hierarchy. Whether it comes from permanent storage (the hard drive) or
input (the keyboard), most data goes in random access memory (RAM) first. The
CPU then stores pieces of data it will need to access, often in a cache, and
maintains certain special instructions in the register. We'll talk about cache and
registers later.

All of the components in your computer, such as the CPU, the hard drive and the
operating system, work together as a team, and memory is one of the most
essential parts of this team. From the moment you turn your computer on until
the time you shut it down, your CPU is constantly using memory. Let's take a look
at a typical scenario:

•     You turn the computer on.

•     The computer loads data from read-only memory (ROM) and performs a
power-on self-test (POST) to make sure all the major components are functioning
properly. As part of this test, the memory controller checks all of the memory
addresses with a quick read/write operation to ensure that there are no errors in
the memory chips. Read/write means that data is written to a bit and then read
from that bit.

•     The computer loads the basic input/output system (BIOS) from ROM. The
BIOS provides the most basic information about storage devices, boot sequence,
security, Plug and Play (auto device recognition) capability and a few other items.

•     The computer loads the operating system (OS) from the hard drive into the
system's RAM. Generally, the critical parts of the operating system are maintained
in RAM as long as the computer is on. This allows the CPU to have immediate
access to the operating system, which enhances the performance and
functionality of the overall system.
•     When you open an application, it is loaded into RAM. To conserve RAM
usage, many applications load only the essential parts of the program initially and
then load other pieces as needed.

•     After an application is loaded, any files that are opened for use in that
application are loaded into RAM.

•      When you save a file and close the application, the file is written to the
specified storage device, and then it and the application are purged from RAM.

¬In the list above, every time something is loaded or opened, it is placed into
RAM. This simply means that it has been put in the computer's temporary storage
area so that the CPU can access that information more easily. The CPU requests
the data it needs from RAM, processes it and writes new data back to RAM in a
continuous cycle. In most computers, this shuffling of data between the CPU and
RAM happens millions of times every second. When an application is closed, it
and any accompanying files are usually purged (deleted) from RAM to make room
for new data. If the changed files are not saved to a permanent storage device
before being purged, they are lost.automatically thousands of times per second.

                        TYPES OF RAM
Ram is built by using two different techniques:

   1. DRAM: DRAM stands for dynamic fandom access memory. It is a type of
      memory that is used in most computers. It is the least expensive kind of
      RAM.

         DRAM requires an electric current to maintain its electrical state. The
electrical charge of DRAM decreases with time that may result in loss of data.
DRAM is recharged or refreshed again and again to maintain its data. The
processor cannot access the data of DRAM when it is being refreshed. That is why
it is slow.

   2. SRAM: SRAM stands for static random access memory. The memory cells
      are made from digital gates. Each cell can store data without any need of
      frequent recharging. CPU does not need to wait to access data from SRAM
      during processing. That is why it is faster than DRAM. It utilizes less power
than DRAM. SRAM is more expensive. It is normally used to build a very fast
      memory known as cache memory.




RAM



               ROM-READ ONLY MEMORY


ROM stands for Read Only Memory. The instructions in ROM prepare the
computer for use. These instructions can only be read but cannot be changed or
deleted. It is not possible to write new information or instructions into the ROM.

ROM stores data and instructions permanently. When the power is switched off,
the instructions stored in ROM are not lost. That is why ROM is known as non-
volatile memory.
The information in ROM is stored by the manufacturer. When the computer is
switched on, the instructions in ROM are automatically loaded into the memory
of computer.

Types of ROM

Different types of ROM are as follows;

   1. PROM: stands for programmable read only memory. This form of ROM is
      initially blank. The user or manufacturer can write data and programs on it
      using special devices. The user can write data and instruction on it only
      once. If there is any error in writing the instructions, the error cannot be
      removed from PROM. The chip becomes unusable.

   1. EPROM: EPROM stands for erasable programmable read only memory. This
      form of ROM is initially blank. The user or manufacturer can write data and
      programs on it using special ultraviolet rays. The user then can write new
      program on it.

   3. EEPROM: EEPROM stands for electronically erasable programmable read
      only memory. In this memory, user can erase and write instructions with
      the help of electrical pulses. It there is any error in writing the instructions,
      the user can erase the contents electronically. The contents of EEPROM can
      be modified easily.
VIRTUAL MEMORY
Virtual memory typically comes into place when applications are too large for the
RAM to handle. The operating System uses the hard drive to temporarily store
information and take it back when needed. This is normally a lot slower than
actual RAM and can possibly degrade performance if used to heavily. A part of the
hard disk can be used as a Virtual Memory. Generally the size of the virtual
memory in a computer is 2 or 2.5 times greater than the RAM memory size in that
computer.



Assume you are starting an application. But there are already many programs
started previously that is occupying the RAM space. And the remaining space in
RAM is not sufficient to use the new application that you are starting. Then the
virtual memory is used. Now the Operating System comes into play. It decides
which are the applications that are not currently used and then moves them from
the RAM memory to the Virtual memory in Hard Disk. Therefore the RAM is now
free and the new application can occupy the space and be started. If the program
that is moved to the virtual memory is used again then the Operating System
brings that application back from virtual memory to the RAM and some other idle
application is moved to the virtual memory.



Therefore the virtual memory is also referred to as Swap memory.




                HOW VIRTUAL MEMORY WORKS???
Virtual memory is a common part of most operating systems on desktop
computers. It has become so common because it provides a big benefit for users
at a very low cost.

Most computers today have something like 32 or 64 megabytes of RAM available
for the CPU to use (see How RAM Works for details on RAM). Unfortunately, that
amount of RAM is not enough to run all of the programs that most users expect
to run at once.

For example, if you load the operating system, an e-mail program, a Web browser
and word processor into RAM simultaneously, 32 megabytes is not enough to
hold it all. If there were no such thing as virtual memory, then once you filled up
the available RAM your computer would have to say, "Sorry, you can not load any
more applications. Please close another application to load a new one." With
virtual memory, what the computer can do is look at RAM for areas that have not
been used recently and copy them onto the hard disk. This frees up space in RAM
to load the new application.

Because this copying happens automatically, you don't even know it is happening,
and it makes your computer feel like is has unlimited RAM space even though it
only has 32 megabytes installed. Because hard disk space is so much cheaper than
RAM chips, it also has a nice economic benefit.

  The read/write speed of a hard drive is much slower than RAM, and the
technology of a hard drive is not geared toward accessing small pieces of data at a
time. If your system has to rely too heavily on virtual memory, you will notice a
significant performance drop. The key is to have enough RAM to handle
everything you tend to work on simultaneously -- then, the only time you "feel"
the slowness of virtual memory is is when there's a slight pause when you're
changing tasks. When that's the case, virtual memory is perfect.

When it is not the case, the operating system has to constantly swap information
back and forth between RAM and the hard disk. This is called thrashing, and it can
make your computer feel incredibly slow.

The area of the hard disk that stores the RAM image is called a page file. It holds
pages of RAM on the hard disk, and the operating system moves data back and
forth between the page file and RAM. On a Windows machine, page files have a
.SWP extension.
CACHE MEMORY


A part of the main memory (RAM) can be used as Cache or it can be separate
chip.

The commands that are often used, or data often used will be kept in this static
RAM. This static RAM is called Cache memory.

Cache Memory is used in-between the CPU and the RAM and holds the most
frequently used data or instructions to be processed. Caching allows to do the
computer tasks more rapidly.The main purpose of cache is to accelerate the
computer while keeping the price of the computer low.Cache technology is the
use of faster but smaller memory type to accelerate a slower but larger type
memory type.when using a cache , we must check the cache to see if an item is in
there .If it is there, it’s called a cache hit.If not it is called a cache miss and the
computer must wait for a round trip from the larger,slower memory area.A cache
has some maximum size that is much smaller than the large storage area.It is
possible to have multiple layers of cache.

There are three different grades of Cache. Some systems will only have level 1
and level 2. More advanced systems will include the level 3 .

    Level 1 (L1) - Is the primary and is on or very close to the processor. This is
     used for the most frequently used data and instructions.Memory accesses
     at full microprocessor speed ( 10 nanoseconds,4 kilobytes to 16 kilobytes
     in size)
    Level 2 (L2) - Is second closest to the CPU and is more common to be on the
     motherboard. Depending on your motherboard it might be able to be
     updated. This is used for the most frequently used data and
     instructions.Memory access of type SRAM (around 20 to 30
     nanoseconds,128 kilobytes to 512 kilobytes in size)
 Level 3 (L3) - This is the most advanced cache and will speed up the
     memory even further. This is used for the most frequently used data and
     instructions.



But there are also Cache memory that comes independently from RAM. Level 1
(L1) and Level 2 (L2) are types of cache memory. The cache integrated inside the
microprocessor is categorised as L1 cache. For example Pentium Processor comes
with 16KB cache. This is SRAM.

The cache between the Microprocessor and the RAM is L2 Cache. This is also
SRAM category
COMPUTER MEMORY

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Computer memory presentation
Computer memory presentationComputer memory presentation
Computer memory presentation
 
Types of ram
Types of  ramTypes of  ram
Types of ram
 
Main memory of computer .ppt
Main memory of computer .pptMain memory of computer .ppt
Main memory of computer .ppt
 
Random access memory
Random access memoryRandom access memory
Random access memory
 
Secondary Storage
Secondary StorageSecondary Storage
Secondary Storage
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Processor types
Processor typesProcessor types
Processor types
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
 
Computer storage devices
Computer storage devicesComputer storage devices
Computer storage devices
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)
 
computer memory ,., .
computer memory ,., .computer memory ,., .
computer memory ,., .
 
computer storage
computer storagecomputer storage
computer storage
 
RAM (Random Access Memory)
RAM (Random Access Memory)RAM (Random Access Memory)
RAM (Random Access Memory)
 
RAM(Random Access Memory)
RAM(Random Access Memory)RAM(Random Access Memory)
RAM(Random Access Memory)
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 

Andere mochten auch

Ram & rom memories
Ram & rom memoriesRam & rom memories
Ram & rom memories
angelaag98
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
 
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
 
Storege or memory devises
Storege or memory devisesStorege or memory devises
Storege or memory devises
devaki123
 

Andere mochten auch (20)

Ram & rom memories
Ram & rom memoriesRam & rom memories
Ram & rom memories
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
 
Ram presentation
Ram presentationRam presentation
Ram presentation
 
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
 
Storege or memory devises
Storege or memory devisesStorege or memory devises
Storege or memory devises
 
Rom
RomRom
Rom
 
ROM
ROMROM
ROM
 
Ram & rom
Ram & romRam & rom
Ram & rom
 
Computer Memory and Storage Devices
Computer Memory and Storage DevicesComputer Memory and Storage Devices
Computer Memory and Storage Devices
 
Difference between RAM and ROM
Difference between RAM and ROMDifference between RAM and ROM
Difference between RAM and ROM
 
ROM
ROMROM
ROM
 
RAM (Random Access Memory)
RAM (Random Access Memory)RAM (Random Access Memory)
RAM (Random Access Memory)
 
EPROM, PROM & ROM
EPROM, PROM & ROMEPROM, PROM & ROM
EPROM, PROM & ROM
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Memory - RAM and its types
Memory - RAM and its typesMemory - RAM and its types
Memory - RAM and its types
 
Presentation on memory
Presentation on memoryPresentation on memory
Presentation on memory
 
ROM(Read Only Memory )
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
 
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unitBca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
 
Semiconductor Memories
Semiconductor MemoriesSemiconductor Memories
Semiconductor Memories
 

Ähnlich wie COMPUTER MEMORY

Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
isma ishak
 
2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)
Ajit Saraf
 
Basic computer hardware terminology
Basic computer hardware terminologyBasic computer hardware terminology
Basic computer hardware terminology
Imtiyaz Husaini
 
Computer Memory and it types RAM ROM AND CACHE MEMORIES
Computer Memory and it types RAM ROM AND CACHE MEMORIESComputer Memory and it types RAM ROM AND CACHE MEMORIES
Computer Memory and it types RAM ROM AND CACHE MEMORIES
AbuBakar710430
 
Memory-Usage.pptx
Memory-Usage.pptxMemory-Usage.pptx
Memory-Usage.pptx
KimGerero
 

Ähnlich wie COMPUTER MEMORY (20)

Memory managment
Memory managmentMemory managment
Memory managment
 
Main Memory RAM and ROM
Main Memory RAM and ROMMain Memory RAM and ROM
Main Memory RAM and ROM
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devices
 
What is Computer Memory.ppt
What is Computer Memory.pptWhat is Computer Memory.ppt
What is Computer Memory.ppt
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer System
 
Memory System
Memory SystemMemory System
Memory System
 
Computer memory and types of memory.pptx
Computer memory and types of memory.pptxComputer memory and types of memory.pptx
Computer memory and types of memory.pptx
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
RAM And ROM
RAM And ROMRAM And ROM
RAM And ROM
 
Chap3 primary memory
Chap3 primary memoryChap3 primary memory
Chap3 primary memory
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
 
Memory
MemoryMemory
Memory
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
Memory devices
Memory devicesMemory devices
Memory devices
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
 
2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)
 
Basic computer hardware terminology
Basic computer hardware terminologyBasic computer hardware terminology
Basic computer hardware terminology
 
Memory Organisation in embedded systems
Memory Organisation in embedded systemsMemory Organisation in embedded systems
Memory Organisation in embedded systems
 
Computer Memory and it types RAM ROM AND CACHE MEMORIES
Computer Memory and it types RAM ROM AND CACHE MEMORIESComputer Memory and it types RAM ROM AND CACHE MEMORIES
Computer Memory and it types RAM ROM AND CACHE MEMORIES
 
Memory-Usage.pptx
Memory-Usage.pptxMemory-Usage.pptx
Memory-Usage.pptx
 

Kürzlich hochgeladen

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

COMPUTER MEMORY

  • 1. INTRODUCTION In computing, memory refers to the physical devices used to store programs (sequences of instructions) or data (e.g. program state information) on a temporary or permanent basis for use in a computer or other digital electronic device The term "memory" applies to any electronic component capable of temporarily storing data. There are two main categories of memories: Internal memory that temporarily memorises data while programs are running. Internal memory uses microconductors, i.e. fast specialised electronic circuits. Internal memory corresponds to what we call random access memory (RAM). Auxiliary memory (also called physical memory or external memory) that stores information over the long term, including after the computer is turned off. Auxiliary memory corresponds to magnetic storage devices such as the hard drive, optical storage devices such as CD-ROMs and DVD-ROMs, as well as read-only memories. Technical Characteristics The main characteristics of a memory are: Capacity, representing the global volume of information (in bits) that the memory can store Access time, corresponding to the time interval between the read/write request and the availability of the data Cycle time, representing the minimum time interval between two successive accesses Throughput, which defines the volume of information exchanged per unit of time, expressed in bits per second
  • 2. Non-volatility, which characterises the ability of a memory to store data when it is not being supplied with electricity The term "memory" is often (but not always) associated with addressable semiconductor memory, i.e. integrated circuits consisting of silicon-based transistors, used for example as primary memory but also other purposes in computers and other digital electronic devices. There are two main types of semiconductor memory: Volatile Non-volatile . Examples of non-volatile memory are flash memory (sometimes used as secondary, sometimes primary computer memory) and ROM/PROM/EPROM/EEPROM memory (used for firmware such as boot programs). Examples of volatile memory are primary memory (typically dynamic RAM, DRAM), and fast CPU cache memory (typically static RAM, SRAM, which is fast but energy-consuming and offer lower memory capacity per area unit than DRAM) . The semiconductor memory is organized into memory cells or bistable flip-flops, each storing one binary bit (0 or 1). The memory cells are grouped into words of fix word length, for example 1, 2, 4, 8, 16, 32, 64 or 128 bit. Each word can be accessed by a binary address of N bit, making it possible to store 2 raised by N words in the memory. This implies that processor registers normally are not considered as memory, since they only store one word and do not include an addressing mechanism. Volatile memory
  • 3. Volatile memory is computer memory that requires power to maintain the stored information. Most modern semiconductor volatile memory is either Static RAM (see SRAM) or dynamic RAM (see DRAM). SRAM retains its contents as long as the power is connected and is easy to interface to but uses six transistors per bit. Dynamic RAM is more complicated to interface to and control and needs regular refresh cycles to prevent its contents being lost. However, DRAM uses only one transistor and a capacitor per bit, allowing it to reach much higher densities and, with more bits on a memory chip, be much cheaper per bit. SRAM is not worthwhile for desktop system memory, where DRAM dominates, but is used for their cache memories. SRAM is commonplace in small embedded systems, which might only need tens of kilobytes or less. Forthcoming volatile memory technologies that hope to replace or compete with SRAM and DRAM include Z- RAM, TTRAM, A-RAM and ETA RAM. Non-volatile memory Non-volatile memory is computer memory that can retain the stored information even when not powered. Examples of non-volatile memory include read-only memory (see ROM), flash memory, most types of magnetic computer storage devices (e.g. hard disks, floppy discs and magnetic tape), optical discs, and early computer storage methods such as paper tape and punched cards. Forthcoming non-volatile memory technologies include FeRAM, CBRAM, PRAM, SONOS, RRAM, Racetrack memory, NRAM and Millipede HOW MEMORY WORKS? Although memory is technically any form of electronic storage, it is used most often to identify fast, temporary forms of storage. If your computer's CPU had to constantly access the hard drive to retrieve every piece of data it needs, it would operate very slowly. When the information is kept in memory, the CPU can access it much more quickly. Most forms of memory are intended to store data temporarily. As you can see in the diagram above, the CPU accesses memory according to a distinct hierarchy. Whether it comes from permanent storage (the hard drive) or input (the keyboard), most data goes in random access memory (RAM) first. The
  • 4. CPU then stores pieces of data it will need to access, often in a cache, and maintains certain special instructions in the register. We'll talk about cache and registers later. All of the components in your computer, such as the CPU, the hard drive and the operating system, work together as a team, and memory is one of the most essential parts of this team. From the moment you turn your computer on until the time you shut it down, your CPU is constantly using memory. Let's take a look at a typical scenario: • You turn the computer on. • The computer loads data from read-only memory (ROM) and performs a power-on self-test (POST) to make sure all the major components are functioning properly. As part of this test, the memory controller checks all of the memory addresses with a quick read/write operation to ensure that there are no errors in the memory chips. Read/write means that data is written to a bit and then read from that bit. • The computer loads the basic input/output system (BIOS) from ROM. The BIOS provides the most basic information about storage devices, boot sequence, security, Plug and Play (auto device recognition) capability and a few other items. • The computer loads the operating system (OS) from the hard drive into the system's RAM. Generally, the critical parts of the operating system are maintained in RAM as long as the computer is on. This allows the CPU to have immediate access to the operating system, which enhances the performance and functionality of the overall system. • When you open an application, it is loaded into RAM. To conserve RAM usage, many applications load only the essential parts of the program initially and then load other pieces as needed. • After an application is loaded, any files that are opened for use in that application are loaded into RAM. • When you save a file and close the application, the file is written to the specified storage device, and then it and the application are purged from RAM.
  • 5. ¬In the list above, every time something is loaded or opened, it is placed into RAM. This simply means that it has been put in the computer's temporary storage area so that the CPU can access that information more easily. The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. In most computers, this shuffling of data between the CPU and RAM happens millions of times every second. When an application is closed, it and any accompanying files are usually purged (deleted) from RAM to make room for new data. If the changed files are not saved to a permanent storage device before being purged, they are lost.In the list above, every time something is loaded or opened, it is placed into RAM. This simply means that it has been put in the computer's temporary storage area so that the CPU can access that information more easily. The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. In most computers, this shuffling of data between the CPU and RAM happens millions of times every second. When an application is closed, it and any accompanying files are usually purged (deleted) from RAM to make room for new data. If the changed files are not saved to a permanent storage device before being purged, they are lost. RAM-RANDOM ACCESS MEMORY As the name suggests, Random Access Memory can find and access the data randomly. Sequential access is the opposite of Random access. In Sequential access, to retrieve the data that is stored in the middle, all the data from the beginning has to be read sequentially until the searched data is found. So it takes time. Where as in RAM, the data can be directly jumped to the middle if necessary without having to read the data sequentially. So the reading is faster. In computers and printers RAM is used. In fact, RAM is the most important memory in computers and printers. Every file or application opened is placed in RAM. Any information the computer needs or uses becomes part of a continuous cycle where the CPU requests data from RAM, processes it and then writes new data back to RAM. This can happen millions of times a second. However, this is usually just for temporary file storage, so unless the data is saved somewhere, it is deleted when the files or applications are closed. How RAM works???
  • 6. Although memory is technically any form of electronic storage, it is used most often to identify fast, temporary forms of storage. If your computer's CPU had to constantly access the hard drive to retrieve every piece of data it needs, it would operate very slowly. When the information is kept in memory, the CPU can access it much more quickly. Most forms of memory are intended to store data temporarily. As you can see in the diagram above, the CPU accesses memory according to a distinct hierarchy. Whether it comes from permanent storage (the hard drive) or input (the keyboard), most data goes in random access memory (RAM) first. The CPU then stores pieces of data it will need to access, often in a cache, and maintains certain special instructions in the register. We'll talk about cache and registers later. All of the components in your computer, such as the CPU, the hard drive and the operating system, work together as a team, and memory is one of the most essential parts of this team. From the moment you turn your computer on until the time you shut it down, your CPU is constantly using memory. Let's take a look at a typical scenario: • You turn the computer on. • The computer loads data from read-only memory (ROM) and performs a power-on self-test (POST) to make sure all the major components are functioning properly. As part of this test, the memory controller checks all of the memory addresses with a quick read/write operation to ensure that there are no errors in the memory chips. Read/write means that data is written to a bit and then read from that bit. • The computer loads the basic input/output system (BIOS) from ROM. The BIOS provides the most basic information about storage devices, boot sequence, security, Plug and Play (auto device recognition) capability and a few other items. • The computer loads the operating system (OS) from the hard drive into the system's RAM. Generally, the critical parts of the operating system are maintained in RAM as long as the computer is on. This allows the CPU to have immediate access to the operating system, which enhances the performance and functionality of the overall system.
  • 7. When you open an application, it is loaded into RAM. To conserve RAM usage, many applications load only the essential parts of the program initially and then load other pieces as needed. • After an application is loaded, any files that are opened for use in that application are loaded into RAM. • When you save a file and close the application, the file is written to the specified storage device, and then it and the application are purged from RAM. ¬In the list above, every time something is loaded or opened, it is placed into RAM. This simply means that it has been put in the computer's temporary storage area so that the CPU can access that information more easily. The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. In most computers, this shuffling of data between the CPU and RAM happens millions of times every second. When an application is closed, it and any accompanying files are usually purged (deleted) from RAM to make room for new data. If the changed files are not saved to a permanent storage device before being purged, they are lost.automatically thousands of times per second. TYPES OF RAM Ram is built by using two different techniques: 1. DRAM: DRAM stands for dynamic fandom access memory. It is a type of memory that is used in most computers. It is the least expensive kind of RAM. DRAM requires an electric current to maintain its electrical state. The electrical charge of DRAM decreases with time that may result in loss of data. DRAM is recharged or refreshed again and again to maintain its data. The processor cannot access the data of DRAM when it is being refreshed. That is why it is slow. 2. SRAM: SRAM stands for static random access memory. The memory cells are made from digital gates. Each cell can store data without any need of frequent recharging. CPU does not need to wait to access data from SRAM during processing. That is why it is faster than DRAM. It utilizes less power
  • 8. than DRAM. SRAM is more expensive. It is normally used to build a very fast memory known as cache memory. RAM ROM-READ ONLY MEMORY ROM stands for Read Only Memory. The instructions in ROM prepare the computer for use. These instructions can only be read but cannot be changed or deleted. It is not possible to write new information or instructions into the ROM. ROM stores data and instructions permanently. When the power is switched off, the instructions stored in ROM are not lost. That is why ROM is known as non- volatile memory.
  • 9. The information in ROM is stored by the manufacturer. When the computer is switched on, the instructions in ROM are automatically loaded into the memory of computer. Types of ROM Different types of ROM are as follows; 1. PROM: stands for programmable read only memory. This form of ROM is initially blank. The user or manufacturer can write data and programs on it using special devices. The user can write data and instruction on it only once. If there is any error in writing the instructions, the error cannot be removed from PROM. The chip becomes unusable. 1. EPROM: EPROM stands for erasable programmable read only memory. This form of ROM is initially blank. The user or manufacturer can write data and programs on it using special ultraviolet rays. The user then can write new program on it. 3. EEPROM: EEPROM stands for electronically erasable programmable read only memory. In this memory, user can erase and write instructions with the help of electrical pulses. It there is any error in writing the instructions, the user can erase the contents electronically. The contents of EEPROM can be modified easily.
  • 10. VIRTUAL MEMORY Virtual memory typically comes into place when applications are too large for the RAM to handle. The operating System uses the hard drive to temporarily store information and take it back when needed. This is normally a lot slower than actual RAM and can possibly degrade performance if used to heavily. A part of the hard disk can be used as a Virtual Memory. Generally the size of the virtual memory in a computer is 2 or 2.5 times greater than the RAM memory size in that computer. Assume you are starting an application. But there are already many programs started previously that is occupying the RAM space. And the remaining space in RAM is not sufficient to use the new application that you are starting. Then the virtual memory is used. Now the Operating System comes into play. It decides which are the applications that are not currently used and then moves them from the RAM memory to the Virtual memory in Hard Disk. Therefore the RAM is now free and the new application can occupy the space and be started. If the program that is moved to the virtual memory is used again then the Operating System brings that application back from virtual memory to the RAM and some other idle application is moved to the virtual memory. Therefore the virtual memory is also referred to as Swap memory. HOW VIRTUAL MEMORY WORKS???
  • 11. Virtual memory is a common part of most operating systems on desktop computers. It has become so common because it provides a big benefit for users at a very low cost. Most computers today have something like 32 or 64 megabytes of RAM available for the CPU to use (see How RAM Works for details on RAM). Unfortunately, that amount of RAM is not enough to run all of the programs that most users expect to run at once. For example, if you load the operating system, an e-mail program, a Web browser and word processor into RAM simultaneously, 32 megabytes is not enough to hold it all. If there were no such thing as virtual memory, then once you filled up the available RAM your computer would have to say, "Sorry, you can not load any more applications. Please close another application to load a new one." With virtual memory, what the computer can do is look at RAM for areas that have not been used recently and copy them onto the hard disk. This frees up space in RAM to load the new application. Because this copying happens automatically, you don't even know it is happening, and it makes your computer feel like is has unlimited RAM space even though it only has 32 megabytes installed. Because hard disk space is so much cheaper than RAM chips, it also has a nice economic benefit. The read/write speed of a hard drive is much slower than RAM, and the technology of a hard drive is not geared toward accessing small pieces of data at a time. If your system has to rely too heavily on virtual memory, you will notice a significant performance drop. The key is to have enough RAM to handle everything you tend to work on simultaneously -- then, the only time you "feel" the slowness of virtual memory is is when there's a slight pause when you're changing tasks. When that's the case, virtual memory is perfect. When it is not the case, the operating system has to constantly swap information back and forth between RAM and the hard disk. This is called thrashing, and it can make your computer feel incredibly slow. The area of the hard disk that stores the RAM image is called a page file. It holds pages of RAM on the hard disk, and the operating system moves data back and forth between the page file and RAM. On a Windows machine, page files have a .SWP extension.
  • 12. CACHE MEMORY A part of the main memory (RAM) can be used as Cache or it can be separate chip. The commands that are often used, or data often used will be kept in this static RAM. This static RAM is called Cache memory. Cache Memory is used in-between the CPU and the RAM and holds the most frequently used data or instructions to be processed. Caching allows to do the computer tasks more rapidly.The main purpose of cache is to accelerate the computer while keeping the price of the computer low.Cache technology is the use of faster but smaller memory type to accelerate a slower but larger type memory type.when using a cache , we must check the cache to see if an item is in there .If it is there, it’s called a cache hit.If not it is called a cache miss and the computer must wait for a round trip from the larger,slower memory area.A cache has some maximum size that is much smaller than the large storage area.It is possible to have multiple layers of cache. There are three different grades of Cache. Some systems will only have level 1 and level 2. More advanced systems will include the level 3 .  Level 1 (L1) - Is the primary and is on or very close to the processor. This is used for the most frequently used data and instructions.Memory accesses at full microprocessor speed ( 10 nanoseconds,4 kilobytes to 16 kilobytes in size)  Level 2 (L2) - Is second closest to the CPU and is more common to be on the motherboard. Depending on your motherboard it might be able to be updated. This is used for the most frequently used data and instructions.Memory access of type SRAM (around 20 to 30 nanoseconds,128 kilobytes to 512 kilobytes in size)
  • 13.  Level 3 (L3) - This is the most advanced cache and will speed up the memory even further. This is used for the most frequently used data and instructions. But there are also Cache memory that comes independently from RAM. Level 1 (L1) and Level 2 (L2) are types of cache memory. The cache integrated inside the microprocessor is categorised as L1 cache. For example Pentium Processor comes with 16KB cache. This is SRAM. The cache between the Microprocessor and the RAM is L2 Cache. This is also SRAM category