Comment on Help with understanding memory usage discrepancy

<- View Parent
eager_eagle@lemmy.world ⁨1⁩ ⁨day⁩ ago

if my system touches SWAP at all, it’s run out of memory

That’s a swap myth. Swap is not an emergency memory, it’s about creating a memory reclamation space on disk for anonymous pages (pages that are not file-backed) so that the OS can more efficiently use the main memory.

The swapping algorithm does take into account the higher cost of putting pages in swap. Touching swap may just mean that a lot of system files are being cached, but that’s reclaimable space and it doesn’t mean the system is running out of memory.

source
Sort:hotnewtop