Linux is most popular open source operating system. Linux is used when we need more stable, more secure system. So when we think about server we first look at Linux for operating system due to its properties.
Linux OS setup was not easy but now a days Linux graphical interface gives it user easier installation like windows. But still it required expertise for installation specifically when different package will have to select and swap partition allocation.
Linux has two forms of swap space:
1. The swap partition
2. The swap file
Linux OS setup was not easy but now a days Linux graphical interface gives it user easier installation like windows. But still it required expertise for installation specifically when different package will have to select and swap partition allocation.
Linux has two forms of swap space:
1. The swap partition
2. The swap file
Difference between swap partition and swap file |
Swap Partition:
In Linux OS, Reserved disk block in the hard drive used for swapping is known as Swap Partition; no other files can be located in swap partition.
If physical memory is not sufficient amount to allocate more memory, requested by processes of application in the system, then the kernel swaps out pages which are not frequently used or unused. And it allocates memory to the required process that wants the memory instantly.
In time of Linux OS installation, we have to set the partition size two times of Ram size, which is recommended. For example if RAM size is 2GB then swap partition will be 4GB. In windows OS swap space or partition is called page file.
Swap File:
The swap file is not a common file. It’s has special nature which exist in the midst of your system and data files. Swap file free RAM space by transfer unused program to hard drive and allocate that space to currently requested program.
Creation and preparation of swap file is similar to creation of swap partition. Swap files do not require an empty partition and no need to repartition hard drive to add additional swap space.
Swap file can increase at any time proportion to request, which is another benefit of it.
This mechanism are similar to virtual memory of windows operating system.
Comments
Post a Comment