Computer data storage: Difference between revisions

Content deleted Content added
m unpiped links using script
m Bot: http → https
 
(40 intermediate revisions by 34 users not shown)
Line 1:
{{short description|Storage of digital data readable by computers}}
{{Merge from|Non-volatileData memoryat rest|discuss=Talk:Computer data storage#Proposed merge of Non-volatileData at memoryrest into Computer data storage|date=AprilMarch 20242025}}
{{Use dmy dates|date=June 2020}}
{{broader|Data storage}}
Line 6:
[[File:DDR2 ram mounted.jpg|thumb|1 [[Gibibyte|GiB]] of [[SDRAM]] mounted in a [[computer]]. An example of ''primary storage''.]]
[[File:IBM DJNA-351520 Hard Disk A.jpg|thumb|15 [[Gigabyte|GB]] [[Parallel ATA|PATA]] hard disk drive (HDD) from 1999. When connected to a computer it serves as ''secondary'' storage.]]
[[File:Super DLTtape I.jpg|thumb|160 [[Gigabyte|GB]] [[Digital Linear Tape|SDLT]] [[tape cartridge]], an example of ''off-line'' storage. When used within a robotic [[tape library]], it is classified as ''tertiary'' storage instead.]]
[[File:Sony_CRX310S-Internal-PC-DVD-Drive-Opened.jpg|thumb|Read/Write DVD drive with cradle for media extended]]
 
Line 16:
 
== Functionality ==
Without a significant amount of memory, a computer would merely be able to perform fixed operations and immediately output the result. It would have to be reconfigured to change its behavior. This is acceptable for devices such as desk [[calculator]]s, [[digital signal processing|digital signal processors]], and other specialized devices. [[von Neumann architecture|Von Neumann]] machines differ in having a memory in which they store their operating [[Instruction set architecture#Instructions|instructions]] and data.<ref name="Patterson"/>{{rp|20}} Such computers are more versatile in that they do not need to have their hardware reconfigured for each new program, but can simply be [[computer programming|reprogrammed]] with new in-memory instructions; they also tend to be simpler to design, in that a relatively simple processor may keep [[State (computer science)|state]] between successive computations to build up complex procedural results. Most modern computers are von Neumann machines.
 
== Data organization and representation ==
Line 60:
 
Recently, ''primary storage'' and ''secondary storage'' in some uses refer to what was historically called, respectively, ''secondary storage'' and ''tertiary storage''.<ref>{{cite web|url=http://searchstorage.techtarget.com/topics/0,295493,sid5_tax298620,00.html|title=Primary storage or storage hardware (shows usage of term "primary storage" meaning "hard disk storage")|url-status=dead|archive-url=https://web.archive.org/web/20080910151628/http://searchstorage.techtarget.com/topics/0,295493,sid5_tax298620,00.html|archive-date=10 September 2008|website=searchstorage.techtarget.com|access-date=18 June 2011}}</ref>
 
The primary storage, including [[Read-only memory|ROM]], [[EEPROM]], [[NOR flash]], and [[Random access memory|RAM]],<ref>{{cite book | url=https://books.google.com/books?id=QGPHAl9GE-IC&dq=size+of+a+memory+address&pg=PA321 | isbn=978-0-7637-3769-6 | title=The Essentials of Computer Organization and Architecture | date=2006 | publisher=Jones & Bartlett Learning }}</ref> are usually [[byte-addressable]].
 
=== Secondary storage ===
Line 66 ⟶ 68:
In modern computers, [[hard disk drive]]s (HDDs) or [[solid-state drive]]s (SSDs) are usually used as secondary storage. The [[access time]] per byte for HDDs or SSDs is typically measured in [[millisecond]]s (thousandths of a second), while the access time per byte for primary storage is measured in [[nanosecond]]s (billionths of a second). Thus, secondary storage is significantly slower than primary storage. Rotating [[Optical disc drive|optical storage]] devices, such as [[CD]] and [[DVD]] drives, have even longer access times. Other examples of secondary storage technologies include [[USB flash drive]]s, [[floppy disk]]s, [[magnetic-tape data storage|magnetic tape]], [[paper tape]], [[punched card]]s, and [[RAM drive|RAM disks]].
 
Once the [[disk read/write head]] on HDDs reaches the proper placement and the data, subsequent data on the track are very fast to access. To reduce the seek time and rotational latency, data are transferred to and from disks in large contiguous blocks. Sequential or block access on disks is orders of magnitude faster than random access, and many sophisticated paradigms have been developed to design efficient algorithms based on sequential and block access. Another way to reduce the I/O bottleneck is to use multiple disks in parallel to increase the bandwidth between primary and secondary memory, for example, using [[RAID]].<ref>{{cite book|author=[[J. S. Vitter]]|url=http://www.ittc.ku.edu/~jsv/Papers/Vit.IO_book.pdf|url-status=live|title=Algorithms and data structures for external memory|archive-url=https://web.archive.org/web/20110104233254/http://www.ittc.ku.edu/~jsv/Papers/Vit.IO_book.pdf |archive-date=4 January 2011|series=Series on foundations and trends in theoretical computer science|publisher=now Publishers|___location=Hanover, MA|year=2008|isbn=978-1-60198-106-6}}</ref>
 
Secondary storage is often formatted according to a [[file system]] format, which provides the abstraction necessary to organize data into [[Computer file|files]] and [[Directory (computing)|directories]], while also providing [[metadata]] describing the owner of a certain file, the access time, the access permissions, and other information.
 
Most computer [[operating system]]s use the concept of [[virtual memory]], allowing the utilization of more primary storage capacity than is physically available in the system. As the primary memory fills up, the system moves the least-used chunks ([[Page (computer memory)|pages]]) to a swap file or page file on secondary storage, retrieving them later when needed. If a lot of pages are moved to slower secondary storage, the system performance is degraded.
 
The secondary storage, including [[Hard disk drive|HDD]], [[optical disc drive|ODD]] and [[Solid state drive|SSD]], are usually block-addressable.
 
=== Tertiary storage ===
Line 87 ⟶ 91:
* Offline storage is not immediately available, and requires some human intervention to become online.
 
For example, always-on spinning hard disk drives are online storage, while spinning drives that spin down automatically, such as in massive arrays of idle disks ([[Non-RAID drive architectures#MAID|MAID]]), are nearline storage. Removable media such as [[tape cartridgescartridge]]s that can be automatically loaded, as in [[tape libraries]], are nearline storage, while tape cartridges that must be manually loaded are offline storage.
 
=== Off-line storage ===
Line 104 ⟶ 108:
|archive-date = 2 March 2009}} See also article [[Federal standard 1037C]].</ref> The medium is recorded, usually in a secondary or tertiary storage device, and then physically removed or disconnected. It must be inserted or connected by a human operator before a computer can access it again. Unlike tertiary storage, it cannot be accessed without human interaction.
 
[[Off-line]] storage is used to [[Data communication|transfer information]] since the detached medium can easily be physically transported. Additionally, it is useful for cases of disaster, where, for example, a fire destroys the original data, a medium in a remote ___location will be unaffected, enabling [[IT disaster recovery|disaster recovery]]. Off-line storage increases general [[information security]] since it is physically inaccessible from a computer, and data confidentiality or integrity cannot be affected by computer-based attack techniques. Also, if the information stored for archival purposes is rarely accessed, off-line storage is less expensive than tertiary storage.
 
In modern personal computers, most secondary and tertiary storage media are also used for off-line storage. Optical discs and flash memory devices are the most popular, and to a much lesser extent removable hard disk drives; older examples include floppy disks and Zip disks. In enterprise uses, magnetic tape cartridges are predominant; older examples include open-reel magnetic tape and punched cards.
Line 228 ⟶ 232:
=== Energy use ===
* Storage devices that reduce fan usage automatically shut-down during inactivity, and low power hard drives can reduce energy consumption by 90 percent.<ref>{{cite web|url=http://www.springlightcfl.com/consumer/energy_savings_calculator.aspx|title=Energy savings calculator|url-status=dead|archive-url=https://web.archive.org/web/20081221131054/http://springlightcfl.com/consumer/energy_savings_calculator.aspx|archive-date=21 December 2008}}</ref><ref>{{Cite web|url=http://www.simpletech.com/content/eco-friendly-redrive|url-status=dead|archive-url=https://web.archive.org/web/20080805092907/http://www.simpletech.com/content/eco-friendly-redrive|archive-date=5 August 2008|title=How much of the [re]drive is actually eco-friendly?|website=Simple tech}}</ref>
* 2.5-inch hard disk drives often consume less power than larger ones.<ref>{{cite web|title=IS the Silent PC Future 2.5-inches wide?|url=http://www.silentpcreview.com/article145-page1.html|access-date=2 August 2008|author=Mike Chin|date=8 March 2004|url-status=live|archive-url=https://web.archive.org/web/20080720000101/http://www.silentpcreview.com/article145-page1.html|archive-date=20 July 2008}}</ref><ref>{{cite web|url=http://www.silentpcreview.com/article29-page2.html|title=Recommended hard drives|access-date=2 August 2008|author=Mike Chin|date=18 September 2002|url-status=live|archive-url=https://web.archive.org/web/20080905085853/http://www.silentpcreview.com/article29-page2.html|archive-date=5 September 2008}}</ref> Low capacity [[solid-state drive]]s have no moving parts and consume less power than hard disks.<ref>{{Cite web|url=http://techreport.com/articles.x/10334/13|title=Super Talent's 2.5" IDE flash hard drive|website=The tech report|date=12 July 2006|page=13|archive-url=https://web.archive.org/web/20120126045422/http://techreport.com/articles.x/10334/13|archive-date=26 January 2012|access-date=18 June 2011}}</ref><ref>{{Cite web|url=httphttps://www.tomshardware.com/reviews/conventional-hard-drive-obsoletism,1324-5.html|title=Power consumption – Tom's hardware : Conventional hard drive obsoletism? Samsung's 32 GB flash drive previewed|website=tomshardware.com|date=20 September 2006|access-date=18 June 2011}}</ref><ref name=xbitSSDvsHD/> Also, memory may use more power than hard disks.<ref name=xbitSSDvsHD>{{cite web|title=SSD, i-RAM and traditional hard disk drives|date=23 April 2008|url=http://www.xbitlabs.com/articles/storage/display/ssd-iram.html|author=Aleksey Meyev|publisher=X-bit labs|url-status=dead|archive-url=https://web.archive.org/web/20081218134355/http://www.xbitlabs.com/articles/storage/display/ssd-iram.html|archive-date=18 December 2008}}</ref> Large caches, which are used to avoid hitting the [[memory wall]], may also consume a large amount of power.
 
=== Security ===
Line 278 ⟶ 282:
* Magnetic tape was then often used for secondary storage.
 
Magnetic storage does not have a definite limit of rewriting cycles like flash storage and re-writeable optical media, as altering magnetic fields causes no physical wear. Rather, their life span is limited by mechanical parts.<ref>{{cite web |title=Comparing SSD and HDD endurance in the age of QLC SSDs|url=https://www.micron.com/-/media/client/global/documents/products/white-paper/5210_ssd_vs_hdd_endurance_white_paper.pdf |archive-url=https://ghostarchive.org/archive/20221009/https://www.micron.com/-/media/client/global/documents/products/white-paper/5210_ssd_vs_hdd_endurance_white_paper.pdf |archive-date=2022-10-09 |url-status=live|publisher=Micron technology}}</ref><ref>{{cite web|title=Comparing SSD and HDD - A comprehensive comparison of the storage drives|url=https://www.stellarinfo.co.in/kb/ssd-vs-hdd.php |website=www.stellarinfo.co.in|date=28 February 2025 |language=en}}</ref>
 
=== Optical ===
Line 401 ⟶ 405:
== Further reading ==
* {{cite journal|title=The history of storage systems|journal=[[Proceedings of the IEEE]]|author1=Goda, K. |author2=Kitsuregawa, M. |year=2012|pages=1433–1440|volume=100|doi=10.1109/JPROC.2012.2189787|doi-access=free}}
* [httphttps://www.computerhistory.org/revolution/memory-storage/8 Memory & storage], Computer history museum
 
{{Basic computer components}}