Hadoop
Hadoop
Characteristics of DRAM
1.It requires continuously refreshed to retain the
data.
2.It is slower than SRAM
3.It holds a large amount of data
4.It is the combination of capacitor and
transistor
5.It is less expensive as compared to SRAM
6.Less power consumption
SRAM: SRMA (Static Random-Access
Memory) is a type of RAM used to store static
data in the memory. It means to store data in
SRAM remains active as long as the computer
system has a power supply. However, data is lost
in SRAM when power failures have occurred.
Characteristics of Static Ram
1.It does not require to refresh.
2.It is faster than DRAM
3.It is expensive.
4.High power consumption
5.Longer life
6.Large size
7.Uses as a cache memory
SRAM DRAM
It is a Static Random- It is a Dynamic Random
Access Memory. Access Memory.
The access time of SRAM is The access time of
slow. DRAM is high.
It uses flip-flops to store It uses a capacitor to
each bit of information. store each bit of
information.
It does not require periodic It requires periodically
refreshing to preserve the refreshing to preserve
information. the information.
It uses in cache memory. It is used in the main
memory.
The cost of SRAM is The cost of DRAM is
expensive. less expensive.
It has a complex structure. Its structure is simple.
It requires low power It requires more power
consumption. consumption.
Advantages of RAM
o It is a faster type of memory in a computer.
o It requires less power to operate.
o Program loads much faster
o More RAM increases the performance of a
system and can multitask.
o Perform read and write operations.
o The processor can read information faster than
a hard disc, floppy, USB, etc.
Disadvantages of RAM
o Less RAM reduces the speed and performance
of a computer.
o Due to volatile, it requires electricity to
preserve the data.
o It is expensive than ROM
o It is unreliable as compared to ROM
o The Size of RAM is limited.
Read-Only Memory (ROM)
ROM is a memory device or storage medium that
is used to permanently store information inside a
chip. It is a read-only memory that can only read
stored information, data or programs, but we
cannot write or modify anything. A ROM contains
some important instructions or program data that
are required to start or boot a computer. It is
a non-volatile memory; it means that the stored
information cannot be lost even when the power is
turned off or the system is shut down.
Types of ROM
There are five types of Read Only Memory:
1.MROM (Masked Read Only Memory):
MROM is the oldest type of read-only
memory whose program or data is pre-
configured by the integrated circuit
manufacture at the time of manufacturing.
Therefore, a program or instruction stored
within the MROM chip cannot be changed by
the user.
2.PROM (Programmable Read Only
Memory):
It is a type of digital read-only memory, in
which the user can write any type of
information or program only once. It means it
is the empty PROM chip in which the user can
write the desired content or program only once
using the special PROM programmer or
PROM burner device; after that, the data or
instruction cannot be changed or erased.
3.EPROM (Erasable and Programmable
Read Only Memory):
It is the type of read only memory in which
stored data can be erased and re-programmed
only once in the EPROM memory. It is a non-
volatile memory chip that holds data when
there is no power supply and can also store
data for a minimum of 10 to 20 years. In
EPROM, if we want to erase any stored data
and re-programmed it, first, we need to pass
the ultraviolet light for 40 minutes to erase the
data; after that, the data is re-created in
EPROM.
4.EEPROM (Electrically Erasable and
Programmable Read Only Memory):
The EEROM is an electrically erasable and
programmable read only memory used to erase
stored data using a high voltage electrical
charge and re-programmed it. It is also a non-
volatile memory whose data cannot be erased
or lost; even the power is turned off. In
EEPROM, the stored data can be erased and
reprogrammed up to 10 thousand times, and
the data erase one byte at a time.
5.Flash ROM:
Flash memory is a non-volatile storage
memory chip that can be written or
programmed in small units called Block or
Sector. Flash Memory is an EEPROM form of
computer memory, and the contents or data
cannot be lost when the power source is turned
off. It is also used to transfer data between the
computer and digital devices.
Advantages of ROM
1.It is a non-volatile memory in which stored
information can be lost even power is turned
off.
2.It is static, so it does not require refreshing the
content every time.
3.Data can be stored permanently.
4.It is easy to test and store large data as
compared to RAM.
5.These cannot be changed accidently
6.It is cheaper than RAM.
7.It is simple and reliable as compared to RAM.
8.It helps to start the computer and loads the OS.
Disadvantages of ROM
1.Store data cannot be updated or modify except
to read the existing data.
2.It is a slower memory than RAM to access the
stored data.
3.It takes around 40 minutes to destroy the
existing data using the high charge of
ultraviolet light.
RAM Vs. ROM
RAM ROM
It is a Random-Access It is a Read Only Memory.
Memory.
Read and write operations Only Read operation can
can be performed. be performed.
Data can be lost in volatile Data cannot be lost in non-
memory when the power volatile memory when the
supply is turned off. power supply is turned off.
It is a faster and expensive It is a slower and less
memory. expensive memory.
Storage data requires to be Storage data does not need
refreshed in RAM. to be refreshed in ROM.
The size of the chip is The size of the chip is
bigger than the ROM chip smaller than the RAM chip
to store the data. to store the same amount
of data.
Types of RAM: DRAM Types of ROM: MROM,
and SRAM PROM, EPROM,
EEPROM
Cache Memory
It is a small-sized chip-based computer memory
that lies between the CPU and the main memory. It
is a faster, high performance and temporary
memory to enhance the performance of the CPU.
It stores all the data and instructions that are often
used by computer CPUs. It also reduces the access
time of data from the main memory. It is faster
than the main memory, and sometimes, it is also
called CPU memory because it is very close to the
CPU chip. The following are the levels of cache
memory.
Cache memory
Levels of Memory
Level 1 or Register: It is a type of memory
Associative Mapping
Set-Associative Mapping
1. Direct Mapping
The simplest technique, known as direct
Direct Mapping
2. Associative Mapping
In this type of mapping, associative
memory is used to store the content and
addresses of the memory word. Any block
can go into any line of the cache. This
means that the word id bits are used to
identify which word in the block is needed,
but the tag becomes all of the remaining
bits. This enables the placement of any
word at any place in the cache memory. It
is considered to be the fastest and most
flexible mapping form. In associative
mapping, the index bits are zero.
3. Set-Associative Mapping
This form of mapping is an enhanced form
of direct mapping where the drawbacks of
direct mapping are removed. Set
associative addresses the problem of
possible thrashing in the direct mapping
method. It does this by saying that instead
of having exactly one line that a block can
map to in the cache, we will group a few
lines together creating a set. Then a block
in memory can map to any one of the lines
of a specific set. Set-associative mapping
allows each word that is present in the
cache can have two or more words in the
main memory for the same index address.
Set associative cache mapping combines
the best of direct and associative cache
mapping techniques. In set associative
mapping the index bits are given by the
set offset bits. In this case, the cache
consists of a number of sets, each of
which consists of a number of lines.
Set-Associative Mapping
where
i = cache set number
j = main memory block number
v = number of sets
m = number of lines in the cache number
of sets
k = number of lines in each set
Set-Associative Mapping – S