Re: API to get installed RAM
Re: API to get installed RAM
- Subject: Re: API to get installed RAM
- From: "Andy Cave" <email@hidden>
- Date: Mon, 25 Apr 2005 14:11:38 +0100
- Organization: Hamillroad Software
Hi Quinn.
Well I think you should agree...because...
Our application is just as clever as your OS. We monitor free phyiscal
memory and use anything 'spare' (minus a 'safety region') to cache (more)
data - makes our app fly when lots of memory is available. When the user
starts another piece of s/w, and free phyiscal memory goes down, we reduce
our caches, which makes our application a good citizen. Just like your OS.
We currently do this on the PC and it works a charm!! On the Mac we can't...
how sad.
Andy.
----- Original Message -----
From: "Quinn" <email@hidden>
To: <email@hidden>
Sent: Monday, April 25, 2005 1:48 PM
Subject: Re: API to get installed RAM
...
You know it would also be really useful to have a gestalt for 'free
physical memory available' for Carbon...
Actually, I disagree. On a Mac OS X system that's working properly, it
would always return some value close to zero (except shortly after boot).
That's because, on Mac OS X's, the Unified Buffer Cache (UBC) uses all of
physical memory (except that wired for kernel use) as a VM/disk cache. It
keeps caching data until physical memory is short, after which it throws
data away to maintain a reasonable pool of free physical memory. Thus,
the value you'd get back would represent that threshold, and would be
pretty meaningless as an indication of the memory pressure on the machine.
...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden