|
You might be right if you are running some sort of experimental FreeBSD system, where for some reason you expect crashes. On the other hand, I have run continuously, 24/7, for almost 20 years a FreeBSD server without any swap and without ever seeing any crash or panic. In my opinion the swap is useless and it is better to just install enough physical memory. I reboot that system just once a year or so, for a kernel update or a hardware upgrade. I run on it a large number of services, mostly Internet related, e.g. firewall, router, NTP server, DNS server for outside, DNS resolver for the internal network, e-mail server, Web server, Web proxy, file server. |
However just because your software allocates data in memory doesn't mean it needs to be there. Rarely used memory could be swapped out to cache more frequently used files on disk instead, increasing the overall throughput of the system. This could be true whether or not you have an excess of physical memory for your workload.