site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thanks, Brian T. O'Neill _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com