1
edit
(Removed obsolete link systemd-swap upstream) |
m (Correct typos: then -> than) |
||
Line 34: | Line 34: | ||
<!--T:18--> | <!--T:18--> | ||
The amount of swap you need is highly variable based on ''your'' specific applications and workload. There is no universal formula on swap size without monitoring usage over a period of time. A reasonable place to start would be:</translate> | The amount of swap you need is highly variable based on ''your'' specific applications and workload. There is no universal formula on swap size without monitoring usage over a period of time. A reasonable place to start would be:</translate> | ||
* <translate><!--T:19--> For less | * <translate><!--T:19--> For less than 4GB of physical memory (RAM), it's highly recommended that the swap space should, as a base minimum, be equal to the amount of RAM. Also, it's recommended that the swap space is maximum twice the amount of RAM depending upon the amount of disk space available for the system because of diminishing returns.</translate> | ||
* <translate><!--T:20--> For more modern systems (>4GB), your swap space should be at a minimum be ROUNDUP(SQRT(RAM)) I.E. the square root of your RAM size rounded up to the next GB. '''However, if you use hibernation''', you need a minimum of physical memory (RAM) size '''plus''' ROUNDUP(SQRT(RAM)). The maximum, is again twice the amount of RAM, again because of diminishing returns.</translate> | * <translate><!--T:20--> For more modern systems (>4GB), your swap space should be at a minimum be ROUNDUP(SQRT(RAM)) I.E. the square root of your RAM size rounded up to the next GB. '''However, if you use hibernation''', you need a minimum of physical memory (RAM) size '''plus''' ROUNDUP(SQRT(RAM)). The maximum, is again twice the amount of RAM, again because of diminishing returns.</translate> | ||
* <translate><!--T:21--> The only downside to having more swap space than you will actually use, is the disk space you will be reserving for it cannot be used for application or system data.</translate> | * <translate><!--T:21--> The only downside to having more swap space than you will actually use, is the disk space you will be reserving for it cannot be used for application or system data.</translate> | ||
<translate><!--T:22--> The "diminishing returns" means that if you need more swap space than twice your RAM size, you would be better off adding more RAM as Hard Disk Drive (HDD) access is about 10³ slower | <translate><!--T:22--> The "diminishing returns" means that if you need more swap space than twice your RAM size, you would be better off adding more RAM as Hard Disk Drive (HDD) access is about 10³ slower than RAM access, so something that would take 1 second, suddenly takes more than 15 minutes! And on a Solid State Drive (SSD) the same operation that took 1 second in RAM will still take about 1 minute on that SSD!</translate> | ||
<translate><!--T:23--> | <translate><!--T:23--> |
edit