How big should my swapfile be?
This is, of course, a matter of personal choice, and depends on what you’ll be doing with the system. If you’ll be using it for any but the most mundane of tasks — including if you want to build more than a tiny package out of /usr/pkgsrc — you should probably have at least 32MB worth. Many have reported that 64MB is an optimal size. Keep in mind that the larger your swapfile, the more physical memory is required to manage it.