Shell commands to find available memory
Bob Sneidar
bobs at twft.com
Tue Aug 14 15:30:11 EDT 2012
AHAH! vm_stat will give you what you want. (page size * pages free) + page size * pages inactive). Again 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list