ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalDC-221Storage Devices Hierar…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    DC-221

    Computer Organization and Assembly Language

    Progress0 / 35 done
    Topics35
    1Introduction to Computer Systems2Information is Bits + Context3Programs are Translated by Other Programs4Understanding Compilation Systems5Processors Read and Interpret Instructions6Caches Matter7Storage Devices Form a Hierarchy8The Operating System Manages the Hardware9Systems Communicate Using Networks10Representing and Manipulating Information11Information Storage12Integer Representations13Integer Arithmetic14Floating Point15Machine-Level Representation of Programs16A Historical Perspective17Program Encodings18Data Formats19Accessing Information20Arithmetic and Logical Operations21Control22Procedures23Array Allocation and Access24Heterogeneous Data Structures25Understanding Pointers26Using the GDB Debugger27Out-of-Bounds Memory References and Buffer Overflow
    28Extending IA-32 to 64 Bits29Machine-Level Representations of Floating-Point Programs30Processor Architecture31The Y86 Instruction Set Architecture32Logic Design and the Hardware Control Language (HCL)33Sequential Y86 Implementations34General Principles of Pipelining35Pipelined Y86 Implementations
    6 min read
    Topic 7 of 35
    Topic Study Note Illustration
    07

    Storage Devices Form a Hierarchy

    In computing, storage devices are organized into a hierarchy based on speed, cost, capacity, and accessibility. This hierarchy ensures that data is stored and accessed in the...

    Storage Devices Form a Hierarchy

    In computing, storage devices are organized into a hierarchy based on speed, cost, capacity, and accessibility. This hierarchy ensures that data is stored and accessed in the most efficient way possible, balancing the needs for fast access with the practicalities of cost and storage space. Understanding this hierarchy is crucial for optimizing system performance and managing data effectively.

    1. The Concept of Storage Hierarchy

    The storage hierarchy is a layered structure where different types of storage devices are arranged based on their characteristics:

    • Speed: How quickly data can be read from or written to the storage device.
    • Cost: The price per unit of storage (e.g., per gigabyte).
    • Capacity: The total amount of data that can be stored.
    • Accessibility: How readily the CPU can access the storage.

    At the top of the hierarchy are the fastest and most expensive storage types with lower capacity, while at the bottom are slower, cheaper, and higher-capacity storage devices.

    2. Levels of Storage Hierarchy

    The storage hierarchy typically consists of the following levels:

    a. Registers
    • Location: Inside the CPU.
    • Speed: Fastest storage available, operating at CPU speed.
    • Capacity: Very limited (usually just a few bytes to a few kilobytes).
    • Accessibility: Directly accessible by the CPU without any delay.
    • Use Case: Stores the immediate data the CPU needs to execute instructions (e.g., operands for arithmetic operations).
    b. Cache Memory
    • Location: On or very close to the CPU (L1, L2, and L3 caches).
    • Speed: Very fast, but slightly slower than registers.
    • Capacity: Limited (usually a few megabytes).
    • Accessibility: Accessed quickly by the CPU to store frequently used data and instructions.
    • Use Case: Stores data and instructions that are likely to be reused soon, reducing the need to access slower main memory.
    c. Main Memory (RAM)
    • Location: Separate from the CPU, but still within the computer.
    • Speed: Fast, but slower than cache memory.
    • Capacity: Larger than cache memory (typically several gigabytes).
    • Accessibility: Directly accessible by the CPU, though with more delay compared to cache.
    • Use Case: Stores currently running programs and data that are actively being used.
    d. Secondary Storage
    • Examples: Hard Disk Drives (HDDs), Solid State Drives (SSDs).
    • Location: Separate from the CPU, within the computer or connected externally.
    • Speed: Slower than RAM, with SSDs being faster than HDDs.
    • Capacity: Much larger than RAM (typically hundreds of gigabytes to terabytes).
    • Accessibility: Data is accessed more slowly than from RAM, but it is non-volatile (data is retained even when the computer is turned off).
    • Use Case: Stores the operating system, applications, and large data files. Secondary storage is where most of your files are kept.
    e. Tertiary Storage
    • Examples: Optical discs (CDs, DVDs, Blu-rays), magnetic tapes.
    • Location: Often external to the main computing device.
    • Speed: Much slower than secondary storage.
    • Capacity: Can vary, but typically used for large-scale storage needs.
    • Accessibility: Accessing data can be slow, sometimes requiring manual intervention (like inserting a disc).
    • Use Case: Used for backups, archival storage, and data that is infrequently accessed.
    f. Offsite/Cloud Storage
    • Examples: Cloud storage services (e.g., Google Drive, AWS S3).
    • Location: Remote servers accessible over the internet.
    • Speed: Dependent on network speed; generally slower than local secondary storage.
    • Capacity: Virtually unlimited, scalable on demand.
    • Accessibility: Accessible from anywhere with an internet connection.
    • Use Case: Used for backups, sharing data across multiple devices or users, and storing large amounts of data without needing physical storage hardware.

    3. Trade-offs in the Storage Hierarchy

    The storage hierarchy exists because of trade-offs between speed, cost, and capacity:

    • Speed vs. Cost: Faster storage like cache memory and RAM is more expensive per byte than slower storage like hard drives and optical discs. The system uses faster, more expensive storage for immediate tasks and slower, cheaper storage for long-term data.
    • Capacity vs. Speed: Devices with higher capacity tend to be slower. For instance, while a hard drive can store terabytes of data, it cannot match the speed of RAM or cache memory.
    • Volatility: Higher levels in the hierarchy (like cache and RAM) are typically volatile, meaning they lose data when power is lost. Lower levels (like SSDs, HDDs, and cloud storage) are non-volatile, retaining data even when the system is powered down.

    4. Example of Storage Hierarchy in Action

    When you run a program:

    1. Instructions and data are first loaded into RAM from secondary storage (like an SSD).
    2. Frequently accessed data might be moved to the cache for quicker access.
    3. CPU registers temporarily hold the data needed for the current operation.
    4. Once the program is closed, the data might be saved back to secondary storage or archived to tertiary storage or the cloud.

    5. Optimizing Performance with the Storage Hierarchy

    • Caching: By effectively using caches and optimizing data access patterns, programs can significantly reduce the time spent waiting for data.
    • Memory Management: Operating systems and applications can be designed to load only necessary data into RAM and use paging or swapping to manage memory efficiently.
    • Data Archiving: Storing infrequently used data in slower, high-capacity storage frees up faster storage for tasks that require immediate access.

    Conclusion

    The storage hierarchy is a fundamental concept in computer architecture, balancing the need for speed, cost-efficiency, and storage capacity. Each level of the hierarchy serves a specific purpose, ensuring that data is stored and accessed in the most efficient way possible. Understanding this hierarchy helps in optimizing system performance, managing data effectively, and making informed decisions about storage solutions.

    ← Previous topic 6
    Caches Matter
    Next topic 8 →
    The Operating System Manages the Hardware

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    6mremaining
    939words
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Organization and Assembly Language