Re: swap space
Re: swap space
- Subject: Re: swap space
- From: "Brian O'Neill" <email@hidden>
- Date: Fri, 8 Oct 2004 20:30:28 -0500
On Oct 8, 2004, at 4:57 PM, Justin Walker wrote:
The latter. Pages are added to available swap files according to
available free space, which (obviously) comes and goes as the system
runs. As the demand for paging space decreases, generally by having
processes exit, more space gets freed up. Depending on other
mysterious algorithms, the pager will "clean up" by moving pages from
later, lightly-used, swap files to earlier swap files, and eventually
remove unused swap files.
This is what I was hoping was the correct answer, thats what the
dynamic_pager code seemed to point to, but that code is within all the
mach message handling stuff which I'm still not that familiar with. So
the best way I can see to get my code to return the total amount of
swap space currently configured would be to do an opendir/stat loop on
the /private/var/vm/ directory and just add up the space.
Now I just need to figure out how much of the space is actually
allocated.
Thanks,
Brian T. O'Neill
_______________________________________________
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