| Computer storage, computer memory, and often | | | | capacities shown in the diagram will inevitably be |
| casually memory refer to computer components, | | | | exceeded with advances in technology over time.) |
| devices and recording media that retain data for | | | | Secondary and off-line storage |
| some interval of time. Computer storage provides | | | | Secondary storage requires the computer to use its |
| one of the core functions of the modern computer, | | | | input/output channels to access the information, and |
| that of information retention. It is one of the | | | | is used for long-term storage of persistent |
| fundamental components of all modern computers, | | | | information. However most computer operating |
| and coupled with a central processing unit (CPU), | | | | systems also use secondary storage devices as |
| implements the basic Von Neumann computer model | | | | virtual memory - to artificially increase the apparent |
| used since the 1940s. | | | | amount of main memory in the computer. Secondary |
| In contemporary usage, memory usually refers to a | | | | storage is also known as "mass storage", as shown in |
| form of solid state storage known as random access | | | | the diagram above. Secondary or mass storage is |
| memory (RAM) and sometimes other forms of fast | | | | typically of much greater capacity than primary |
| but temporary storage. Similarly, storage more | | | | storage (main memory), but it is also much slower. In |
| commonly refers to mass storage - optical discs, | | | | modern computers, hard disks are usually used for |
| forms of magnetic storage like hard disks, and other | | | | mass storage. The time taken to access a given |
| types of storage which are slower than RAM, but of | | | | byte of information stored on a hard disk is typically |
| a more permanent nature. These contemporary | | | | a few thousandths of a second, or milliseconds. By |
| distinctions are helpful, because they are also | | | | contrast, the time taken to access a given byte of |
| fundamental to the architecture of computers in | | | | information stored in random access memory is |
| general. As well, they reflect an important and | | | | measured in thousand-millionths of a second, or |
| significant technical difference between memory and | | | | nanoseconds. This illustrates the very significant |
| mass storage devices, which has been blurred by the | | | | speed difference which distinguishes solid-state |
| historical usage of the terms "main storage" (and | | | | memory from rotating magnetic storage devices: |
| sometimes "primary storage") for random access | | | | hard disks are typically about a million times slower |
| memory, and "secondary storage" for mass storage | | | | than memory. Rotating optical storage devices, such |
| devices. This is explained in the following sections, in | | | | as CD and DVD drives, are typically even slower than |
| which the traditional "storage" terms are used as | | | | hard disks, although their access speeds are likely to |
| sub-headings for convenience. | | | | improve with advances in technology. Therefore, the |
| The fundamental components of a general-purpose | | | | use of virtual memory, which is millions of times |
| computer are arithmetic and logic unit, control | | | | slower than "real" memory, significantly degrades the |
| circuitry, storage space, and input/output devices. If | | | | performance of any computer. Virtual memory is |
| storage was removed, the device we had would be | | | | implemented by many operating systems using terms |
| a simple digital signal processing device (e.g. calculator, | | | | like swap file or "cache file". The main historical |
| media player) instead of a computer. The ability to | | | | advantage of virtual memory was that it was much |
| store instructions that form a computer program, and | | | | less expensive than real memory. That advantage is |
| the information that the instructions manipulate is | | | | less relevant today, yet surprisingly most operating |
| what makes stored program architecture computers | | | | systems continue to implement it, despite the |
| versatile. | | | | significant performance penalties. |
| A digital computer represents information using the | | | | Off-line storage is a system where the storage |
| binary numeral system. Text, numbers, pictures, | | | | medium can be easily removed from the storage |
| audio, and nearly any other form of information can | | | | device. Off-line storage is used for data transfer and |
| be converted into a string of bits, or binary digits, | | | | archival purposes. In modern computers, CDs, DVDs, |
| each of which has a value of 1 or 0. The most | | | | memory cards, flash memory devices including "USB |
| common unit of storage is the byte, equal to 8 bits. | | | | drives", floppy disks, Zip disks and magnetic tapes |
| A piece of information can be manipulated by any | | | | are commonly used for off-line mass storage |
| computer whose storage space is large enough to | | | | purposes. "Hot-pluggable" USB hard disks are also |
| accommodate the corresponding data, or the binary | | | | available. Off-line storage devices used in the past |
| representation of the piece of information. For | | | | include punched cards, microforms, and removable |
| example, a computer with a storage space of eight | | | | Winchester disk drums. |
| million bits, or one megabyte, could be used to edit a | | | | Tertiary and database storage |
| small novel. | | | | Tertiary storage is a system where a robotic arm will |
| Various forms of storage, based on various natural | | | | "mount" (connect) or "dismount" off-line mass |
| phenomena, have been invented. So far, no practical | | | | storage media (see the next item) according to the |
| universal storage medium exists, and all forms of | | | | computer operating system's demands. Tertiary |
| storage have some drawbacks. Therefore a | | | | storage is used in the realms of enterprise storage |
| computer system usually contains several kinds of | | | | and scientific computing on large computer systems |
| storage, each with an individual purpose, as shown in | | | | and business computer networks, and is something a |
| the diagram. | | | | typical personal computer user never sees firsthand. |
| Primary storage | | | | Database storage is a system where information in |
| Primary storage is directly connected to the central | | | | computers is stored in large databases, data banks, |
| processing unit of the computer. It must be present | | | | data warehouses, or data vaults. It involves packing |
| for the CPU to function correctly, just as in a | | | | and storing large amounts of storage devices |
| biological analogy the lungs must be present (for | | | | throughout a series of shelves in a room, usually an |
| oxygen storage) for the heart to function (to pump | | | | office, all linked together. The information in database |
| and oxygenate the blood). As shown in the diagram, | | | | storage systems can be accessed by a |
| primary storage typically consists of three kinds of | | | | supercomputer, mainframe computer, or personal |
| storage: | | | | computer. Databases, data banks, and data |
| Processor registers are internal to the central | | | | warehouses, etc, can only be accessed by authorized |
| processing unit. Registers contain information that the | | | | users. |
| arithmetic and logic unit needs to carry out the | | | | Network storage |
| current instruction. They are technically the fastest of | | | | Network storage is any type of computer storage |
| all forms of computer storage, being switching | | | | that involves accessing information over a computer |
| transistors integrated on the CPU's silicon chip, and | | | | network. Network storage arguably allows to |
| functioning as electronic "flip-flops". | | | | centralize the information management in an |
| Cache memory is a special type of internal memory | | | | organization, and to reduce the duplication of |
| used by many central processing units to increase | | | | information. Network storage includes: |
| their performance or "throughput". Some of the | | | | Network-attached storage is secondary or tertiary |
| information in the main memory is duplicated in the | | | | storage attached to a computer which another |
| cache memory, which is slightly slower but of much | | | | computer can access at file level over a local-area |
| greater capacity than the processor registers, and | | | | network, a private wide-area network, or in the case |
| faster but much smaller than main memory. Multi-level | | | | of online file storage, over the Internet. |
| cache memory is also commonly | | | | Storage area network provides other computers |
| used—"primary cache" being smallest, | | | | with storage capacity over a network, the crucial |
| fastest and closest to the processing device; | | | | difference between network-attached storage (NAS) |
| "secondary cache" being larger and slower, but still | | | | and storage area Networks (SAN) is the former |
| faster and much smaller than main memory. | | | | presents and manages file systems to client |
| Main memory contains the programs that are | | | | computers, whilst a SAN provides access to disks at |
| currently being run and the data the programs are | | | | block addressing level, leaving it to attaching systems |
| operating on. In modern computers, the main | | | | to manage data or file systems within the provided |
| memory is the electronic solid-state random access | | | | capacity. |
| memory. It is directly connected to the CPU via a | | | | Network computers are computers that do not |
| "memory bus" (shown in the diagram) and a "data | | | | contain internal secondary storage devices. Instead, |
| bus". The arithmetic and logic unit can very quickly | | | | documents and other data are stored on a |
| transfer information between a processor register | | | | network-attached storage. |
| and locations in main storage, also known as a | | | | Confusingly, these terms are sometimes used |
| "memory addresses". The memory bus is also called | | | | differently. Primary storage can be used to refer to |
| an address bus or front side bus and both busses are | | | | local random-access disk storage, which should |
| high-speed digital "superhighways". Access methods | | | | properly be called secondary storage. If this type of |
| and speed are two of the fundamental technical | | | | storage is called primary storage, then the term |
| differences between memory and mass storage | | | | secondary storage would refer to offline, |
| devices. (Note that all memory sizes and storage | | | | sequential-access storage like tape media. |