<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Backend Beginner</title>
    <description>The latest articles on Forem by Backend Beginner (@ramya_thimmisetty).</description>
    <link>https://forem.com/ramya_thimmisetty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3842790%2F81ec6c90-3ebf-4329-9f55-69f08749e5f7.png</url>
      <title>Forem: Backend Beginner</title>
      <link>https://forem.com/ramya_thimmisetty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ramya_thimmisetty"/>
    <language>en</language>
    <item>
      <title>Types of Computer Memory and Storage</title>
      <dc:creator>Backend Beginner</dc:creator>
      <pubDate>Thu, 26 Mar 2026 23:40:02 +0000</pubDate>
      <link>https://forem.com/ramya_thimmisetty/types-of-computer-memory-and-storage-5de6</link>
      <guid>https://forem.com/ramya_thimmisetty/types-of-computer-memory-and-storage-5de6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Types of Memory and Storage Explained&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6d2k6nlwhxsnm7nidxua.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6d2k6nlwhxsnm7nidxua.png" alt="Diagram showing types of computer memory and storage including SRAM, DRAM, ROM, HDD, SSD, and NVMe with volatile vs non-volatile classification" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RAM (Random Access Memory)&lt;/strong&gt; is the main working memory of a computer. It is &lt;strong&gt;volatile&lt;/strong&gt;, meaning it &lt;strong&gt;loses all data when the power is turned off&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;RAM is divided into two main categories:&lt;/p&gt;

&lt;h4&gt;
  
  
  1. SRAM (Static Random Access Memory)
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Extremely fast and does &lt;strong&gt;not&lt;/strong&gt; require refreshing&lt;/li&gt;
&lt;li&gt;More expensive and consumes more power&lt;/li&gt;
&lt;li&gt;Primarily used in &lt;strong&gt;CPU Cache&lt;/strong&gt; (L1, L2, and L3) and registers&lt;/li&gt;
&lt;li&gt;Ideal when &lt;strong&gt;ultra-quick access&lt;/strong&gt; is critical&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is Cache Memory?&lt;/strong&gt;&lt;br&gt;
Cache Memory is a small, extremely fast memory located very close to the CPU. Its main job is to store frequently used data and instructions so the CPU can access them almost instantly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Do We Need Cache?&lt;/strong&gt;&lt;br&gt;
The CPU is much faster than main RAM (DRAM). This speed difference creates a problem called the Memory Wall. Cache helps solve this by keeping the most-used data ready for the CPU.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cache Hierarchy&lt;/strong&gt;&lt;br&gt;
Modern CPUs use a multi-level cache system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;L1 Cache: Smallest and fastest (per core)&lt;/li&gt;
&lt;li&gt;L2 Cache: Medium size and speed&lt;/li&gt;
&lt;li&gt;L3 Cache: Largest, shared among all cores&lt;/li&gt;
&lt;li&gt;Speed Order: L1 &amp;gt; L2 &amp;gt; L3 &amp;gt;&amp;gt; DRAM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Key Points&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cache is built using SRAM (very fast but expensive)&lt;/li&gt;
&lt;li&gt;It is automatically managed by the CPU&lt;/li&gt;
&lt;li&gt;Cache Hit = Data found in cache → Super fast&lt;/li&gt;
&lt;li&gt;Cache Miss = Data not found → CPU fetches from slower RAM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This cache system is one of the biggest reasons modern computers feel fast.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. DRAM (Dynamic Random Access Memory)
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Slower than SRAM&lt;/li&gt;
&lt;li&gt;Requires constant &lt;strong&gt;refreshing&lt;/strong&gt; to retain data&lt;/li&gt;
&lt;li&gt;Much cheaper and offers higher capacity&lt;/li&gt;
&lt;li&gt;Used as the &lt;strong&gt;main system memory&lt;/strong&gt; in PCs, laptops, and servers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Modern versions of DRAM (as of 2026):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DDR5&lt;/strong&gt; — The current standard for system RAM. Offers higher speed, better power efficiency, and improved data transfer rates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GDDR6 / GDDR7&lt;/strong&gt; — Specialized high-bandwidth memory used in GPUs and AI accelerators for massive parallel processing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While volatile memory like RAM provides the speed needed for active computing, computers also need memory that can &lt;strong&gt;retain data even when powered off&lt;/strong&gt;. This brings us to &lt;strong&gt;Non-Volatile Memory&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Non-Volatile Memory
&lt;/h3&gt;

&lt;p&gt;Unlike RAM, &lt;strong&gt;Non-Volatile Memory&lt;/strong&gt; retains data even when the power is turned off. It is mainly used for storing permanent instructions and boot information.&lt;/p&gt;

&lt;p&gt;Common types include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ROM / Firmware (BIOS/UEFI)&lt;/strong&gt; — Stores critical boot instructions and hardware initialization code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flash Memory / EEPROM&lt;/strong&gt; — Electrically erasable and rewritable memory. This is the foundation of modern SSDs and USB drives.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once we move beyond primary memory (RAM and ROM), we need a different category for long-term data storage. This is where &lt;strong&gt;Secondary Storage&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Secondary Storage
&lt;/h3&gt;

&lt;p&gt;Storage is used for long-term data retention — your operating system, applications, files, and large datasets. Here are the most common types in 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HDD (Hard Disk Drive)&lt;/strong&gt;: Offers very high capacity but slower access speeds. Still used for bulk and archival storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSD (Solid State Drive)&lt;/strong&gt;: Flash-based storage that is significantly faster and more reliable than HDDs. The standard choice for everyday use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NVMe SSD&lt;/strong&gt;: The current high-performance standard for fast storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  What are PCIe Lanes?
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;PCIe lanes&lt;/strong&gt; are high-speed data highways that connect components like NVMe SSDs and GPUs directly to the CPU or chipset. &lt;/p&gt;

&lt;p&gt;Most consumer NVMe SSDs use &lt;strong&gt;4 PCIe lanes&lt;/strong&gt; (called PCIe x4). The more lanes a device uses, the higher the bandwidth and the lower the latency it can achieve.&lt;/p&gt;

&lt;p&gt;This direct connection allows NVMe SSDs to deliver extremely high read/write speeds — often &lt;strong&gt;7,000–14,000+ MB/s&lt;/strong&gt; in 2026 with PCIe Gen5.&lt;/p&gt;

&lt;h3&gt;
  
  
  CXL Memory (Compute Express Link)
&lt;/h3&gt;

&lt;p&gt;As AI and data-intensive applications continue to grow, even fast NVMe storage and large amounts of DRAM are sometimes not enough. This is where &lt;strong&gt;CXL (Compute Express Link)&lt;/strong&gt; comes into play.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CXL&lt;/strong&gt; is a modern high-speed interconnect technology built on top of the PCIe interface. It allows the CPU to access additional memory attached to other devices (such as memory expanders or GPUs) &lt;strong&gt;as if it were local RAM&lt;/strong&gt;, while maintaining full cache coherency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why CXL is becoming important in 2026:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Traditional DDR5 has limited capacity per CPU socket.&lt;/li&gt;
&lt;li&gt;AI models require massive amounts of memory.&lt;/li&gt;
&lt;li&gt;CXL enables &lt;strong&gt;memory expansion&lt;/strong&gt; and &lt;strong&gt;memory pooling&lt;/strong&gt; — multiple servers can efficiently share a large pool of memory.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This results in near-DRAM performance with much higher total memory capacity, making it especially valuable for large-scale AI training and inference.&lt;/p&gt;




&lt;p&gt;PS&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Power ON → ROM (BIOS/UEFI) starts first. (ROM is a small chip on the motherboard that contains basic boot instructions.)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ROM performs basic hardware checks (POST) and tells the system to load the OS from the SSD (Flash Storage).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The OS files are copied from the SSD into DRAM (Main RAM).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CPU (Processor) starts executing the OS. → It uses data and instructions from DRAM (RAM) and its own internal SRAM Cache (L1, L2, L3) for speed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The SSD remains connected through PCIe lanes so the CPU can quickly read/write data whenever needed.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>memoryhierarchy</category>
      <category>systemdesign</category>
      <category>memory</category>
      <category>storage</category>
    </item>
  </channel>
</rss>
