I have a small VM, 1 CPU, 2GB, that I run Wordpress and a few other things on. The default installer created a 2G swap partition.
Once booted up, I tried to push the system hard by loading all the pages on the website, clicking on downloadable content etc to really work the disk and ARC. It reached 20% swap usage.
I'm trying to figure out if I need 2GB of RAM, so I tried to turn off the swap, and got a "cannot allocate memory" error.
But, the system is plenty usable without swap. So what is this telling me? I get that I made it use a bunch of memory handling the workload I threw at it, but then shouldn't the system be able to discard cached data when I tell it to swapoff?
I'm relatively new to FreeBSD, so its not clear to me why the machine runs fine without swap, but then after some workload, can't live without it. Can anyone explain?
Once booted up, I tried to push the system hard by loading all the pages on the website, clicking on downloadable content etc to really work the disk and ARC. It reached 20% swap usage.
I'm trying to figure out if I need 2GB of RAM, so I tried to turn off the swap, and got a "cannot allocate memory" error.
But, the system is plenty usable without swap. So what is this telling me? I get that I made it use a bunch of memory handling the workload I threw at it, but then shouldn't the system be able to discard cached data when I tell it to swapoff?
I'm relatively new to FreeBSD, so its not clear to me why the machine runs fine without swap, but then after some workload, can't live without it. Can anyone explain?