• 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
How to get nbr of resident pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get nbr of resident pages


  • Subject: How to get nbr of resident pages
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 21 Apr 2012 14:10:51 +0700

I thought that  vmmeter.v_wire_count +  vmmeter .v_active_count  would be the answer.

So I tried:
int mib[] = { CTL_VM, VM_METER };
int miblen = sizeof(mib) / sizeof(int);
struct vmmeter  vmmeter;
size_t len = sizeof(vmmeter);
int res = sysctl(mib, miblen, &vmmeter, &len, NULL, 0);

But got: errno = 2 = "No such file or directory"

So: How do I get the number of resident pages of all processes?


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

  • Follow-Ups:
    • Re: How to get nbr of resident pages
      • From: comex <email@hidden>
  • Prev by Date: Re: Weird system freeze
  • Next by Date: Querying for children pid
  • Previous by thread: Info about memory objects
  • Next by thread: Re: How to get nbr of resident pages
  • Index(es):
    • Date
    • Thread