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...

Brief and Examples on Simplex, Half-Duplex, Full-Duplex Transmission

In data communication, there are three types of communication styles; they are Simplex, Half-Duplex and Full-Duplex. Here we discuss about their characteristics with examples. Simplex: In this communication style data can send only and basically it is one way or uni-direction communication. This type of communication is not widely used for transmit trusted data because it can not send any error or control signal to sender terminal. This style of communication is vastly used in Radio and TV where we can see and hear or receive data only but we can not send any information data by the same channel. Half-Duplex: Half-Duplex is another type of communication style where data can and send and receive but not at the same time. In this communication type, if data is send from one end, then we can not send data from another that means communication establish in one direction.  This communication vastly used in walkie-talkie, intercom, string phone etc. The practical ...

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...