Perhaps many of you have heard of this term, most already know it, but for those newbies who don't know yet What I'm talking about I'll tell you a little about swap.
The swap or swap memory space or also known as virtual memory, is the one that uses the space on the HDD instead of a memory module.
Otherwise, applications use RAM and its availability to run and be able to work on the computer, when there are few applications running on the system, these are managed with available RAM.
Now what happens when the opposite is the case if your applications need a lot of RAM or there is simply no more memory available This is when Swap comes in.
Swap comes into use when real memory runs out, the system copies some of the contents of RAM memory to the swap memory space in order to perform other tasks.
One of the main disadvantages of using this system is that the system will become slower, since the data transfer speed between the RAM and the HDD is vastly different and it all depends on your hardware.
Although in SDD this changes radically since there is a better data transfer.
Speed matters here while RAM memory information passes in a span of nanoseconds. An SSD accesses data in microseconds while, like a normal hard drive, accesses data in milliseconds. This means that RAM is 1000 times faster than SSD and 100.000 times faster than regular hard drive.
When is it necessary to use the Swap?
Even though there is a lot of information on the net, You will find two types and they are the ones who say that Swap at this point is useless and others that it is extremely useful.
Here comes a dilemma, the reality is that personally I have not had the need to use a swap partition, this because in my case I do not usually demand too much from my computers.
Although for everyone is different, from my part to this day I have never crashed the system and I have not suffered because it slows down due to lack of RAM memory, it has happened to me that I notice slowness, but it has been due because my hard drive already had problems and I had to change it.
However the questions they ask us are:
- ¿How much should be the size of the exchange?
- ¿Swap must be twice the size of RAM or should it be half the size of the RAM?
Since both are linked, I think that by common sense we can deduce what should be done.
If you have a computer with 16 GB of RAM your Swap would be 32 GB or 8GB, the reality is that none, by common sense when accessing 8 GB of memory on your HDD takes you around 2 min onwards, seeing the table of transfer speed described above is not consistent.
Now if you have more than 8Gb of RAM with only 2GB of swap is enough, using more does not make sense.
Now If you have 6 GB or less, it is recommended that you use 1GB to 2GB.
If you use video editing tasks, renders or to play titles that require something considerable, the healthiest and best thing is to increase our RAM memory and only have our 2GB of Swap.
Finally, it is up to you to choose how much disk space you will dedicate to Swap, as I mentioned, personally I have never saturated my system so it is also part of your way of using your computer to have several applications open if not you have in use.