My Life in WordsAll about information and technology
|
SarThe following is the output when run $sar -r 2 2 on my Linux PC. The %memused is more than 95%. It looks like the bottleneck of this system is memory. FreeThe free command is the most simple and easy to use command to check memory usage on linux. To get the memory utilization, it should be 6582304/20448492=32.19%. It is much less than 95%. The Real Memory UtilizationmLinux treats unused memory as a wasted resource and would use as much as RAM as it can to cache process/kernel information. kbbuffers is the amount of buffer space used by the kernel in kilobytes. kbcached is the amount of cached space used by the kernel in kilobytes. The buff/cache is equals kbbuffers + kbcached. To get the actual memory utilization from the output of sar, the formula would be (kbmemused - kbbuffers - kbcached)/ sum (kbmemused + kbmemfree). That is (19623112 - 598648 - 11330764 )/ (19623112 + 825380) = 37.62%. This is one is very similar with one get by the free command.
0 Comments
Leave a Reply. |
AuthorThis is a blog that is about my works on Benchmarking Performance, Compiling Optimization, Optimize Compile, Parallel Programming, Virtualization, Container, Docker, Moby, Linuxkit, Open Source and any others. Archives
August 2018
Categories |