VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization

Research output: Contribution to journalArticlepeer-review

Abstract

The memory demand of modern applications has been rapidly increasing with the continuous growth of data volume across industrial and academic domains. As a result, computing devices (i.e., IoT devices, smartphones, and tablets) often experience memory shortages that degrade system performance and quality of service by wasting CPU cycles and energy. Thus, most operating systems rely on the swap mechanism to mitigate the memory shortage situation in advance, even if the swap memory fragmentation problem occurs over time. In this paper, we analyze the fragmentation behavior of the swap memory space within storage devices over time and demonstrate that the latency of swap operations increases significantly under aged conditions. We also propose a new extension of the traditional swap mechanism, called VSwap, that mitigates the swap memory fragmentation problem in advance by introducing two core techniques, virtual migration and address remapping. In VSwap, virtual migration gathers valid swap pages scattered across multiple clusters into contiguous regions within the swap memory space, while address remapping updates the corresponding page table entries to preserve consistency after migration. For experiments, we enable VSwap on the traditional swap mechanism (i.e., kswapd) by implementing it with simple code modifications. To confirm the effectiveness of VSwap, we performed a comprehensive evaluation based on various workloads. Our evaluation results confirm that VSwap is more useful and highly valuable than the original swap mechanism. In particular, VSwap improves the overall performance up to 48.18% by harvesting available swap memory space in advance with negligible overhead; it performs close to the ideal performance.

Original languageEnglish
Article number12049
JournalApplied Sciences (Switzerland)
Volume15
Issue number22
DOIs
StatePublished - Nov 2025

Keywords

  • address remapping
  • migration
  • swap mechanism
  • swap memory fragmentation issue

Fingerprint

Dive into the research topics of 'VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization'. Together they form a unique fingerprint.

Cite this