4 ms·
The system uses swap to put less frequently used pages; the freed RAM can be used for caching, or more in general, pages that are used more frequently. So addin
by pizza234 5y ago
The system uses swap to put less frequently used pages; the freed RAM can be used for caching, or more in general, pages that are used more frequently. So adding swap indirectly increases the memory available for caching.
I don't know the details of (Linux) caching, though. On my (32 GB) system, there are a few completely unused GB, it seems.