To provide a reference, here is my vm_stat after nearly 2 days of uptime:
Code:Mach Virtual Memory Statistics: (page size of 16384 bytes) Pages free: 6013. Pages active: 846388. Pages inactive: 807221. Pages speculative: 36494. Pages throttled: 0. Pages wired down: 154665. Pages purgeable: 15069. "Translation faults": 400321787. Pages copy-on-write: 6903167. Pages zero filled: 151347241. Pages reactivated: 1425949. Pages purged: 1331405. File-backed pages: 629193. Anonymous pages: 1060910. Pages stored in compressor: 501711. Pages occupied by compressor: 192899. Decompressions: 321359. Compressions: 1005651. Pageins: 2460036. Pageouts: 37586. Swapins: 4416. Swapouts: 4576.
The swap outs are about 75MB or 71.5 MiB,
Thanks, does your machine has 8GB oder 16GB?
However, the data written since reboot is 1000 times more (71GB).
View attachment 1987768
I haven't done any large file copies, so that it quite a discrepancy!
Confirms the common sense logic that swap data transfer should be negligible in the grand scheme of things.
What is the difference between Pageouts/ins and Swapouts/ins?
It’s impossible to answer properly without doing an in-depth study of the Darwin pager code. But in general not every page out event results in data being written to the swap. Things like memory compression, dropping purgeable memory or simply discarding data that has existing backing on the disk are also page outs.
EDIT: looked at some numbers again and now I believe that "pageouts" primarily refers to discarding memory pages already backed by some data on the disk.
Last edited: