Buy the ARP T-Shirt! BIOS Optimization Guide Money Savers!
 
 01 December 2004
 N/A
  N/A
 Tweaks
 Adrian Wong
 4.1
 Discuss here !
 353377
 
   
Desktop CPU Comparison Guide Rev. 8.1
There are so many CPU models that it has become quite impossible to keep up with the ... Read here
x264 HD Benchmark Ver. 3.12
The x264 HD Benchmark is the “High Definition version” of the x264 Benchmark w... Read here
   
Buy The BOG Book Subscribe To The BOG! Latest Money Savers!
Virtual Memory Optimization Guide Rev. 4.1
Digg! Reddit!Add to Reddit | Bookmark this article:

Swapfile Vs. Paging File

We have all been using the terms swapfile and paging file interchangeably. Even Microsoft invariably refers to the paging file as the swapfile and vice versa. However, the swapfile and paging file are two different entities. Although both are used to create virtual memory, there are subtle differences between the two.

The main difference lies in their names. Swapfiles operate by swapping entire processes from system memory into the swapfile. This immediately frees up memory for other applications to use.

In contrast, paging files function by moving "pages" of a program from system memory into the paging file. These pages are 4KB in size. The entire program does not get swapped wholesale into the paging file.

While swapping occurs when there is heavy demand on the system memory, paging can occur preemptively. This means that the operating system can page out parts of a program when it is minimized or left idle for some time. The memory used by the paged-out portions are not immediately released for use by other applications. Instead, they are kept on standby.

If the paged-out application is reactivated, it can instantly access the paged-out parts (which are still stored in system memory). But if another application requests for the memory space, then the system memory held by the paged-out data is released for its use. As you can see, this is really quite different from the way a swapfile works.

Swapfiles were used in old iterations of Microsoft Windows, prior to Windows 95. From Windows 95 onwards, all Windows versions use only paging files. Therefore, the correct term for the file used to create virtual memory in current operating systems is paging file, not swapfile.

Because both swapfiles and paging files do the same thing - create virtual memory, people will always refer to swapfiles and paging files interchangeably. Let's just keep in mind their innate differences.

Many thanks to Matt Woodward of Ars Technica!



 
   
Desktop CPU Comparison Guide Rev. 8.1
The Acer Aspire One Netbook Upgrade Guide
Foxconn BlackOps Tech Report
Newbie's Guide To Overclocking
Kingston 1GB PC2-5400 HyperX DDR2 SDRAM Dual Channel Memory Kit Review
Arctic Cooling NV Silencer 5 GPU Cooler Review
McDonald's Tiki Hut Nemo Happy Meal Toy Review
512MB Mushkin PC4000 Dual Pack Review
Warcraft III : Frozen Throne Glossary
Definitive Review of the Bose QuietComfort Acoustic Noise Cancelling Headset

 
 


Copyright © Tech ARP.com. All rights reserved.