chris5126 26 Posting Pro in Training

hi guys,


i have a question probably a very simple one. Right im using solaris 10 on a sun fire v120 (server) i want to know how to caculate the free memory on the system without using monitoring tools!!!

basically if i do sar -r on a system with 2gb memory i get that there is 160mb free whereas if i do wmstat i get that there is 1.5gb of memory free. Im trying to work out which figure is correct and most accuratly displays the memory usage on a sun box or if both these methods are wrong and there is another command i can use.

chris

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.