Shell commands to find available memory

Richard Gaskin ambassador at fourthworld.com
Tue Aug 14 14:54:50 EDT 2012


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




More information about the use-livecode mailing list