Skip to main content

Linux swap partition and swap file, definition and difference

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
swap partition and 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

Popular posts from this blog

Facebook timeline recent activity and post disappeared

Facebook Timeline gives our profile a new graphical look. It also launches many new features. Activity log is one of them where we will find all of our recent activities on profile, example: Any “Like” on own or others post, comments, status update, add new photos, invites someone to add group, add albums, send friend request etc. But sometimes we face problem with disappear recent activity from Facebook timeline or wall post from profile. This problem is one of the common problems in new feature. It may happen in two stage of your account.  - When your account transfer from old wall view to Timeline or New profile in Timeline. - Another stage is for existing Timeline account, where recent activity disappears without any specific reason. The first case we can handle very easily. It basically happen due to transfer and the solution depends on visibility of your post or activity like (Public, Friends and Custom). Now set your visibility settings from privacy setting or directly...

Settings to allow or hide Facebook post on Timeline

In Facebook timeline new feature supports allow or hide your post on timeline. This feature is very useful when you need privacy for your posting. By this feature you can decide which timeline posts are visible in your timeline and which are hidden. This situation arises after few days of your posting when you think that you previous writings must not show in your profile. Then you need to hide it from others. There is another option which is delete post. If you delete a post it will permanently removed, but it may required later. Then you can not retrieve it. But if you hide it, then you can retrieve it very easily whenever necessary.  Here I describe steps to show or hide posting in timeline:- 1. Login in to your Facebook profile.   2. Click on Activity Log button (Activity Log Button is Right bottom side of your cover image).   3. A new window will open, now Select "All/Your Post/Others Post" from drop-down (Right upper side of the page). 4. You will see al...

Speed up computer without any software in Windows OS

There are many software to speed up your computer, But I will give you some trick to speed up your PC very easily. You may know common issues which can effect on speed of your computer from this post. Steps to speed up your PC : 1. Install spyware and antivirus to get rid of spyware and antivirus from your computer.You can get many free spyware and antivirus from internet. But before install, be sure about the software because some of them slow your PC speed. Run full check of your system area and HDD. 2. Enable your firewall, if you have built in firewall with your antivirus or internet security software then your windows firewall will be disable, but you must ensure your firewall is enable to protect your computer. You can change your firewall from the link: http://latestitsupport.blogspot.com/2011/12/how-to-turn-off-or-turn-on-windows.html 3. Free up your disk space to speed up your computer. Disk Clean up is an important tool to free disk space of Windows OS. You can easily cle...