Shell commands to find available memory
Bob Sneidar
bobs at twft.com
Tue Aug 14 17:26:02 EDT 2012
I also read this:
You can use the following commands:
sysctl -a | grep hw.usermem
sysctl -a | grep hw.physmem
here: http://superuser.com/questions/197059/mac-os-x-sysctl-get-total-and-free-memory-size
Bob
On Aug 14, 2012, at 1:04 PM, Richard Gaskin wrote:
> Bob Sneidar wrote:
>
> > Looks like hw.memsize is total memory. hw.usermem is available
> > memory. Somebody correct me if I am wrong.
>
> I had thought so too, but after opening a LOT of applications and seeing avail. mem. drop in Activity Monitor, that number remained unchanged in subsequent calls.
>
>
> > mAHAH! vm_stat will give you what you want.
>
> The man for vm_stat suggests it reports only on virtual memory rather than physical. :(
>
> --
> 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