![]() ![]() This is an output example on our server: :~]vmstat -s Vmstat command along with the “s” parameter with show you memory uisage statistics, from there you will also be able to get total RAM memory and free memory. htop command outputĪs you see, the available RAM and SWAP usage is pretty clear, showed in GBs and with a clear bar. SEE FREE MEMORY LINUX INSTALLInstalling htop on CentOS/RHEL yum install htop -yĮxpected output: Fig. Installing htop on Ubuntu/Debian apt-get install htop In clear words, htop is the top command but with an improved version which include colors, bar graphs for CPU/Mem/Swap, and a better way to deal/kill processes if needed. ![]() Htop is a good alternative to the classic top command, apart from RAM information, you will be able to get CPU and process usage. You will also be able to get your SWAP size, on the other line called KiB Swap (8191996 total in my case).Īnd same as the free command, you will get other kind of RAM information like buffer, cache and free available memory. Screenshot of top command showing an easy way to find RAM size in LinuxĪs you see on the screenshot, top command shows the total memory usage on an option called: KiB Mem (32753636 total in my case). Top command is one of my favourite and most used tools to quickly check out system performance, but it can also be used to get valuable hardware information. :~] free -htĪs you see on this output, now the free command is showing the information in sizes humans can read. h is used to transform bytes into human readable units, and -t is used to display a line showing the column totals. Let’s use two useful parameters that can be added to the free command: free -ht The last line belongs to the swap memory, which is reporting around 1GB of usage.īut this byte based numbers are not easy to read. It is normal to see lot of cached memory in the buff/cache on Linux operating systems, this memory can later be freed and used if really needed. Then you have the Free colum that is showing around 1GB, and the others called ‘shared’, ‘buffer/cache’ and ‘available’. The second colum called ‘used’ shows the the RAM used by the operating system, in this case around 9GB. The total OS RAM in bytes is 32753636, which can be translated to 32 GB of RAM installed on the system. Total used free shared buff/cache available ![]() The free command is the most classic terminal based tool to check memory usage on Linux / Unix operating systems. Here is the list of the top 5 commands that can be used to find LInux RAM size in Linux. How can I Find RAM size in Linux operating systems? SEE FREE MEMORY LINUX HOW TOLot of times, because of order mistakes, dedicated servers providers will give you less hardware resources than the ones you purchased. On this post, we will find out how to find RAM size in Linux / Unix operating systems with 5 useful commands. When you order a dedicated server or cloud server with your web hosting provider, there is one thing you must check always when you first login into your system: your hardware must be exactly the same as ordered. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |