On 12/01/2025 16:39, Simon Kelley via BitFolk Users wrote:
I think that sounds sensible, if only to prompt people
to actually evaluate if/how much swap is
required for particular cases. Mentioning that it's east to expand post-install would
be good too.
I think it's worth mentioning - at least in "technical info" if not in the
"hosting plans".
But I would have been aware of it on first login - "free -h" being one of the
very first
things I will do on a new box!
FWIW I added 2GB of swapfile to the 1GB swap partition
and the machine is currently using 1.5GB of
that 3GB total. It would probably run fine without any, but having it there has let the
kernel swap
out lots of very-seldom-touched pages and use the RAM for block-cache instead.
This. I run a client's system with another provider and it has 8GB of RAM and 2GB of
swap.
Recently the load shot up (lots of customers?) and the swap filled up. So I requested
more. And got told that I should get more RAM as it's faster... this didn't go
down well
with me! I can remember when the rule of thumb was to have three times as much swap as
RAM.
So I added a 6GB swapfile. Currently unused (1.8GB of the partition in use) but it's
a safety net.
Obvs these days partition vs. file is not really an issue but it is still using partition
first. (This happened automagically, which was nice). cat /proc/swaps:
Filename Type Size Used Priority
/dev/vdb partition 2097148 1884008 -2
/swapfile file 6291452 0 -3