Chap 3-Hardware 3.3 Storage-1
Chap 3-Hardware 3.3 Storage-1
3 DATA STORAGE
UNIT 3 HARDWARE
TYPES OF MEMORY AND STORAGE
Memory and storage is divided into following three groups.
Primary Memory
Secondary Storage
Off-line Storage
• It is known as main storage or memory, is the
Primary area in a computer in which data is stored for
quick access by the computer's processor.
Offline
• Offline storage refers to any storage medium that
must be physically inserted into a system every
time a users wants to access or edit data.
Types of Storage
RAM
Primary
ROM
Memory and storage
Hard-disk(HDD)
Secondary storage
Solid-state Drive
DVD/CD, DVD
RAM
Blu-ray disk
Off-line Storage
USB memory
stick/Flash memory
Removable hard
disk
Primary Storage
(RAM & ROM)
3.3.1 PRIMARY MEMORY
Primary memory is the part of the computer memory which can be accessed directly from the CPU;
this includes random access memory (RAM) and read only memory (ROM) memory chips.
Primary memory allows the CPU to access applications and services temporarily stored in memory
locations.
The structure of primary memory is shown in Figure
Random Access Memory (RAM)
It is volatile/temporary memory(the contents are lost when the power to RAM
is turned off)
It is electronic and made on a chip or integrated circuit.
The processor can access data in any order needed by program.
It can be written to read from the contents of the memory can be changed
Used to store data, files, part of an application or part of the operating
system currently in use
RAM ROM
RAM is like a whiteboard. It can be ROM is like a book. Once written, it can
written to, read from, erased, or left as usually only be read from. Its contents
it is. Its contents are temporary are mostly permanent.
ROM is non-volatile. It retains its
RAM is volatile. It loses its contents contents when the power is switched off.
when power is switched off.
ROM holds firmware and bootstraps.
In embedded devices, RAM holds data
ROM tends to be smaller in capacity
for processing. In general computers,
RAM hold the operating system,
running programs and data for
processing
REMOTE CONTROL CAR
Application of RAM Application of ROM
Removable hard disk drives are essentially HDDs external to the computer that
can be connected to the computer using one of the USB ports.
They can be Used as a back-up device or another way of transferring files between
computers.
Many portable music players (such as the iPod classic) contain tiny hard-drives.
These miniature devices can store over 100MB of data!
SOLID STATE STORAGE DEVICES
This is a nonvolatile rewritable memory.
Solid state drives (SSD) have no moving parts therefore there is no
Latency issue.
All data is retrieved at the same rate. They don’t rely on magnetic
properties
The most common type of solid state storage devices store data by
controlling the movement of electrons within NAND or NOR chips.
The data is stored as 0s and 1s in millions of tiny transistors
NAND memory cells are made up of Floating and control gates
At each junction one transistor is called a FLOATING GATE
Other is called a control gate within the chip
FLOATING GATE AND CONTROL GATE TRANSISTORS
Flash memories make use of a matrix; at each intersection on the matrix there is a floating gate and a
control gate arranged as follows:
A dielectric coating separates the two transistors, which allows the floating gate transistor to retain its
charge (which is why the memory is non-volatile).
The Floating gate transistor has a value of 1 when it is charged and a value of 0 when it isn’t.
To program one of these ‘intersection cells’ a voltage is applied to the control gate and electrons from the
electron source are attracted to it.
But due to the dielectric coating, the electrons become trapped in the floating gate. Hence, we have control
over the bit value stored at each intersection.
Solid state device should be used at least once a year to be certain it will retain its memory, as charge
leaks away after 12 months
BENEFITS OF USING SSD OVER HDD
SSDs are more reliable as they don’t have any moving parts.
They are lighter (suitable for laptops)
They don’t have to get up to speed’ before they work properly
They have lower power consumption(suitable for laptops)
They run much cooler than HDD (suitable for laptops)
They are very thin as they don’t have movable parts.
Data access is faster than HDD.
DRAWBACKS OF SSD
https://www.ictlounge.com/html/optical_storage_media.htm
OPTICAL STORAGE DEVICES
OPTICAL STORAGE : ADVANTAGES
Portable than hard disk drive as the disk can easily be carried
from one location to another.
Good data transfer rate with speeds ranging between 10 and 72
megabytes per second.
Newer formats, such as Blu-ray, are far quicker.
OPTICAL STORAGE : DISADVANTAGES
Blu-Ray disks are a recent replacement for DVDs. A Blu-Ray disc can
hold 25 – 50 GB of data. Blu-Ray discs are random-access devices.
Blu-Ray discs are used in the same way as DVD-ROMs but, since they
can hold more data, they are also used to store very high-quality, high-
definition (HD) video.
DIFFERENCE BETWEEN CD AND DVD
Blu-ray uses a blue laser, rather than a red laser, is used to carry out read and write
operations; the wavelength of blue light is only 405 nanometres (compared to 650
nm for red light). This gives more precision when writing to and reading from a disk.
using blue laser light means that the ‘pits’ and ‘lands’ can be much smaller;
consequently, Blu-ray can store up to five times more data than normal DVD
Single-layer Blu-ray discs use a 1.2 mm thick polycarbonate disk; however, duallayer
Blu-ray and normal DVDs both use a sandwich of two 0.6 mm thick disks (i.e. 1.2
mm thick)
Blu-ray disks automatically come with a secure encryption system that helps to
prevent piracy and copyright infringement
Data transfer rate for a DVD is 10 Mbps and for a Blu-ray disc it is 36 Mbps
OFF-LINE STORAGE
Blu-ray allows greater interactivity than DVDs. For example, with Blu-ray, it
is possible to:
Record high definition television programs
Skip quickly to any part of the disc
Create playlists of recorded movies and television programmes
Edit or re-order programmes recorded on the disc
Automatically search for empty space on the disc to avoid over-recording
Access websites and download subtitles and other interesting features.
COMPARISON OF CD, DVD AND BLU-RAY
3.3.4 VIRTUAL MEMORY
A memory management system that makes use of secondary storage and software to
enable a computer to compensate for the shortage of actual physical RAM memory
Virtual memory is used to avoid system crash in case the amount of available RAM is
exceeded due to multiple programs running
RAM is the physical memory, while virtual memory is RAM + swap space on the hard disk
or SSD.
Virtual memory gives the illusion of unlimited memory being available. Even though
RAM is full, data can be moved in and out of the HDD/SSD to give the illusion that there
is still memory available.
To execute a program, data is loaded into memory from HDD (or SSD) whenever
required.
MEMORY MANAGEMENT WITHOUT VIRTUAL MEMORY
MEMORY MANAGEMENT WITH VIRTUAL MEMORY
With virtual memory all five programs can access RAM as required. This
will require moving data out of RAM into HDD/SSD and then allowing other
data to be moved out of HDD/SSD into RAM:
NEXT STEP
Data from program 0 (which was using RAM address space 3 – the oldest data) is
now mapped to the HDD/SSD instead, leaving address space 3 free for use by
program 4
Program 4 now maps to address space 3 in RAM, which means program 4 now has
access to RAM.
All of this will continue to occur until RAM is no longer being over-utilised by
the competing programs running in memory
BENEFITS OF VIRTUAL MEMORY
Virtual memory causes Disk thrashing. As main memory fills, more and more data
needs to be swapped in and out of virtual memory leading to a very high rate of hard
disk read/write head movements; this is known as disk thrashing.
Reduces processing speed results in halt in the execution of a process, since the system is
so busy moving data in and out of memory rather than doing any actual execution – this
is known as he thrash point.
Large numbers of head movements, can lead to premature failure of a hard disk drive.
Thrashing can be reduced by installing more RAM, reducing the number of programs
running at a time or reducing the size of the swap file.
Another way of reducing this problem is to make use of a solid state drive (SSD) rather
than using HDD.
3.3.5 CLOUD STORAGE
A method of data storage where data is stored on offsite servers; the physical storage
may be on hundreds of servers in many locations
The same data is stored on more than one server in case of maintenance or repair,
allowing clients to access data at any time. This is known as data redundancy.
The physical environment is owned and managed by a hosting company and may
include hundreds of servers in many locations.
Instead of saving data on a local hard disk or other storage device, a user can save
their data ‘in the cloud’.
3.3.5 CLOUD STORAGE : COMMON SYSTEMS
Companies that transfer vast amounts of confidential data from their own systems to a
cloud service provider are effectively relinquishing control of their own data security.
This raises a number of questions:
What physical security exists regarding the building where the data is housed?
How good is the cloud service provider’s resistance to natural disasters or power
cuts?
What safeguards exist regarding personnel who work for the cloud service
company; can they use their authorisation codes to access confidential data for
monetary purposes?