{"id":6419,"date":"2021-03-11T21:06:09","date_gmt":"2021-03-11T19:06:09","guid":{"rendered":"https:\/\/tekmart.co.za\/t-blog\/?p=6419"},"modified":"2021-03-11T21:06:11","modified_gmt":"2021-03-11T19:06:11","slug":"difference-between-memory-and-storage","status":"publish","type":"post","link":"https:\/\/tekmart.co.za\/t-blog\/difference-between-memory-and-storage\/","title":{"rendered":"Difference between memory and storage."},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2 class=\"wp-block-heading\"><strong>Storage and memory, while connected, fulfill separate roles in a computer. Memory meets temporary data access needs and storage retains data and other files over the long term.<\/strong><\/h2>\n\n\n\n<p>By <a href=\"https:\/\/www.techtarget.com\/contributor\/Brett-Cooper\">Brett Cooper<\/a>, <a href=\"https:\/\/www.techtarget.com\/contributor\/Rodney-Brown\">Rodney Brown<\/a> and <a href=\"https:\/\/www.techtarget.com\/contributor\/Stacey-Peterson\">Stacey Peterson<\/a><\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>The terms\u00a0<em>memory<\/em>\u00a0and\u00a0<em>storage<\/em>\u00a0both refer to a computer&#8217;s internal storage space. Memory is where an application puts the data it uses during processing. A storage drive is where data is placed for long- or short-term retention.<\/p><\/blockquote><\/figure>\n\n\n\n<p>The storage drive was traditionally an HDD, but SSDs with flash memory modules are now commonly used for primary storage. System memory, often referred to as random-access memory (RAM), is faster than disk or flash storage, but it&#8217;s also usually more expensive on a per-gigabyte basis.<\/p>\n\n\n\n<p>A key\u00a0difference between memory and storage\u00a0is what happens to the data when the system is turned off. RAM is generally volatile, meaning data is retained only as long as the OS runs. Storage devices are usually non-volatile, so they retain data when the system is off.<\/p>\n\n\n\n<p>The line between memory and storage blurs with techniques such as\u00a0paging, also known as swap space.\u00a0Swap space\u00a0is part of the storage drive that is turned into memory for the OS to swap out applications and data from active memory to the drive. In this way, the storage drive functions as active memory that&#8217;s slower than the system&#8217;s RAM but can be used to create larger\u00a0virtual memory spaces. Most OSes will create a swap or paging space that is equal to two times the RAM space on a computer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is memory?<\/strong><\/h3>\n\n\n\n<p>RAM is the memory hardware in a computer where the OS, applications and data are kept for processing. When a computer boots, it loads these files into RAM, usually from the storage media. When the computer is turned off or loses power, the files return to storage.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>RAM functions as the computer&#8217;s short-term memory. It&#8217;s much faster to read from and write to than the HDDs, SSDs and other types of drives used for storage. The computer&#8217;s CPU relies on memory to quickly get the data and applications it needs to function.The line between active memory and storage is getting closer to not just blurring, but disappearing altogether.<\/p><\/blockquote>\n\n\n\n<p>RAM consists of microchips combined into memory modules. These modules plug into a computer&#8217;s motherboard and connect to the CPU via a\u00a0bus. The amount of RAM on a computer is usually small compared with the amount of storage. When a computer uses all its free memory, the processor must copy old data from RAM back to storage and replace it with new data. This process slows the computer&#8217;s operation, but most computers have extra slots to add more RAM to address this issue.<\/p>\n\n\n\n<p>A computer&#8217;s primary memory is usually made up of dynamic RAM (DRAM) modules. Computers also have\u00a0cache memory for high-speed data processing\u00a0that consist of higher performance static RAM (SRAM) modules that are faster than DRAM. Frequently used instructions and data for high-performance operations are moved to cache memory, which is physically closer to the CPU than DRAM. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>The processor can then access instruction and data files faster from the SRAM than if they were on primary memory. Cache memory is 10 to 100 times faster than RAM. It requires only a few nanoseconds to respond to a CPU request.<\/p><\/blockquote>\n\n\n\n<p>A computer system also includes\u00a0read-only memory, which keeps files such as system firmware or BIOS programs that are only read in ROM. You can update the information in this kind of memory in a process called\u00a0<em>flashing<\/em>, but otherwise, it can only be read, not written to, by the computer system. Other types of memory function as storage drives for everything from MP3 and picture files to presentations and other data. These formats include USB flash drives, CompactFlash cards or memory sticks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1000\" height=\"372\" src=\"https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2021\/03\/comparing-memory-types.jpg\" alt=\"\" class=\"wp-image-6420\" srcset=\"https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2021\/03\/comparing-memory-types.jpg 1000w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2021\/03\/comparing-memory-types-300x112.jpg 300w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2021\/03\/comparing-memory-types-768x286.jpg 768w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2021\/03\/comparing-memory-types-800x298.jpg 800w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><figcaption>Comparing memory types used in active memory and storage.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is storage?<\/strong><\/h3>\n\n\n\n<p>If a computer only had RAM, users would need to reenter all the data and applications they wanted to use each time they logged in. Storage allows computers to hold onto the data, applications, documents and other material needed to run the computer and enable applications indefinitely, and it&#8217;s retained when power is lost or the computer is reset. Computer storage refers to the data stored and the hardware and software used to capture, manage and prioritize the data.<\/p>\n\n\n\n<p>Storage on a computer commonly consists of a storage device, such as an SSD or HDD. HDDs store data on magnetic spinning disks and SSDs store data on flash memory chips. Storage devices provide\u00a0non-volatile memory, enabling them to retain data even without power and when the computer is turned off.<\/p>\n\n\n\n<p>Storage in general is slower than RAM, and HDDs are slower than flash-based SSDs. Unlike RAM, storage is not directly connected to the CPU. The interface that connects storage to the CPU also affects the speed of storage. The SATA interface has been the standard interface for SSDs and HDDs for years. That began to change in the last decade with the\u00a0advent of NVMe technology. NVMe is optimized for NAND flash, using a PCIe interface to connect flash storage and the CPU. NVMe drives reduce latency and deliver higher IOPS. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Drives using a PCIe 3.0 connection have write speeds that are more then seven times faster than SATA drives. Besides speed, NVMe-based SSDs offer other advantages, including scalable performance and energy efficiency.<\/p><\/blockquote>\n\n\n\n<p>As the\u00a0price of the flash memory\u00a0used in SSDs has fallen, solid-state drives have become the top choice for primary storage. However, HDDs still boast price advantages and will remain strong for secondary storage. High-capacity hard drives based on shingled magnetic recording, heat-assisted magnetic recording and microwave-assisted magnetic recording technologies are expected to hit the market in 2020 or 2021, with a speed boost from multiactuator drives that will help keep HDDs relevant.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Storage vs. Memory: What&#039;s the Difference?\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/H_M--weEzpA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Other types of external storage include optical storage, which writes and reads data with a laser, and tape storage. These serve mostly for long-term data storage. Optical storage includes Blu-ray, CD-ROM and DVD discs.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Tape is a form of magnetic storage that was once the most common type of storage used for backup. HDDs and even SSDs have become the main choices for backup because of their performance and ease of use compared to tape, but tape remains popular for archiving because of its low cost, high capacity and long-term durability.<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>The future of memory and storage is fuzzy<\/strong><\/h3>\n\n\n\n<p>The line between active memory and storage is getting closer to not just blurring, as in paging, but disappearing altogether. Manufacturers are\u00a0working on technologies\u00a0that promise to combine the speed of RAM with the ability of flash to be non-volatile memory.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/sss-intel_optane_ssd_mobile.jpg\" alt=\"Intel Optane SSD DC P4800X\"\/><figcaption><strong>Intel&#8217;s SSD DC P4800X is based on 3D XPoint technology.<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Among these technologies are ferroelectric RAM and magnetoresistive RAM, but the one closest to achieving the goal of being both active memory and storage is phase-change memory (PCM). Intel and Micron Technology Inc. developed\u00a03D XPoint technology\u00a0to fill the performance gap between DRAM and NAND flash. 3D XPoint is\u00a0based on PCM, with a transistor-less, cross-point architecture that puts selectors and memory cells at the intersection of perpendicular wires.<\/p>\n\n\n\n<p>Intel has 3D XPoint-based SSDs, memory and dual in-line memory module cards on the market under its Optane brand. Intel has said that early testing of its upcoming second-generation SSDs would sustain an average read I\/O latency of about 10 microseconds up to a load of at least 800,000 IOPS. In 2019,\u00a0Micron rolled out\u00a0its first 3D XPoint SSD that it claimed is three times faster than NAND with 11 times lower latency and supports up to 2.5 million IOPS and 9 GBps read\/write bandwidth.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>Storage and memory, while connected, fulfill separate roles in a computer. Memory meets temporary data access needs and storage retains data and other files over the long term. By Brett Cooper, Rodney Brown and Stacey Peterson The terms\u00a0memory\u00a0and\u00a0storage\u00a0both refer to a computer&#8217;s internal storage space. Memory is where an application puts the data it uses during processing. A storage drive<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/tekmart.co.za\/t-blog\/difference-between-memory-and-storage\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155,8,4,30,3,63],"tags":[],"class_list":["post-6419","post","type-post","status-publish","format-standard","hentry","category-batting-for-tech-in-the-covid-19-times","category-data-center-hardware","category-datacenter-news","category-expert-advise-and-opinion","category-industry-news-and-expert-advise","category-primary-storage-devices"],"_links":{"self":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/comments?post=6419"}],"version-history":[{"count":1,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6419\/revisions"}],"predecessor-version":[{"id":6421,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6419\/revisions\/6421"}],"wp:attachment":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/media?parent=6419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/categories?post=6419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/tags?post=6419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}