![]() ![]() If you run the free command without this option to obtain amounts in bytes, the numbers will add up exactly. ![]() (The discrepancy between the 1829 MB that we calculated and the 1830 MB shown in the output is due to rounding because we used the -m option. So if you add the free memory (665 MB), buffers memory (149 MB), and cached memory (1015 MB) values, you obtain 1829 MB, which is the actual amount of memory available for applications. This will show the available memory, and how the memory has been allocated, in Kilobytes. Although it is technically being “used” by Linux in the background, for all practical purposes this memory is free and available. This memory, listed in the buffers and cached columns, is available immediately for any application that may need it. This is because Linux uses free memory for disk caching to improve performance. In fact, the server is only using 172 MB of RAM, and has 1830 MB of free RAM. But that isnt really a very meaningful number with the way Linux handles memory. You may be tempted to look at the Mem row, scan the used and free columns, and determine that the server is using 1338 MB of RAM, and the amount of free RAM is only 665 MB. PRTG SSH sensor monitors the free physical memory. For example, consider the following sample output from a server: To display statistics in bytes, run the free command without the -m option. monitor memory usuage 1 Shell Programming & Scripting Need Generic command for Memory usuage on Linux and Solaris 2 Red Hat Best way to monitor use of. ![]() For easier readability, use the -m option to display memory usage statistics in megabytes. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |