Re: Get current amount of available RAM
Re: Get current amount of available RAM
- Subject: Re: Get current amount of available RAM
- From: Alex Kac <email@hidden>
- Date: Wed, 27 Aug 2008 23:44:36 -0500
Right - but that doesn't work for my situation. I need actual free
available physical RAM. Like when you use top and it shows you:
PhysMem: 1173M wired, 5340M active, 2658M inactive, 9175M used, 1065M
free.
On Aug 27, 2008, at 11:40 PM, Charles Srstka wrote:
On Aug 27, 2008, at 11:31 PM, Alex Kac wrote:
I need to check for free RAM before performing a specific
operation. I've Googled and checked in the docs and I suspect its
my terminology that's just out of whack.
So what is the best way to find out how much available RAM is
available in a Cocoa app?
Alex Kac - President and Founder
Web Information Solutions, Inc.
"The optimist proclaims that we live in the best of all possible
worlds; and the pessimist fears this is true."
-- James Clabell
For a 32-bit app, that'll be 4 GB minus however much RAM your app is
using already; for a 64-bit app, it'll be the amount of free space
on your hard disk.
Charles
Alex Kac - President and Founder
Web Information Solutions, Inc.
"If at first you don't succeed, skydiving is not for you."
-- Francis Roberts
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden