All Exams Test series for 1 year @ ₹349 only
Question

If two non-continuous free partition of size ‘a’ and ‘b’ are available. A process of size ‘c’ cannot be allocated even when a + b > c, a < c and b < c. This problem is known as _______.

The correct answer is

external fragmentation

Understanding Memory Allocation Problems

The question describes a situation where a process needs a block of memory of size ‘c’. There are two separate free partitions available, one of size ‘a’ and another of size ‘b’. The total free memory available is ‘a + b’. The condition given is that even though the total free memory is sufficient to hold the process (a + b > c), the process cannot be allocated because neither individual free partition is large enough (a < c and b < c).

This specific problem where total free memory exists but is scattered in small, non-contiguous blocks, making it impossible to allocate a large process, is a classic example of external fragmentation.

What is External Fragmentation?

External fragmentation occurs when there is enough total memory space to satisfy a request, but the available space is not contiguous; it is divided into small pieces across the memory. Imagine memory as a street with empty parking spots. If you need to park a large truck, there might be enough total empty space across multiple spots, but if no single contiguous stretch of spots is long enough, the truck cannot be parked. Similarly, if memory has many small free holes, a large process cannot be loaded even if the sum of the sizes of these holes is greater than the process size.

In the given scenario, the free partitions of size ‘a’ and ‘b’ are non-contiguous. Since the process size ‘c’ is larger than each individual partition (a < c and b < c), the process cannot be allocated to either partition alone. Even though the combined size (a + b) is greater than ‘c’, the non-contiguous nature of the free space prevents allocation.

Why Other Options are Incorrect

  • Worst Fit: This is a memory allocation algorithm that attempts to find the largest available free block to allocate a process. While algorithms like worst fit, best fit, and first fit deal with how to choose a block for allocation, they do not define the problem of fragmentation itself. They are strategies to manage memory, which can sometimes lead to or mitigate fragmentation.
  • Quick Fit: This is another memory allocation algorithm that maintains separate lists of free blocks for common sizes. Like worst fit, it is an allocation strategy, not a type of memory fragmentation problem.
  • Internal Fragmentation: This type of fragmentation occurs when memory is allocated in fixed-size blocks (or sizes that are multiples of a fixed block size). If a process is allocated a block larger than it requires, the unused space *within* that allocated block is called internal fragmentation. The problem described in the question involves free space *between* allocated blocks, not unused space within an allocated block.

Therefore, the situation where a process cannot be allocated due to insufficient contiguous free memory, despite sufficient total free memory, is known as external fragmentation.

Fragmentation Type Description Scenario Example
External Fragmentation Total free memory is sufficient, but it is broken into non-contiguous blocks too small to satisfy a request. Free blocks are 10KB and 15KB. Process needs 20KB. Total free > 20KB (25KB), but process cannot fit.
Internal Fragmentation Allocated memory block is larger than the process requires, leaving unused space within the allocated block. Memory allocated in 4KB blocks. Process needs 3KB. A 4KB block is allocated, leaving 1KB unused inside.

Revision Table: Memory Fragmentation Concepts

Term Definition Associated Issues
External Fragmentation Free space is scattered, non-contiguous, too small for allocation. Wastes total available memory; requires compaction or relocation.
Internal Fragmentation Unused space within an allocated memory block. Wastes memory within blocks; depends on allocation strategy (e.g., fixed-size partitions).

Additional Information on External Fragmentation

External fragmentation is a significant issue in dynamic memory allocation systems, especially when using variable-partition schemes. It can lead to memory wastage and reduced system performance as the operating system spends time searching for free blocks or needs to perform complex operations like compaction.

Techniques to handle external fragmentation include:

  • Compaction: Relocating processes in memory to consolidate scattered free blocks into one large contiguous block. This is computationally expensive and requires processes to be relocatable.
  • Segmentation and Paging: Memory management techniques that divide processes or memory into smaller units (segments or pages) that can be loaded into non-contiguous physical memory frames, effectively eliminating the need for contiguous allocation of the entire process address space.

Understanding external fragmentation is crucial for designing efficient memory management systems.

Was this answer helpful?

Important Questions from Virtual Memory

  1. Which of the following cloud concept/s is/are related to pooling and sharing of resources?

    (A) Virtual Memory

    (B) Service

    (C) Virtualization

    Choose the correct answer from the options given below:

  2. The time required to wait until Read/Write head comes under a desired sector is known as ______

  3. Size of virtual memory depends on

  4. Arrange the process of virtualization in cloud environments.
    A. Hypervisor installed on physical server
    B. Virtual machines created
    C. Resources allocated to Virtual machines
    D. Virtual machines run isolated workloads
    Choose the correct answer from the options given below:
  5. Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R

     Assertion A: Thrashing occurs when a process spends more time on paging than executing. 

    Reason R: It happens when the degree of multiprogramming is too low and frames are insufficient. 

    In the light of the above statements, choose the most appropriate answer from the options given below

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App