Next Article in Journal
AI-Driven Control Strategies for FACTS Devices in Power Quality Management: A Comprehensive Review
Previous Article in Journal
Visualizing Driving Maneuvers Through Peripheral Displays: A Comparative Study of iHMI Design in Autonomous Vehicles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

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

Department of Computer Science and Artificial Intelligence, Dongguk University-Seoul, Seoul 04620, Republic of Korea
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(22), 12049; https://doi.org/10.3390/app152212049 (registering DOI)
Submission received: 21 October 2025 / Revised: 10 November 2025 / Accepted: 11 November 2025 / Published: 12 November 2025

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.
Keywords: swap mechanism; swap memory fragmentation issue; migration; address remapping swap mechanism; swap memory fragmentation issue; migration; address remapping

Share and Cite

MDPI and ACS Style

Moon, G.; Kang, D. VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization. Appl. Sci. 2025, 15, 12049. https://doi.org/10.3390/app152212049

AMA Style

Moon G, Kang D. VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization. Applied Sciences. 2025; 15(22):12049. https://doi.org/10.3390/app152212049

Chicago/Turabian Style

Moon, Gyupin, and Donghyun Kang. 2025. "VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization" Applied Sciences 15, no. 22: 12049. https://doi.org/10.3390/app152212049

APA Style

Moon, G., & Kang, D. (2025). VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization. Applied Sciences, 15(22), 12049. https://doi.org/10.3390/app152212049

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop