Beta 42

Research and Development

Menu

Swap Size

Why Do I Need Swap?

Ubuntu

Red Hat and CentOS

Red hat recommends setting as follows for RHEL 5/6:

CentOS Linux 7.x and RHEL 7 recommends the following rules:

| System RAM | Recommended swap | With hibernation | | --- | --- | --- | | <= 2 GB | 2 x RAM size | 3 x RAM size | | > 2 GB - 8 GB | Equal to RAM size | 2 x RAM size | | > 8 GB - 64 GB | At least 4 GB | 1.5 x RAM size | | > 64 GB | At least 4 GB | Not recommended |

Fedora

The Fedora 28 Installation Guide defines current thinking about swap space allocation: