If you genuinely attempting to quantify this, you can create a swap file of any size right there on your drive. You could iterate and test every setting for every scenario. You could even change settings dynamically if you wanted to.
That said, I leave it to the kernel to figure out and over the past 25 or so years that’s been fine.
catloaf@lemm.ee 1 week ago
Rule of thumb is leave it alone unless you have an actual problem you need to solve.
You’re probably not even using all your RAM, so there’s point in swapping to disk. It would only harm performance.