One thing I’d like to reiterate:
Seeing swap is not a problem. Seeing swap doesn’t mean “Oh, I should have bought more RAM!”.
Unless money grows on trees near you, there’s no reason to fear swap or to focus on eliminating it.
Swap allows you to run more apps than you otherwise would be able to, by allowing the OS to offload unused or less-used portions of applications (not even the whole thing!) onto the swap, rather than keeping it in RAM.
This is completely normal, not to be feared, and not indicative of a problem! All modern OSs work exactly this same way, and just seeing swap (or seeing 4GB in use, or whatever amount)
is not a problem. It is an indication the system is working as designed.
Excessive swap use might look like constantly, minute in and minute out, hitting that swap file. But given that’s exactly what you want when you’re using your system heavily, even that’s hard to get excited about
unless you see a negative performance implication.
And just seeing a bit of red in Activity Monitor does not necessitate a performance implication.