This has been intriguing me since some years both for VMs and bare metal PCs.
Unlike Windows, Linux/*nix systems normally use a separate partition for RAM swapping. The thing is, IIRC there has never been a constant best practice "standard" as for how large swap partition should be. It was said years ago that is was in function of the amount of physical RAM installed -with *many* different opinions regarding the actual size-, but now it doesn't seem to matter. Installers of the different Linux distributions around, including Proxmox itself, still propose a swap partition size based on the amount of physical RAM, but actual size depends on each particular distribution!
Linux distributions seem to encourage non-expert users for a swap size always proportional to installed physical RAM. But what if this amount changes, i.e., when escalating the server with more physical RAM? Must I modify the swap partition always whenever I add/remove physical RAM?
And from the previous paragraph, how to know the new size?
Unlike Windows, Linux/*nix systems normally use a separate partition for RAM swapping. The thing is, IIRC there has never been a constant best practice "standard" as for how large swap partition should be. It was said years ago that is was in function of the amount of physical RAM installed -with *many* different opinions regarding the actual size-, but now it doesn't seem to matter. Installers of the different Linux distributions around, including Proxmox itself, still propose a swap partition size based on the amount of physical RAM, but actual size depends on each particular distribution!
Linux distributions seem to encourage non-expert users for a swap size always proportional to installed physical RAM. But what if this amount changes, i.e., when escalating the server with more physical RAM? Must I modify the swap partition always whenever I add/remove physical RAM?
And from the previous paragraph, how to know the new size?