On 14 Mar 2012, at 23:45, Jens Alfke wrote: > > On Mar 13, 2012, at 11:09 PM, Gerriet M. Denkmann wrote: > >> Is there a Cocoa method which gives me to any (physical) memory address the >> status - like "used by process a" or: "shared by processes a, b, ..., z" or >> "free”? > > Are you really sure you mean “physical” memory address? Physical addresses > are generally only visible to the kernel; processes only see their own mapped > address spaces.
No, I am not sure. When I iterate over all processes, and get the memory for each, together with information like: "is in RAM", "is mapped, but not in RAM", "swapped", "shared with processes a, b, c" then I will be quite content. > > There’s definitely no Objective-C API for this level of stuff — you’re > talking Unix system calls here. Currently I am looking at vm_region_64() from the Kernel.framework. Others have suggested sysctl(), but the man page is far from complete. Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com