Monday, May 24, 2010

How does the swap mecanism in windows differ from the swap mecanism for linux?

I've used both windows and linux and am curious as to how the swap/pagefile differ's from the swap partition in linux, other than ones a file and the other's not...





Andy...

How does the swap mecanism in windows differ from the swap mecanism for linux?
web
Reply:Windows uses a hidden file for its swap file. Typically this file resides in the same partition as the OS (advanced users can opt to put the file in another partition).





Linux uses a dedicated partition for its swap file (advanced users can opt to implement the swap file as a file in the same partition as the OS).





The Linux swap partition is something you generally create once and then forget about. This is an amount of disk space in which Linux temporarily writes data from RAM to free up memory for other processes. The swap partition is different from all others as here it is not used to store files in it.





You can have several swap partitions in Linux.[Older Linux kernels limit the size of each swap partition to up to approximately 124 MB, but the linux kernels 2.2.x up do not have this restriction.]





Swapping to files as in Windows is usually slower than swapping to a raw partition.

night garden

No comments:

Post a Comment