Linux 2.2.x kernel: maximum size of a swap partition For systems running Linux kernel series 2.2.x, what is the maximum size supported for a single swap partition?

Difficulty: Medium

Correct Answer: 2GB

Explanation:


Introduction / Context:
Swap space extends virtual memory beyond physical RAM, enabling processes to run when RAM is fully utilized. Historical kernel versions imposed strict limits on the size of a single swap area. Administrators working with legacy systems must know these constraints to plan partitioning correctly.



Given Data / Assumptions:

  • The target system uses a Linux 2.2.x kernel.
  • We are asking about a single swap partition, not the total of multiple swap areas.
  • Standard swap partition format is used (not a swap file on unusual filesystems).


Concept / Approach:

Linux kernels have evolved in their swap area limits. In the 2.2.x era, a single swap partition supported up to approximately 2GB. Systems could employ multiple swap areas (activated via swapon) to increase total swap beyond this per-area cap, but each individual area had its own limit.



Step-by-Step Solution:

Identify kernel series: 2.2.x.Recall historical per-area swap limit for this series: 2GB.Note that multiple swap partitions can be combined to scale total swap capacity.Select 2GB as the correct maximum size for one swap partition.


Verification / Alternative check:

Consult man mkswap and historical kernel documentation for 2.2.x. Cross-reference with distribution release notes from that period, which typically confirm the 2GB per swap area limit and the ability to use several swap areas concurrently.



Why Other Options Are Wrong:

  • 128MB, 64MB, 32MB: reflect much older or different constraints; too small for 2.2.x capabilities.
  • None of the above: incorrect because 2GB is the known limit for a single swap area in 2.2.x.


Common Pitfalls:

Confusing per-area limits with total swap limits; overlooking differences between swap partitions and swap files; failing to align swap size with RAM and workload needs on legacy systems. Modern kernels may have different limits, so always align guidance with the actual kernel version.


Final Answer:

2GB

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion