How storage devices works


Computer storage overview

Computer storage, computer memory, and often
casually memory refer to computer components,Secondary  and  off-line  storage
devices and recording media that retain data
for some interval of time. Computer storageSecondary storage requires the computer to
provides one of the core functions of theuse its input/output channels to access the
modern computer, that of informationinformation, and is used for long-term
retention. It is one of the fundamentalstorage of persistent information. However
components of all modern computers, andmost computer operating systems also use
coupled with a central processing unit (CPU),secondary storage devices as virtual memory -
implements the basic Von Neumann computerto artificially increase the apparent amount
model  used  since  the  1940s.of main memory in the computer. Secondary
storage is also known as "mass storage", as
In contemporary usage, memory usually refersshown in the diagram above. Secondary or mass
to a form of solid state storage known asstorage is typically of much greater capacity
random access memory (RAM) and sometimesthan primary storage (main memory), but it is
other forms of fast but temporary storage.also much slower. In modern computers, hard
Similarly, storage more commonly refers todisks are usually used for mass storage. The
mass storage - optical discs, forms oftime taken to access a given byte of
magnetic storage like hard disks, and otherinformation stored on a hard disk is
types of storage which are slower than RAM,typically a few thousandths of a second, or
but of a more permanent nature. Thesemilliseconds. By contrast, the time taken to
contemporary distinctions are helpful,access a given byte of information stored in
because they are also fundamental to therandom access memory is measured in
architecture of computers in general. Asthousand-millionths of a second, or
well, they reflect an important andnanoseconds. This illustrates the very
significant technical difference betweensignificant speed difference which
memory and mass storage devices, which hasdistinguishes solid-state memory from
been blurred by the historical usage of therotating magnetic storage devices: hard disks
terms "main storage" (and sometimes "primaryare typically about a million times slower
storage") for random access memory, andthan memory. Rotating optical storage
"secondary storage" for mass storage devices.devices, such as CD and DVD drives, are
This is explained in the following sections,typically even slower than hard disks,
in which the traditional "storage" terms arealthough their access speeds are likely to
used  as  sub-headings  for  convenience.improve with advances in technology.
Therefore, the use of virtual memory, which
The fundamental components of ais millions of times slower than "real"
general-purpose computer are arithmetic andmemory, significantly degrades the
logic unit, control circuitry, storage space,performance of any computer. Virtual memory
and input/output devices. If storage wasis implemented by many operating systems
removed, the device we had would be a simpleusing terms like swap file or "cache file".
digital signal processing device (e.g.The main historical advantage of virtual
calculator, media player) instead of amemory was that it was much less expensive
computer. The ability to store instructionsthan real memory. That advantage is less
that form a computer program, and therelevant today, yet surprisingly most
information that the instructions manipulateoperating systems continue to implement it,
is what makes stored program architecturedespite the significant performance
computers  versatile.penalties.
A digital computer represents informationOff-line storage is a system where the
using the binary numeral system. Text,storage medium can be easily removed from the
numbers, pictures, audio, and nearly anystorage device. Off-line storage is used for
other form of information can be converteddata transfer and archival purposes. In
into a string of bits, or binary digits, eachmodern computers, CDs, DVDs, memory cards,
of which has a value of 1 or 0. The mostflash memory devices including "USB drives",
common unit of storage is the byte, equal tofloppy disks, Zip disks and magnetic tapes
8 bits. A piece of information can beare commonly used for off-line mass storage
manipulated by any computer whose storagepurposes. "Hot-pluggable" USB hard disks are
space is large enough to accommodate thealso available. Off-line storage devices used
corresponding data, or the binaryin the past include punched cards,
representation of the piece of information.microforms, and removable Winchester disk
For example, a computer with a storage spacedrums.
of eight million bits, or one megabyte, could
be  used  to  edit  a  small  novel.Tertiary  and  database  storage
Various forms of storage, based on variousTertiary storage is a system where a robotic
natural phenomena, have been invented. Soarm will "mount" (connect) or "dismount"
far, no practical universal storage mediumoff-line mass storage media (see the next
exists, and all forms of storage have someitem) according to the computer operating
drawbacks. Therefore a computer systemsystem's demands. Tertiary storage is used in
usually contains several kinds of storage,the realms of enterprise storage and
each with an individual purpose, as shown inscientific computing on large computer
the  diagram.systems and business computer networks, and
is something a typical personal computer user
Primary  storagenever  sees  firsthand.
Primary storage is directly connected to theDatabase storage is a system where
central processing unit of the computer. Itinformation in computers is stored in large
must be present for the CPU to functiondatabases, data banks, data warehouses, or
correctly, just as in a biological analogydata vaults. It involves packing and storing
the lungs must be present (for oxygenlarge amounts of storage devices throughout a
storage) for the heart to function (to pumpseries of shelves in a room, usually an
and oxygenate the blood). As shown in theoffice, all linked together. The information
diagram, primary storage typically consistsin database storage systems can be accessed
of  three  kinds  of  storage:by a supercomputer, mainframe computer, or
personal computer. Databases, data banks, and
Processor registers are internal to thedata warehouses, etc, can only be accessed by
central processing unit. Registers containauthorized  users.
information that the arithmetic and logic
unit needs to carry out the currentNetwork  storage
instruction. They are technically the fastest
of all forms of computer storage, beingNetwork storage is any type of computer
switching transistors integrated on the CPU'sstorage that involves accessing information
silicon chip, and functioning as electronicover a computer network. Network storage
"flip-flops".arguably allows to centralize the information
management in an organization, and to reduce
Cache memory is a special type of internalthe duplication of information. Network
memory used by many central processing unitsstorage  includes:
to increase their performance or
"throughput". Some of the information in theNetwork-attached storage is secondary or
main memory is duplicated in the cachetertiary storage attached to a computer which
memory, which is slightly slower but of muchanother computer can access at file level
greater capacity than the processorover a local-area network, a private
registers, and faster but much smaller thanwide-area network, or in the case of online
main memory. Multi-level cache memory is alsofile  storage,  over  the  Internet.
commonly used—"primary cache" being
smallest, fastest and closest to theStorage area network provides other computers
processing device; "secondary cache" beingwith storage capacity over a network, the
larger and slower, but still faster and muchcrucial difference between network-attached
smaller  than  main  memory.storage (NAS) and storage area Networks (SAN)
is the former presents and manages file
Main memory contains the programs that aresystems to client computers, whilst a SAN
currently being run and the data the programsprovides access to disks at block addressing
are operating on. In modern computers, thelevel, leaving it to attaching systems to
main memory is the electronic solid-statemanage data or file systems within the
random access memory. It is directlyprovided  capacity.
connected to the CPU via a "memory bus"
(shown in the diagram) and a "data bus". TheNetwork computers are computers that do not
arithmetic and logic unit can very quicklycontain internal secondary storage devices.
transfer information between a processorInstead, documents and other data are stored
register and locations in main storage, alsoon  a  network-attached  storage.
known as a "memory addresses". The memory bus
is also called an address bus or front sideConfusingly, these terms are sometimes used
bus and both busses are high-speed digitaldifferently. Primary storage can be used to
"superhighways". Access methods and speed arerefer to local random-access disk storage,
two of the fundamental technical differenceswhich should properly be called secondary
between memory and mass storage devices.storage. If this type of storage is called
(Note that all memory sizes and storageprimary storage, then the term secondary
capacities shown in the diagram willstorage would refer to offline,
inevitably be exceeded with advances insequential-access storage like tape media.
technology  over  time.)



1 A B C D 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110