• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What the swap??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What the swap??


  • Subject: What the swap??
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 30 Mar 2012 00:43:59 +0700

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: vmmap
  • Next by Date: Kauth event for write operation
  • Previous by thread: Kauth event for write operation
  • Next by thread: format of sysctl( { CTL_KERN, KERN_PROCARGS, pid } )
  • Index(es):
    • Date
    • Thread