• 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
the Virtual Memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the Virtual Memory


  • Subject: the Virtual Memory
  • From: Graham J Lee <email@hidden>
  • Date: Fri, 09 Jun 2006 00:18:49 +0100

Hi,

a while ago I wrote a tool similar to Linux's free for Darwin (basically at the time because I needed a quick way to log the RAM consumption of a WebObjects server), but left out reporting on swap because I didn't know how. Now I'm coming back to fill in reporting on swap, and still don't know how :-)

Does the value vm_statistics_t->pageouts report the number of pageouts since boot, or the number of pages which are currently paged out? If the latter, then I suppose the 'used swap space' is simply that quantity times the page size. What is the 'total swap space', if such a question makes sense with this VMM? Is it just the size of all of the in-use swapfiles? Is there yet any way to determine the files currently being used for swap? Oh, and is there a modern equivalent for mach_swapon and /etc/swaptab?

Maybe a better question would be: where is there a general reference to the VMM used in Darwin, beyond the source code (xnu/osfmk/vm/)? I've just found the Rashid/Tevanien/et al paper on the mach VMM, which I "look forward" to ploughing through along with the appropriate chapter in the OSF documentation. Is there anything Darwin-specific?

Cheers,

Graham.
--
Graham Lee
UNIX Systems Manager,
Oxford Physics Practical Course
http://iamleeg.blogspot.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: the Virtual Memory
      • From: "Jordan K. Hubbard" <email@hidden>
    • Re: the Virtual Memory
      • From: Chris Zubrzycki <email@hidden>
  • Prev by Date: Question on using launchd from a C program
  • Next by Date: Re: the Virtual Memory
  • Previous by thread: Re: Question on using launchd from a C program
  • Next by thread: Re: the Virtual Memory
  • Index(es):
    • Date
    • Thread