On a Mac, free memory is not the same thing as available memory. If you open 
the Activity Monitor utility, you will see in the chart green and blue memory. 
All of this is available to any application. The blue section is memory that 
was recently used by an app that it may want again if it's available, but the 
app has released it so it can be allocated by another app. 

Looks like hw.memsize is total memory. hw.usermem is available memory. Somebody 
correct me if I am wrong. 

Bob


On Aug 14, 2012, at 11:54 AM, Richard Gaskin wrote:

> Andre Garzia wrote:
>> Maybe one of the keys output from:
>> 
>> sysctl -a | grep mem
>> 
>> will help you.
> 
> While I was initially impressed with the speed, I'm not sure the free mem is 
> among the output - here's an example:
> 
> hw.physmem = 2147483648
> hw.usermem = 1420754944
> hw.memsize = 2147483648
> vm.memory_pressure: 0
> hw.memsize: 2147483648
> machdep.memmap.Conventional: 2143322112
> machdep.memmap.RuntimeServices: 331776
> machdep.memmap.ACPIReclaim: 86016
> machdep.memmap.ACPINVS: 2301952
> machdep.memmap.PalCode: 0
> machdep.memmap.Reserved: 0
> machdep.memmap.Unusable: 0
> machdep.memmap.Other: 0
> appleprofile.actions.callstack.max_memory: 0
> appleprofile.actions.kevent.max_memory: 0
> appleprofile.actions.register_state.max_memory: 0
> appleprofile.actions.threadinfo.max_memory: 0
> 
> 
> Any other clues?
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter:  http://twitter.com/FourthWorldSys
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to