Timeline for Why does my Mac use so much swap space?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 6, 2020 at 21:57 | comment | added | jksoegaard | Not quite. The data in swap might be "active" (as in something that's going to be used for some purpose soon), and it might be "inactive" (such as a collection of memory leaks that are not going to be used for anything again). When a process ends, all its allocated memory is freed again - including any use of swap. So no, it is no so that a part of swap space is "taken up" by processes that have ended. | |
Dec 6, 2020 at 15:07 | comment | added | Magnus | So let me see if I understand: the 9.22G of swap space in the image above does not necessarily represent "active" memory, but possibly the vestige of previous activity? Or, to put this question another way, if a process generates some footprint in the swap space, does that part of the swap space NOT get erased (or otherwise marked as available) when that process ends? | |
Dec 6, 2020 at 8:21 | history | answered | jksoegaard | CC BY-SA 4.0 |