Posted July 02, 2018

As I said, I too have 32GB of RAM since 2013, and had been using a 1GB "token" page file since OS installation (actually Windows made it equal to RAM and I shrunk it from 32 to 1GB and moved it from the SSD to the HDD to conserve space on the SSD). It usually takes 1-4 days for the page file to start being used more than a negligible amount, but depending on what I'm actually doing it can indeed fill up. A year or so ago I started getting OOM conditions and after a thorough investigation realized the pagefile wasn't big enough so I increased it to 16GB both to solve the problem at hand and have some breathing room for the future.
Now I see that the page file grows usually no more than about 4GB over a period of time. There is no impact on the performance of my system and no swap thrashing going on. Consequently no good rational reason to go out and buy 64GB of RAM for the sole reason of being fascinated with disabling the swap file. :)
To answer your question though, how can you fill up your RAM with programs? That's simple enough. Use programs that consume more RAM! If you can't think of any, install VirtualBox and set up 4-8 virtual machines running a bunch of your favourite operating systems and set them to all launch on system startup. Don't worry, they wont use much RAM on startup, but over time through the systems actually doing stuff the amount of RAM usage will grow and eventually cause OOM depending on how heavy your usage is. It's of negligible performance impact to have some swap around to handle this and no reason to run out and spend hundreds of dollars on more RAM until the performance impact of paging is too high and causing an unacceptable degradation. Incidentally, RAM will likely be cheaper at that later date down the road than stocking the system with 128GB of RAM at today's prices.

The point of my commentary in this thread is to try to inform people how operating system memory management actually works so they can make a more informed decision because people may have 8GB of RAM in their computer, read on some website "disabling swap improves performance OMG!" which is patently false, and then have various computer problems after that and not know why.
The fact is that having swap enabled including for you does not in any way decrease performance. In the best case for you swap will not be used or only a very small amount will be used by the OS that has zero performance impact on your system. Disabling swap entirely however will have less of a noticeable impact on someone with an outrageously excessive amount of RAM for what they use the computer for, but an increasingly more likely noticeable impact as their RAM usage to availability ratio increases.
It isn't a case of "disable swap and your world will come to an end tomorrow no matter how much RAM you have", but rather a case of disabling swap provides no benefits at all so there's no reason to disable it. If your system doesn't use swap or only has marginal amount of swap use which is normal after a period of time then there is no consequence whatsoever to having it. If you genuinely have enough RAM for your programs to run then they'll run fine and the OS will never have much need to swap so they'll remain entirely in RAM. The swap file will exist and if an occasion arises where your system has a spike in RAM usage from something, it will be able to handle it. Programs memory leaking can do this, and having swap will buy time to try to kill the offending program once system performance seems to start stuttering rather than reaching an OS triggered OOM condition where the OS kills various apps trying to stop the problem. I've prevented such problems countless times and it has been a life saver on a number of occasions.
But, I'm not trying to convince you to change your own habits in any way either. You do you. I'm just providing fairly watered down info on how memory management works and why disabling swap is almost never a good idea and yields no actual benefits except for a very marginal savings of disk space.
There are people out there who will claim that disabling swap improves performance which is total nonsense, and no OS engineer with experience in memory management would ever agree with that because it is simply not true. If swap is actually causing one's system to become slow for real, then that is an indication that they do in fact need more RAM, but not so they can disable the swap file, but so they have a more proper RAM to swap ratio for the type of software they are running.
What I wonder, is if anyone who disables swap has ever bothered to google for "why disabling swap is bad" or similar terms and try to find a technical article from someone that at least seems to be reputable on the topic and not just some random blogger shill.