• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: API to get installed RAM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: API to get installed RAM
      • From: Quinn <email@hidden>
    • Re: API to get installed RAM
      • From: Marc Epard <email@hidden>
References: 
 >API to get installed RAM (From: Tom Bayley <email@hidden>)
 >Re: API to get installed RAM (From: Quinn <email@hidden>)
 >Re: API to get installed RAM (From: "Andy Cave" <email@hidden>)
 >Re: API to get installed RAM (From: Quinn <email@hidden>)

  • Prev by Date: Re: API to get installed RAM
  • Next by Date: Re: API to get installed RAM
  • Previous by thread: Re: API to get installed RAM
  • Next by thread: Re: API to get installed RAM
  • Index(es):
    • Date
    • Thread