How much memory is being used
pcanham@solman:~$ echo "`prtconf | grep 'Memory size' | awk '{print $3}'` - (`vmstat 1 2 | tail -1 | awk '{print $5}'` /1024)" | bc
4891
Workout total server memory
pcanham@solman:~$ prtconf | grep 'Memory size' | awk '{print $3}'
8064
Percentage of memory in use
pcanham@solman:~$ echo "4891/(8064/100)" | bc
61
61% of memory in use