5 ms·
Read only pages (most of libraries and binaries) get “paged out” to the file they came from, not swap. (They obviously don’t page out, they are just discarded
by lokar 5d ago
Read only pages (most of libraries and binaries) get “paged out” to the file they came from, not swap.
(They obviously don’t page out, they are just discarded and read again when needed)
- anyfoo 5d agoYes, only dirty (i.e. modified) pages profit from getting paged out to swap. But while I don't have any hard data, I imagine that depending on the workload, there can be a punch of pages that are read during initialization, or a one-off workload, and never being read or freed up afterwards. Just try activating a swap file, and see if it gets any usage, despite memory pressure being low.
- lokar 5d agoWhen we looked it was always tiny