maiki
(maiki)
May 19, 2020, 8:19pm
4
EricGT:
If one ask a provider for a server with 1 GB of ram I take it during the install it would grab an additional 2 GB for swap, thus needing 3 GB. And if the provider limited the machine to 1 GB you now have a problem.
If one ask a provider for a server with 3 GB of ram I take it during the install it would NOT grab an additional 2 GB for swap, thus using 3 GB for just memory.
If one ask a provider for a server with 4 GB thinking they need 2 GB as normal memory and 2 GB as swap, would using the 4 GB as 2 GB for memory and 2 GB for swap be the best option?
A “swap” is a file on a storage drive.
From the end-user perspective, swap files in versions 2.6.x and later of the Linux kernel are virtually as fast as swap partitions; the limitation is that swap files should be contiguously allocated on their underlying file systems. To increase performance of swap files, the kernel keeps a map of where they are placed on underlying devices and accesses them directly, thus bypassing the cache and avoiding filesystem overhead. When residing on HDDs, which are rotational magnetic media devi
I just wanted to point out, in case there was confusion.
When you provision a server you will know how much RAM is available (in numbers like 1GB, 2GB, or 4GB), but you will also have disk storage, generally available in larger numbers (like 20GB, 30GB, or 40GB).
Your swap will be part of the disk storage. Your RAM is separate.
4 Likes