How much swap space needed for 4GB RAM

6,069

Solution 1

This has been answered before.

Do you want to be able to hibernate the machine? Then at least as much swap as RAM. If you only suspend, or won't bother to hibernate, you can get away with only 2GB swap.

If you use many RAM-heavy applications, like virtualizing machines and stream encoding, you may want more swap, but for the average user, matching your RAM is adequate.

Solution 2

It is recommended to have an equal amount of swap space as you do RAM. You can feel free to assign 8GB if you wish; however, this is not as applicable today as it was in the past when RAM was more expensive and some processes ran in swap space.

In 4GB there is 2^32 bytes which is 4,294,967,296. Anymore than that and a 32-bit system will not be able to address the memory.

Share:
6,069

Related videos on Youtube

max
Author by

max

working as a linux system admin.

Updated on September 18, 2022

Comments

  • max
    max almost 2 years

    Possible Duplicate:
    Swap partition size for 4GB RAM

    For 4GB RAM how much swap space needed ?

    If I made 8GB as swap space, weather my system become slow ? If so then what is the reason for that?

    In 4GB RAM how many addressing is possible? how its is related to 32 bit and 64 bit system?