caslib.blogg.se

Check ram utilization in linux
Check ram utilization in linux










check ram utilization in linux

The proc directory in Linux filesystem hierarchy stores system usage information for running processes. Changing swap partition is not a good idea.Īnother way to get swap memory details is by using the /proc/meminfo file. Using swap file is a better idea because you easily increase swap size on Linux with it. 1.1 GB is being used and it’s a swap partition, not a swap file.

check ram utilization in linux check ram utilization in linux

Apart from giving accurate information about the swap space being used, it also tells you if the swap space is a partition or a swap file.Īs you can see in the output, the total swap space is 14.9 GB (not 14 GB as free command showed). This is a command dedicated for handling swap memory. My favorite way to check swap usage in Linux is by using the swapon command. There are more ways to check swap usage in Linux and you may get some additional information about swap as well. free -hįor my system, it shows the following output: total used free shared buff/cache availableĪs you can see in the above output, my system has 14 GB of total swap space and out of that 1.1 GB is being used. If you use the free command with human readable output (with option -h), it will show you the RAM and Swap uses. You can check swap the same way you check memory usage in Linux: using the free command.












Check ram utilization in linux