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 fro

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 exam

Limit user from changing system time and date in Windows OS

Most of us do not concern with system date and time. But it is one of most important factor in all operating system because when all software need system date and time for any update whether it is server end or end user end. Here we are talking about the importance of system date and time and procedure to restrict user from changing system date and time from front end or user end. So we need to keep it intact without any unnecessary changes. If any user except can have the right to change date and time from user end, then it will fall us in deep trouble specially when we run software which take entry time input from end user end. There are also many software mechanisms which does not allow date and time difference to start up.  For above reason we do not give user access to change date and time from user end. We can limit the user from this feature. Here I show steps how we can control user access in windows operating systems. Steps to follow:- 1. Go to "Start menu" an