Thread
:
Can somebody please post a script which will allow me to see the percentage RAM used? PLEASE? PLEASE?
View Single Post
beermad
2011-07-26 , 20:29
Posts: 21 | Thanked: 7 times | Joined on Jul 2010 @ Ipswich, England
#
10
Originally Posted by
glabifrons
free |grep Mem|awk '{print $3 / $2 * 100 "%"}'
For swap, simply replace Mem with Swap.
But don't forget, the total amount of memory in use isn't the same as the total memory minus memory available for other processes. Some of it may be cache or buffers (as you'll see from the raw "free" output). Your OS is happy to dump whatever's in cache of buffers if it's needed for another process.
Quote & Reply
|
beermad
View Public Profile
Send a private message to beermad
Visit beermad's homepage!
Find all posts by beermad