What the swap??

14 views
Skip to first unread message

Gerriet M. Denkmann

unread,
Mar 29, 2012, 1:43:59 PM3/29/12
to darwin-kernel@lists.apple.com Kernel
I just did:

sum = 0
for all processes (as reported by sysctl) (without 0 kernel_task) do:
for all memory regions do:
vm_region_64( VM_REGION_EXTENDED_INFO )
sum += extended.pages_swapped_out

and got sum = 257.4 MiB.

But Activity Monitor says: Swap used: 1 GiB
and /private/var/vm has 2 GiB swapfiles.

Why are these numbers so widely different?


Kind regards,

Gerriet.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (Darwin...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-kernel/darwin-kernel-garchive-95844%40googlegroups.com

This email sent to darwin-kernel-...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages